use of org.jbei.ice.lib.config.ConfigurationController in project ice by JBEI.
the class ApplicationInitialize method startUp.
/**
* Responsible for initializing the system and checking for the existence of needed
* data (such as settings) and creating as needed
*/
public static void startUp() {
// check for and create public group
GroupController groupController = new GroupController();
groupController.createOrRetrievePublicGroup();
// check for and create admin account
AccountController accountController = new AccountController();
accountController.createAdminAccount();
// check for and create default settings
ConfigurationController configurationController = new ConfigurationController();
configurationController.initPropertyValues();
// check blast
BlastPlus.scheduleBlastIndexRebuildTask(false);
AutoAnnotationBlastDbBuildTask autoAnnotationBlastDbBuildTask = new AutoAnnotationBlastDbBuildTask();
IceExecutorService.getInstance().runTask(autoAnnotationBlastDbBuildTask);
}
use of org.jbei.ice.lib.config.ConfigurationController in project ice by JBEI.
the class FileResource method getAsset.
@GET
@Path("asset/{assetName}")
public Response getAsset(@PathParam("assetName") final String assetName) {
ConfigurationController configurationController = new ConfigurationController();
File assetFile = configurationController.getUIAsset(assetName);
if (assetFile == null)
return super.respond(Response.Status.NOT_FOUND);
return addHeaders(Response.ok(assetFile), assetFile.getName());
}
use of org.jbei.ice.lib.config.ConfigurationController in project ice by JBEI.
the class WoRControllerTest method testSetEnable.
@Test
public void testSetEnable() throws Exception {
Assert.assertFalse(controller.isWebEnabled());
new ConfigurationController().setPropertyValue(ConfigurationKey.JOIN_WEB_OF_REGISTRIES, "yes");
}
Aggregations