|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.filenet.wcm.toolkit.server.util.DisplayNameUtil
Constructor Summary | |
DisplayNameUtil(WcmDataStore ds)
|
Method Summary | |
static void |
addDisplayName(java.lang.String id,
java.lang.String displayName)
Adds a new id -> displayName pair to the cache |
static void |
addShortName(java.lang.String fullName,
java.lang.String shortName)
|
static void |
clearCache()
Clears the display name cache. |
static void |
clearShortNameCache()
|
static java.util.Set |
extractUserNames(org.w3c.dom.Document xml)
Parses the XML and returns a Set of values of user name properties. |
static int |
getCacheSize()
Returns the size of the cache. |
static java.lang.String |
getShortName(java.lang.String fullName)
|
static int |
getShortNameCacheSize()
|
static java.lang.String |
lookupDisplayName(java.lang.String id)
Called from XSL where session is not available. |
static java.lang.String |
lookupDisplayName(java.lang.String id,
com.filenet.wcm.api.Realm realm)
Looks up a singe display name value. |
static java.lang.String |
lookupDisplayName(java.lang.String id,
WcmDataStore ds)
Lookup the display name value. |
static void |
lookupDisplayNames(org.w3c.dom.Document xml,
WcmDataStore ds)
Deprecated. this is a very CPU intensive operation for large documents. If you are using this method, consider using something else. Looks up all display names contained in the XML document. The display name values are added to the cache. |
static void |
lookupDisplayNames(java.util.Set ids,
com.filenet.wcm.api.Session s,
com.filenet.wcm.api.Realm realm)
Looks ups a display names for Set ids. |
static void |
lookupDisplayNames(java.util.Set ids,
WcmDataStore ds)
Looks up the display names for values in the ids Set. |
void |
lookupDisplayNamesFromXSL(org.w3c.dom.NodeList nl)
|
static java.lang.String |
lookupDisplayNameSimple(java.lang.String id)
Called from code where session is not available. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DisplayNameUtil(WcmDataStore ds)
Method Detail |
public void lookupDisplayNamesFromXSL(org.w3c.dom.NodeList nl)
public static void addShortName(java.lang.String fullName, java.lang.String shortName)
public static java.lang.String getShortName(java.lang.String fullName)
public static void clearShortNameCache()
public static int getShortNameCacheSize()
public static void clearCache()
public static int getCacheSize()
public static java.lang.String lookupDisplayName(java.lang.String id)
id
-
public static java.lang.String lookupDisplayNameSimple(java.lang.String id)
id
-
public static void addDisplayName(java.lang.String id, java.lang.String displayName)
id
- displayName
- public static java.lang.String lookupDisplayName(java.lang.String id, com.filenet.wcm.api.Realm realm) throws java.lang.Exception
id
- realm
-
java.lang.Exception
public static void lookupDisplayNames(org.w3c.dom.Document xml, WcmDataStore ds) throws java.lang.Exception
xml
- ds
-
java.lang.Exception
public static void lookupDisplayNames(java.util.Set ids, WcmDataStore ds) throws java.lang.Exception
ids
- ds
- DataStore object
java.lang.Exception
public static java.lang.String lookupDisplayName(java.lang.String id, WcmDataStore ds) throws java.lang.Exception
id
- ds
-
java.lang.Exception
public static void lookupDisplayNames(java.util.Set ids, com.filenet.wcm.api.Session s, com.filenet.wcm.api.Realm realm) throws java.lang.Exception
ids
- Set of idss
- Session objectrealm
- Real object
java.lang.Exception
public static java.util.Set extractUserNames(org.w3c.dom.Document xml)
xml
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |