/** * Builds a new GUID * * @return the string */ public static String newGUID() { return GUID.generate(); }
/** * Instantiates a new object guid. * * @param secure true to use SecureRandom */ public GUID(boolean secure) { getRandomGUID(secure); }
/** * Constructs a GUID * * @return String */ public String newGUID() { return new org.springframework.extensions.webscripts.GUID().toString(); }
/** * Builds a new GUID * * @return the string */ public static String newGUID() { return GUID.generate(); }
/** * Instantiates a new object guid. * * @param secure true to use SecureRandom */ public GUID(boolean secure) { getRandomGUID(secure); }
/** * Constructs a GUID * * @return String */ public String newGUID() { return new org.springframework.extensions.webscripts.GUID().toString(); }
@Override public List<Void> execute() throws Throwable { for (FileInfo fileInfo : docs) { Map<QName, Serializable> props = nodeService.getProperties(fileInfo.getNodeRef()); props.put(ContentModel.PROP_DESCRIPTION, "description-" + GUID.generate()); props.put(ContentModel.PROP_TITLE, "title-" + GUID.generate()); nodeService.setProperties(fileInfo.getNodeRef(), props); } return null; } });
/** * Instantiates a new object guid. */ public GUID() { getRandomGUID(false); }
public List<String> execute() throws Throwable { List<String> users = new ArrayList<String>(4); for (String shareRole : SiteModel.STANDARD_PERMISSIONS) { final String userName = siteShortName + "_" + shareRole + "_" + GUID.generate(); log.debug("Creating temporary site user " + userName); createPerson(userName); siteService.setMembership(siteShortName, userName, shareRole); users.add(userName); temporarySiteUsers.add(userName); } return users; } });
/** * Instantiates a new object guid. * * @param secure true to use SecureRandom */ public GUID(boolean secure) { getRandomGUID(secure); }
@Override public String execute() throws Throwable { nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, GUID.generate()); String txnId = AlfrescoTransactionSupport.getTransactionId(); return txnId; } };
/** * Instantiates a new object guid. */ public GUID() { getRandomGUID(false); }
@Override public String execute() throws Throwable { // add aspect to the node String newDocName = DOC + GUID.generate(); nodeService.addAspect(nodeRef, ContentModel.ASPECT_AUTHOR, null); nodeService.setProperty(nodeRef, ContentModel.PROP_NAME, newDocName); return newDocName; } });
/** * Instantiates a new object guid. */ public GUID() { getRandomGUID(false); }
public void testLoginNotExistingTenant() { boolean wasEnabled = AuthenticationUtil.isMtEnabled(); try { tenantAdminService.createTenant(GUID.generate() + "test1.test", "admin".toCharArray()); String notExistingTenant = GUID.generate() + "tenant.test"; String userName = "user@" + notExistingTenant; assertFalse(tenantAdminService.existsTenant(notExistingTenant)); try { pubAuthenticationService.authenticate(userName, GUID.generate().toCharArray()); fail(); } catch (AuthenticationException e) { // it is expected exception } } finally { AuthenticationUtil.setMtEnabled(wasEnabled); } }