com.filenet.wcm.toolkit.server.util
Class PropertyNameUtil

java.lang.Object
  extended bycom.filenet.wcm.toolkit.server.util.PropertyNameUtil

public class PropertyNameUtil
extends java.lang.Object


Constructor Summary
protected PropertyNameUtil()
           
 
Method Summary
static void addPropertyName(java.lang.String symbolicName, java.lang.String displayName, java.util.Locale locale, java.lang.String objectStoreName)
          Adds a new id -> displayName pair to the cache
static void clearCache()
          Clears the display name cache.
static int getCacheSize()
          Returns the size of the cache.
static java.lang.String getPropertyName(java.lang.String symbolicName, java.util.Locale locale, java.lang.String objectStoreName)
          Called from XSL where session is not available.
static java.lang.String lookupPropertyName(java.lang.String symbolicName, WcmDataStore ds, java.lang.String objectStoreName)
          Looks up a singe property display name.
static java.lang.String[] lookupPropertyNames(java.util.Collection symbolicNames, WcmDataStore ds, java.lang.String objectStoreName)
          Looks up display names for properties
static java.lang.String[] lookupPropertyNames(java.lang.String[] symbolicNames, WcmDataStore ds, java.lang.String objectStoreName)
          Looks up display names for properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyNameUtil

protected PropertyNameUtil()
Method Detail

clearCache

public static void clearCache()
Clears the display name cache.


getCacheSize

public static int getCacheSize()
Returns the size of the cache.

Returns:
int

getPropertyName

public static java.lang.String getPropertyName(java.lang.String symbolicName,
                                               java.util.Locale locale,
                                               java.lang.String objectStoreName)
Called from XSL where session is not available. If the display name is not found, id is returned.

Parameters:
symbolicName -
Returns:
display name if found, id if not found

addPropertyName

public static void addPropertyName(java.lang.String symbolicName,
                                   java.lang.String displayName,
                                   java.util.Locale locale,
                                   java.lang.String objectStoreName)
Adds a new id -> displayName pair to the cache

Parameters:
symbolicName -
displayName -

lookupPropertyName

public static java.lang.String lookupPropertyName(java.lang.String symbolicName,
                                                  WcmDataStore ds,
                                                  java.lang.String objectStoreName)
                                           throws java.lang.Exception
Looks up a singe property display name. If the value is not in the cache, the method looks up the value

Parameters:
symbolicName -
Returns:
display name for property
Throws:
java.lang.Exception

lookupPropertyNames

public static java.lang.String[] lookupPropertyNames(java.lang.String[] symbolicNames,
                                                     WcmDataStore ds,
                                                     java.lang.String objectStoreName)
                                              throws java.lang.Exception
Looks up display names for properties

Parameters:
symbolicNames -
ds - data store object
objectStoreName -
Throws:
java.lang.Exception

lookupPropertyNames

public static java.lang.String[] lookupPropertyNames(java.util.Collection symbolicNames,
                                                     WcmDataStore ds,
                                                     java.lang.String objectStoreName)
                                              throws java.lang.Exception
Looks up display names for properties

Parameters:
symbolicNames -
ds - WcmDataStore object
objectStoreName -
Throws:
java.lang.Exception


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.