Search in sources :

Example 1 with FileStorage

use of org.collectionspace.chain.csp.persistence.file.FileStorage in project application by collectionspace.

the class TenantServlet method register_csps.

/* Not in the constructor because errors during construction of servlets tend to get lost in a mess of startup.
	 * Better present it on first request.
	 */
protected void register_csps(String tenantId) throws IOException, DocumentException {
    if (!tenantCSPM.containsKey(tenantId)) {
        tenantCSPM.put(tenantId, new CSPManagerImpl());
    }
    tenantCSPM.get(tenantId).register(new CoreConfig());
    tenantCSPM.get(tenantId).register(new FileStorage());
    tenantCSPM.get(tenantId).register(new ServicesStorageGenerator());
    tenantCSPM.get(tenantId).register(new WebUI());
    tenantCSPM.get(tenantId).register(new Spec());
}
Also used : ServicesStorageGenerator(org.collectionspace.chain.csp.persistence.services.ServicesStorageGenerator) WebUI(org.collectionspace.chain.csp.webui.main.WebUI) CoreConfig(org.collectionspace.chain.csp.inner.CoreConfig) FileStorage(org.collectionspace.chain.csp.persistence.file.FileStorage) CSPManagerImpl(org.collectionspace.csp.container.impl.CSPManagerImpl) Spec(org.collectionspace.chain.csp.schema.Spec)

Aggregations

CoreConfig (org.collectionspace.chain.csp.inner.CoreConfig)1 FileStorage (org.collectionspace.chain.csp.persistence.file.FileStorage)1 ServicesStorageGenerator (org.collectionspace.chain.csp.persistence.services.ServicesStorageGenerator)1 Spec (org.collectionspace.chain.csp.schema.Spec)1 WebUI (org.collectionspace.chain.csp.webui.main.WebUI)1 CSPManagerImpl (org.collectionspace.csp.container.impl.CSPManagerImpl)1