com.sas.edir.util
Class GUIDUtil

java.lang.Object
  |
  +--com.sas.edir.util.GUIDUtil

public class GUIDUtil
extends java.lang.Object

GUID creation

Version:
1.0
Author:
SAS

Constructor Summary
GUIDUtil()
          Null constructor
 
Method Summary
static java.lang.String getGuid(EnterpriseDirectory privEdir, Entity content)
          Creates a GUID value and stores it in a metadata store as a sasGuid attribute if one does not already exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GUIDUtil

public GUIDUtil()
Null constructor
Method Detail

getGuid

public static java.lang.String getGuid(EnterpriseDirectory privEdir,
                                       Entity content)
                                throws java.lang.Exception
Creates a GUID value and stores it in a metadata store as a sasGuid attribute if one does not already exist.
Parameters:
privEdir - An EnterpriseDirectory that has permission to write to , the metadata store for the content
content - An Entity that represents the content to be referred to by using a GUID
Returns:
A String representing the globally unique ID for a piece of content
Throws:
java.lang.Exception - on error