RepositoryLocation loc = new RepositoryLocation("//Repo/path/process"); Process process = new RepositoryProcessLocation(loc).load(null);
protected NodeRef getNode(NodeRef rootNodeRef, String path) { RepositoryLocation repositoryLocation = new RepositoryLocation(rootNodeRef.getStoreRef(), path, RepositoryLocation.LANGUAGE_PATH); String[] pathElements = repositoryLocation.getPathElements(); NodeRef nodeRef = rootNodeRef; if (pathElements.length > 0) { nodeRef = resolveQNamePath(rootNodeRef, pathElements); } return nodeRef; }
protected NodeRef getNode(NodeRef rootNodeRef, String path) { RepositoryLocation repositoryLocation = new RepositoryLocation(rootNodeRef.getStoreRef(), path, RepositoryLocation.LANGUAGE_PATH); String[] pathElements = repositoryLocation.getPathElements(); NodeRef nodeRef = rootNodeRef; if (pathElements.length > 0) { nodeRef = resolveQNamePath(rootNodeRef, pathElements); } return nodeRef; }
RapidMiner.setExecutionMode(ExecutionMode.COMMAND_LINE); RapidMiner.init(); location = new RepositoryLocation("//RapidMinerRepository/PlotterTest"); Entry entry = location.locateEntry(); if (entry instanceof ProcessEntry) {
/** * 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(); }
bootstrap.setPolicyComponent(policyComponent); RepositoryLocation location = new RepositoryLocation(); location.setStoreProtocol(this.storeRef.getProtocol()); location.setStoreId(this.storeRef.getIdentifier());
this.bootstrap.setPolicyComponent(this.policyComponent); RepositoryLocation location = new RepositoryLocation(); location.setStoreProtocol(this.storeRef.getProtocol()); location.setStoreId(this.storeRef.getIdentifier());
/** * 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(); }