com.softwareag.centrasite.appl.framework.persistence
Class RegistryObjectPaths

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.RegistryObjectPaths

public final class RegistryObjectPaths
extends java.lang.Object

The class manages a mapping between RegistryObject conceptPaths and key. It serves as intermediate cache level, by enabling findByPath operations to look up the key based RegistryObject cache of the JAXR Layer.


Method Summary
 java.util.List<java.lang.String> getChildConceptKeys(java.lang.String parentConceptKey)
           
 java.lang.String getClassificationSchemeKey(java.lang.String classificationSchemeName)
           
 java.lang.String getConceptKey(java.lang.String path)
          Retrieve a Concept key by given path.
static RegistryObjectPaths getInstance(Configuration conf)
          Retrieves and instance of a RegistryObjectPaths.
 void putChildConceptKeys(java.lang.String parentConceptKey, java.util.List<java.lang.String> childConceptKeys)
           
 void putClassificationSchemeName(java.lang.String classificationSchemeName, java.lang.String classificationSchemeKey)
           
 void putConceptPath(java.lang.String path, java.lang.String registryObjectKey)
          Add path to key mapping to the map.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RegistryObjectPaths getInstance(Configuration conf)
Retrieves and instance of a RegistryObjectPaths.

Parameters:
conf -
Returns:
RegistryObjectPaths

getConceptKey

public java.lang.String getConceptKey(java.lang.String path)
Retrieve a Concept key by given path.

Parameters:
path -
Returns:
String the key corresponding to the given path or null if not found.

putConceptPath

public void putConceptPath(java.lang.String path,
                           java.lang.String registryObjectKey)
Add path to key mapping to the map.

Parameters:
path -
registryObjectKey -

getChildConceptKeys

public java.util.List<java.lang.String> getChildConceptKeys(java.lang.String parentConceptKey)
Parameters:
parentConceptKey -
Returns:
List

putChildConceptKeys

public void putChildConceptKeys(java.lang.String parentConceptKey,
                                java.util.List<java.lang.String> childConceptKeys)
Parameters:
parentConceptKey -
childConceptKeys -

getClassificationSchemeKey

public java.lang.String getClassificationSchemeKey(java.lang.String classificationSchemeName)
Parameters:
classificationSchemeName -
Returns:
String

putClassificationSchemeName

public void putClassificationSchemeName(java.lang.String classificationSchemeName,
                                        java.lang.String classificationSchemeKey)
Parameters:
classificationSchemeName -
classificationSchemeKey -