/** * */ protected AbstractNodeServiceImpl() { this.uuid = GUID.generate(); }
public AuthenticationServiceImpl() { super(); this.serviceInstanceId = GUID.generate(); }
public TransactionAwareSingleton() { txnKey = GUID.generate(); ReentrantReadWriteLock serverReadWriteLock = new ReentrantReadWriteLock(); singletonReadLock = serverReadWriteLock.readLock(); singletonWriteLock = serverReadWriteLock.writeLock(); }
private synchronized String getInputHandle(InputStream in) { String handle = GUID.generate(); fInputStreams.put(handle, in); fInputLastAccessTimes.put(handle, System.currentTimeMillis()); fInputBusy.put(handle, false); return handle; } }
private synchronized String getOutputHandle(OutputStream out) { String handle = GUID.generate(); fOutputStreams.put(handle, out); fOutputLastAccessTimes.put(handle, System.currentTimeMillis()); fOutputBusy.put(handle, false); return handle; }
private synchronized String getOutputHandle(OutputStream out) { String handle = GUID.generate(); fOutputStreams.put(handle, out); fOutputLastAccessTimes.put(handle, System.currentTimeMillis()); fOutputBusy.put(handle, false); return handle; }
public CompositeRenditionDefinition createCompositeRenditionDefinition(QName renditionName) { if (log.isDebugEnabled()) { StringBuilder msg = new StringBuilder(); msg.append("Creating composite rendition definition ") .append(renditionName); log.debug(msg.toString()); } return new CompositeRenditionDefinitionImpl(GUID.generate(), renditionName); }
private void split(Set<NodeRef> toSplit) { for (NodeRef nodeRef : toSplit) { String userName = (String) nodeService.getProperty(nodeRef, ContentModel.PROP_USERNAME); String newUserName = userName + GUID.generate(); nodeService.setProperty(nodeRef, ContentModel.PROP_USERNAME, userName + GUID.generate()); logger.info(" New person object: " + newUserName); } }
public static String createNewFileStoreUrl(int minuteBucketCount) { StringBuilder sb = new StringBuilder(20); sb.append(FileContentStore.STORE_PROTOCOL); sb.append(ContentStore.PROTOCOL_DELIMITER); sb.append(createTimeBasedPath(minuteBucketCount)); sb.append(GUID.generate()).append(".bin"); return sb.toString(); } }
/** * {@inheritDoc} */ @Override public String getLock(QName lockQName, long timeToLive, long retryWait, int retryCount) { String lockToken = GUID.generate(); getLockImpl(lockToken, lockQName, timeToLive, retryWait, retryCount); // Done return lockToken; }
public ReplicationDefinition createReplicationDefinition( String replicationDefinitionName, String description) { if (log.isDebugEnabled()) { StringBuilder msg = new StringBuilder(); msg.append("Creating replication definition ") .append(replicationDefinitionName); log.debug(msg.toString()); } return new ReplicationDefinitionImpl(GUID.generate(), replicationDefinitionName, description); }
/** * @see org.alfresco.service.cmr.action.ActionService#createAction(String) */ public Action createAction(String name) { return new ActionImpl(null, GUID.generate(), name, null); }
/** * @see org.alfresco.service.cmr.action.ActionService#createCompositeAction() */ public CompositeAction createCompositeAction() { return new CompositeActionImpl(null, GUID.generate()); }
/** * {@inheritDoc} */ @Override public String getLock(QName lockQName, long timeToLive, long retryWait, int retryCount) { String lockToken = GUID.generate(); getLockImpl(lockToken, lockQName, timeToLive, retryWait, retryCount); // Done return lockToken; }
/** * Constructs the rule with a reference to a {@link ApplicationContextInit rule} which can be used to retrieve the ApplicationContext. * A GUID-generated username will be used for the test user. * * @param appContextRule a rule which can be used to retrieve the spring app context. */ public AlfrescoPerson(ApplicationContextInit appContextRule) { this(appContextRule, GUID.generate()); }
/** * Constructs the rule with a reference to a {@link ApplicationContextInit rule} which can be used to retrieve the ApplicationContext. * A GUID-generated tenant name will be used for the test user. * * @param appContextRule a rule which can be used to retrieve the spring app context. */ public AlfrescoTenant(ApplicationContextInit appContextRule) { this(appContextRule, GUID.generate()); }
private QName getThumbnailQName(String localThumbnailName) { if (localThumbnailName == null || localThumbnailName.length() == 0) { localThumbnailName = GUID.generate(); } // We're prepending the cm namespace here. QName thumbnailQName = QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI, localThumbnailName); return thumbnailQName; }
public static String createNewFileStoreUrl(int minuteBucketCount) { StringBuilder sb = new StringBuilder(20); sb.append(FileContentStore.STORE_PROTOCOL); sb.append(ContentStore.PROTOCOL_DELIMITER); sb.append(createTimeBasedPath(minuteBucketCount)); sb.append(GUID.generate()).append(".bin"); return sb.toString(); } }
/** * @see org.alfresco.service.cmr.action.ActionService#createCompositeActionCondition() */ public CompositeActionCondition createCompositeActionCondition() { return new CompositeActionConditionImpl(GUID.generate()); }
@Override protected String createTestUserName() { // In Community/Enterprise Alfresco, usernames are "just Strings" - e.g. they need not be email addresses. return GUID.generate(); }