/** * Sets the root store. * * @param store * store_type://store_id */ public void setStore(String store) { this.storeRef = new StoreRef(store); }
/** * @param defaultStoreStr the defaultStoreStr to set */ public void setDefaultStore(String defaultStoreStr) { this.defaultStore = new StoreRef(defaultStoreStr); } }
/** * Set the default store reference * * @param storeRef the default store reference */ public void setStoreUrl(String storeRef) { this.storeRef = new StoreRef(storeRef); }
/** * Sets the Company Home Store * * @param companyHomeStore String */ public void setCompanyHomeStore(String companyHomeStore) { this.companyHomeStore = new StoreRef(companyHomeStore); }
/** * Get the store reference (note: should be ignored for classpath location) * * @return the store reference */ public StoreRef getStoreRef() { return new StoreRef(this.storeProtocol, this.storeId); }
private void setStoreRef() { if((protocol != null) && (identifier != null)) { this.storeRef = new StoreRef(protocol, identifier); } }
/** * Set the store from the string url. */ public void setStoreUrl(String storeUrl) { this.storeRef = new StoreRef(storeUrl); }
/** * @param storeUrl The store ref url to set. */ public void setStoreUrl(String storeUrl) { this.storeRef = new StoreRef(storeUrl); }
/** * Sets the Store Ref to bootstrap into * * @param storeUrl String */ public void setStoreUrl(String storeUrl) { this.storeRef = new StoreRef(storeUrl); }
private void setStoreRef() { if((protocol != null) && (identifier != null)) { this.storeRef = new StoreRef(protocol, identifier); } }
/** * Create Version Store Ref * * @param storeRef ref * @return store ref for version store */ public static StoreRef convertStoreRef(StoreRef storeRef) { return new StoreRef(StoreRef.PROTOCOL_WORKSPACE, storeRef.getIdentifier()); }
@SuppressWarnings("unchecked") public void handleResult(ResultContext context) { Map<String, Object> row = (Map<String, Object>) context.getResultObject(); String protocol = (String) row.get("protocol"); String identifier = (String) row.get("identifier"); String uuid = (String) row.get("uuid"); NodeRef nodeRef = new NodeRef(new StoreRef(protocol, identifier), uuid); results.add(nodeRef); } };
private StoreRef getStoreRef(HomeFolderProvider2 provider) { // Could check to see if provider is a V2Adaptor to avoid // object creation, but there is little point. return new StoreRef(provider.getStoreUrl()); }
/** * Sets the Alfresco store name. * * @param storeRef * the Alfresco store name */ public void setStore(String storeRef) { PropertyCheck.mandatory(this, "store", storeRef); this.store = new StoreRef(storeRef); }
/** * @see #setRegistryStoreRef(StoreRef) */ public void setRegistryStore(String registryStore) { this.setRegistryStoreRef(new StoreRef(registryStore)); }
/** * Get all the tags available in a store * * @param store store reference * @return String[] tag names */ public String[] getTags(String store) { StoreRef storeRef = new StoreRef(store); List<String> result = this.serviceRegistry.getTaggingService().getTags(storeRef); return (String[])result.toArray(new String[result.size()]); }
@Override @Extend(extensionAPI=VersionServiceExtension.class,traitAPI=VersionServiceTrait.class) public StoreRef getVersionStoreReference() { if (logger.isDebugEnabled()) { logger.debug("Run as user " + AuthenticationUtil.getRunAsUser()); logger.debug("Fully authenticated " + AuthenticationUtil.getFullyAuthenticatedUser()); } return new StoreRef(StoreRef.PROTOCOL_WORKSPACE, Version2Model.STORE_ID); }
protected StoreRef getName(StoreRef storeRef, String tenantDomain, boolean checkTenantEnabled) { if (storeRef == null) { return null; } if (tenantDomain != null) { storeRef = new StoreRef(storeRef.getProtocol(), getName(storeRef.getIdentifier(), tenantDomain, checkTenantEnabled)); } return storeRef; }
@Override public StoreRef getBaseName(StoreRef storeRef) { if (storeRef == null) { return null; } return new StoreRef(storeRef.getProtocol(), getBaseName(storeRef.getIdentifier())); }
private void bootstrapVersionTenantStore(ImporterBootstrap versionImporterBootstrap, String tenantDomain) { // Bootstrap Tenant-Specific Version Store StoreRef bootstrapStoreRef = versionImporterBootstrap.getStoreRef(); bootstrapStoreRef = new StoreRef(bootstrapStoreRef.getProtocol(), tenantService.getName(bootstrapStoreRef.getIdentifier(), tenantDomain)); versionImporterBootstrap.setStoreUrl(bootstrapStoreRef.toString()); versionImporterBootstrap.bootstrap(); if (logger.isDebugEnabled()) { logger.debug("Bootstrapped store: "+tenantService.getBaseName(bootstrapStoreRef)+" (Tenant: "+tenantDomain+")"); } }