com.filenet.wcm.apps.server.util
Class WcmPropertyNameUtil

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

public class WcmPropertyNameUtil
extends com.filenet.wcm.toolkit.server.util.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 getPropertyName(java.lang.String symbolicName, java.lang.String localeString, java.lang.String objectStoreName)
          Called from XSL where session is not available.
static java.lang.String lookupPropertyName(java.lang.String symbolicName, com.filenet.wcm.toolkit.server.util.WcmDataStore ds, java.lang.String objectStoreName)
          Looks up a singe property display name.
static void lookupPropertyNames(java.util.Collection symbolicNames, com.filenet.wcm.toolkit.server.util.WcmDataStore ds, java.util.List objectStores)
          Looks up display names for properties
static java.lang.String[] lookupPropertyNames(java.util.Collection symbolicNames, com.filenet.wcm.toolkit.server.util.WcmDataStore ds, java.lang.String objectStoreName)
          Looks up display names for properties
static java.lang.String[] lookupPropertyNames(java.lang.String[] symbolicNames, com.filenet.wcm.toolkit.server.util.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
 

Method Detail

clearCache

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


getCacheSize

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


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

getPropertyName

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

Parameters:
symbolicName -
localeString - The client locale string
objectStoreName - The objectstore name.
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,
                                                  com.filenet.wcm.toolkit.server.util.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,
                                                     com.filenet.wcm.toolkit.server.util.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,
                                                     com.filenet.wcm.toolkit.server.util.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

lookupPropertyNames

public static void lookupPropertyNames(java.util.Collection symbolicNames,
                                       com.filenet.wcm.toolkit.server.util.WcmDataStore ds,
                                       java.util.List objectStores)
                                throws java.lang.Exception
Looks up display names for properties

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


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