bootstrap.setContentService(this.contentService); bootstrap.setDictionaryDAO(this.dictionaryDAO); bootstrap.setTransactionService(this.transactionService); bootstrap.setTenantAdminService(tenantAdminService); bootstrap.setNodeService(this.nodeService);
this.bootstrap.setContentService(this.contentService); this.bootstrap.setDictionaryDAO(this.dictionaryDAO); this.bootstrap.setTransactionService(this.transactionService); this.bootstrap.setTenantAdminService(this.tenantAdminService); this.bootstrap.setNodeService(this.nodeService);
/** * Bootstraps the model from custom store */ private void setUpBootstrap() { bootstrap = new DictionaryRepositoryBootstrap(); bootstrap.setContentService(CONTENT_SERVICE); bootstrap.setDictionaryDAO(DICTIONARY_DAO); bootstrap.setTransactionService(TRANSACTION_SERVICE); bootstrap.setTenantAdminService(TENANT_ADMIN_SERVICE); bootstrap.setNodeService(NODE_SERVICE); bootstrap.setNamespaceService(NAMESPACE_SERVICE); bootstrap.setMessageService(MESSAGE_SERVICE); bootstrap.setPolicyComponent(POLICY_COMPONENT); RepositoryLocation location = new RepositoryLocation(); location.setStoreProtocol(storeRef.getProtocol()); location.setStoreId(storeRef.getIdentifier()); location.setQueryLanguage(RepositoryLocation.LANGUAGE_PATH); // NOTE: we are not setting the path for now .. in doing so we are searching the root node only List<RepositoryLocation> locations = new ArrayList<RepositoryLocation>(); locations.add(location); bootstrap.setRepositoryModelsLocations(locations); // register with dictionary service bootstrap.register(); }