本文整理了Java中org.safehaus.uuid.UUID.toString()
方法的一些代码示例,展示了UUID.toString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。UUID.toString()
方法的具体详情如下:
包路径:org.safehaus.uuid.UUID
类名称:UUID
方法名:toString
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public static String getUUIDAsString() {
return getUUID().toString();
}
代码示例来源:origin: org.opencms/opencms-core
/**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return m_uuid.toString();
}
代码示例来源:origin: org.opencms/opencms-solr
/**
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
return m_uuid.toString();
}
代码示例来源:origin: pentaho/pentaho-platform
public static String getUUIDAsString() {
return UUIDUtil.getUUID().toString();
}
代码示例来源:origin: org.alfresco/alfresco-core
/**
* Generates and returns a new GUID as a string based on a SecureRandom pool in other to avoid
* thread blocking in concurrent calls.
*
* @return String GUID
*/
public static String generate()
{
int randomInt = RANDOM.nextInt(SECURE_RANDOM_POOL_MAX_ITEMS);
return UUIDGenerator.getInstance().generateRandomBasedUUID(SECURE_RANDOM_POOL[randomInt]).toString();
}
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.lab/dkpro-lab-core
protected String nextId()
{
return UUIDGenerator.getInstance().generateTimeBasedUUID().toString();
}
代码示例来源:origin: deas/alfresco
/**
* Generates and returns a new GUID as a string
*
* @return String GUID
*/
public static String generate()
{
// return UUIDGenerator.getInstance().generateTimeBasedUUID().toString();
// Request for random GUIDs: AR-2300
return UUIDGenerator.getInstance().generateRandomBasedUUID().toString();
}
代码示例来源:origin: de.tudarmstadt.ukp.dkpro.lab/de.tudarmstadt.ukp.dkpro.lab.core
protected String nextId()
{
return UUIDGenerator.getInstance().generateTimeBasedUUID().toString();
}
代码示例来源:origin: org.alfresco/alfresco-repository
/**
* Generates a GUID, avoiding undesired imports.
*/
private static String generateGuid()
{
return UUIDGenerator.getInstance().generateTimeBasedUUID().toString();
}
代码示例来源:origin: Alfresco/alfresco-repository
/**
* Generates a GUID, avoiding undesired imports.
*/
private static String generateGuid()
{
return UUIDGenerator.getInstance().generateTimeBasedUUID().toString();
}
代码示例来源:origin: info.magnolia/magnolia-core
/**
* @deprecated since 5.5.3, use {@link NodeNameHelper#getUniqueName(Node, String)}
*/
// When removing this deprecated method please check if dependency to jug.2.0.0-asl can be removed. This seems to be the only usage of it.
public static String getUniqueLabel(Node parent, String label) {
try {
return Components.getComponent(NodeNameHelper.class).getUniqueName(parent, label);
} catch (RepositoryException e) {
return UUIDGenerator.getInstance().generateRandomBasedUUID().toString();
}
}
代码示例来源:origin: org.apache.oodt/cas-workflow
public synchronized void addWorkflowInstance(WorkflowInstance wInst)
throws InstanceRepositoryException {
// generate UUID for inst
UUID uuid = UUIDGenerator.getInstance().generateTimeBasedUUID();
wInst.setId(uuid.toString());
addWorkflowInstanceToCatalog(wInst);
}
代码示例来源:origin: apache/oodt
public synchronized void addWorkflowInstance(WorkflowInstance wInst)
throws InstanceRepositoryException {
// generate UUID for inst
UUID uuid = UUIDGenerator.getInstance().generateTimeBasedUUID();
wInst.setId(uuid.toString());
addWorkflowInstanceToCatalog(wInst);
}
代码示例来源:origin: pentaho/data-access
protected String uploadFile( InputStream is ) throws Exception {
StringWriter fileNameWriter = new StringWriter();
UploadFileUtils utils = new UploadFileUtils( PentahoSessionHolder.getSession() );
utils.setShouldUnzip( false );
utils.setTemporary( true );
utils.setFileName( UUIDUtil.getUUID().toString() );
utils.setWriter( fileNameWriter );
utils.process( is );
return fileNameWriter.toString();
}
代码示例来源:origin: pentaho/data-access
filename = UUIDUtil.getUUID().toString();
代码示例来源:origin: org.apache.oodt/cas-filemgr
public synchronized void addProduct(Product product)
throws CatalogException {
if(product.getProductId()!=null && CATALOG_CACHE.containsKey(product.getProductId())) {
throw new CatalogException(
"Attempt to add a product that already existed: product: ["
+ product.getProductName() + "]");
} else {
// haven't cached this product yet, so let's cache it
CompleteProduct completeProduct = new CompleteProduct();
// NOTE: reuse existing ID if possible
if (product.getProductId() == null) {
synchronized (completeProduct) {
// now generate a unique ID for the product
UUID prodUUID = generator.generateTimeBasedUUID();
product.setProductId(prodUUID.toString());
}
}
completeProduct.setProduct(product);
CATALOG_CACHE.put(product.getProductId(), completeProduct);
}
}
代码示例来源:origin: apache/oodt
public synchronized void addProduct(Product product)
throws CatalogException {
if(product.getProductId()!=null && CATALOG_CACHE.containsKey(product.getProductId())) {
throw new CatalogException(
"Attempt to add a product that already existed: product: ["
+ product.getProductName() + "]");
} else {
// haven't cached this product yet, so let's cache it
CompleteProduct completeProduct = new CompleteProduct();
// NOTE: reuse existing ID if possible
if (product.getProductId() == null) {
synchronized (completeProduct) {
// now generate a unique ID for the product
UUID prodUUID = generator.generateTimeBasedUUID();
product.setProductId(prodUUID.toString());
}
}
completeProduct.setProduct(product);
CATALOG_CACHE.put(product.getProductId(), completeProduct);
}
}
代码示例来源:origin: info.magnolia/magnolia-module-exchange-simple
final HierarchyManager hierarchyManager, Content existingContent) throws ExchangeException, RepositoryException {
final Iterator<Content> fileListIterator = topContentElement.getChildren(BaseSyndicatorImpl.RESOURCE_MAPPING_FILE_ELEMENT).iterator();
final String uuid = UUIDGenerator.getInstance().generateTimeBasedUUID().toString();
final String handle = existingContent.getHandle();
代码示例来源:origin: info.magnolia.activation/magnolia-module-activation
final HierarchyManager hierarchyManager, Content existingContent) throws ExchangeException, RepositoryException {
final Iterator<Content> fileListIterator = topContentElement.getChildren(BaseSyndicatorImpl.RESOURCE_MAPPING_FILE_ELEMENT).iterator();
final String uuid = UUIDGenerator.getInstance().generateTimeBasedUUID().toString();
final String handle = existingContent.getHandle();
代码示例来源:origin: Alfresco/alfresco-repository
String randomUUID = UUIDGenerator.getInstance().generateRandomBasedUUID().toString();
String siteName = "testSite" + randomUUID;
siteService.createSite("site-dashboard", siteName, "Title for " + siteName,
内容来源于网络,如有侵权,请联系作者删除!