/** * Constructor * * @param storeRef the store reference (e.g. 'workspace://SpacesStore' ) * @param path the path (e.g. '/app:company_home/app:dictionary/app:models' ) * @param queryLanguage the query language (e.g. 'xpath' or 'lucence') */ public RepositoryLocation(StoreRef storeRef, String path, String queryLanguage) { this.storeProtocol = storeRef.getProtocol(); this.storeId = storeRef.getIdentifier(); this.path = path; setQueryLanguage(queryLanguage); }
/** * Constructor * * @param storeRef the store reference (e.g. 'workspace://SpacesStore' ) * @param path the path (e.g. '/app:company_home/app:dictionary/app:models' ) * @param queryLanguage the query language (e.g. 'xpath' or 'lucence') */ public RepositoryLocation(StoreRef storeRef, String path, String queryLanguage) { this.storeProtocol = storeRef.getProtocol(); this.storeId = storeRef.getIdentifier(); this.path = path; setQueryLanguage(queryLanguage); }
/** * Bootstraps the model from default store */ private void revertBootstrap() { bootstrap.destroy(); RepositoryLocation location = new RepositoryLocation(); location.setStoreProtocol(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE.getProtocol()); location.setStoreId(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE.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(); }
location.setStoreProtocol(this.storeRef.getProtocol()); location.setStoreId(this.storeRef.getIdentifier()); location.setQueryLanguage(RepositoryLocation.LANGUAGE_PATH);
location.setStoreProtocol(this.storeRef.getProtocol()); location.setStoreId(this.storeRef.getIdentifier()); location.setQueryLanguage(RepositoryLocation.LANGUAGE_PATH);
/** * 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(); }