com.centrasite.control
Class RegistryManager

java.lang.Object
  extended by com.centrasite.control.RegistryManager

public class RegistryManager
extends java.lang.Object


Field Summary
static java.util.Collection NO_SORT_FIND_QUALIFIERS
          Deprecated. use CentraSiteQueryManager.NO_SORT_QUALIFIER instead
static java.lang.String rcs_id
           
 
Constructor Summary
RegistryManager(Connector con)
           
 
Method Summary
 javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme()
           
 javax.xml.registry.infomodel.Concept createConcept(javax.xml.registry.infomodel.ClassificationScheme objType)
           
 javax.xml.registry.infomodel.Concept createSubConcept(javax.xml.registry.infomodel.Concept parent)
           
 void deleteObject(javax.xml.registry.infomodel.Key key)
           
 void deleteObjects(java.util.Collection keys)
           
 java.util.AbstractMap findAllObjectTypes()
           
 java.util.AbstractMap findAssociationTypes(boolean showInternalAssocs)
          Searches AssociationTypes and returns a sorted Map
static javax.xml.registry.infomodel.RegistryObject findClassifiedObject(java.util.Collection ros, java.lang.String conceptKey)
          Find RegistryObject INTERNALLY classified with given concept within collection of RegistryObject's.
static javax.xml.registry.infomodel.RegistryObject findClassifiedObject(java.util.Collection ros, java.lang.String csKey, java.lang.String value)
          Find RegistryObject EXTERNALLY classified with given classification scheme and value within collection of RegistryObject's.
 java.lang.String findConceptKey(java.lang.String classificationSchemeKey, java.lang.String conceptPath)
          Search concept within given classification scheme and return key
 java.util.AbstractMap findObjectTypes()
           
static java.util.Iterator getCentraSiteUsers(Connector connector)
           
 java.lang.String getClassificationSchemeKey(java.lang.String classificationSchemeName)
          Search concept within given classification scheme and return key
static java.lang.String getLocalStringValue(javax.xml.registry.infomodel.InternationalString is, java.util.Locale lc)
           
static boolean isEmbedded(java.lang.String objectTypeName)
          Check if Object Type is Embedded
static boolean isExternallyClassifiedWith(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String conceptKey)
          Check whether the given registry object is classified internally with a concept with given key
 javax.xml.registry.BulkResponse saveObjects(java.util.ArrayList list, boolean isUpdate)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rcs_id

public static final java.lang.String rcs_id
See Also:
Constant Field Values

NO_SORT_FIND_QUALIFIERS

public static final java.util.Collection NO_SORT_FIND_QUALIFIERS
Deprecated. use CentraSiteQueryManager.NO_SORT_QUALIFIER instead
Constructor Detail

RegistryManager

public RegistryManager(Connector con)
Method Detail

createClassificationScheme

public javax.xml.registry.infomodel.ClassificationScheme createClassificationScheme()
                                                                             throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

createConcept

public javax.xml.registry.infomodel.Concept createConcept(javax.xml.registry.infomodel.ClassificationScheme objType)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

createSubConcept

public javax.xml.registry.infomodel.Concept createSubConcept(javax.xml.registry.infomodel.Concept parent)
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

deleteObject

public void deleteObject(javax.xml.registry.infomodel.Key key)
                  throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

deleteObjects

public void deleteObjects(java.util.Collection keys)
                   throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

saveObjects

public javax.xml.registry.BulkResponse saveObjects(java.util.ArrayList list,
                                                   boolean isUpdate)
                                            throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

getLocalStringValue

public static java.lang.String getLocalStringValue(javax.xml.registry.infomodel.InternationalString is,
                                                   java.util.Locale lc)
Parameters:
is - InternationalString whose value is to be extracted
lc - Preferred locale to be used to extract the value of the InternationalString
Returns:
value of any localised string if not available using locale being passed explicitly

getCentraSiteUsers

public static java.util.Iterator getCentraSiteUsers(Connector connector)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

findClassifiedObject

public static javax.xml.registry.infomodel.RegistryObject findClassifiedObject(java.util.Collection ros,
                                                                               java.lang.String conceptKey)
                                                                        throws javax.xml.registry.JAXRException
Find RegistryObject INTERNALLY classified with given concept within collection of RegistryObject's.

Parameters:
ros - Collection of RegistryObject's to be scanned
conceptKey - Key of concept to be searched
Returns:
first matching RegistryObject within given collection, null if no match found
Throws:
javax.xml.registry.JAXRException

isExternallyClassifiedWith

public static boolean isExternallyClassifiedWith(javax.xml.registry.infomodel.RegistryObject ro,
                                                 java.lang.String conceptKey)
                                          throws javax.xml.registry.JAXRException
Check whether the given registry object is classified internally with a concept with given key

Parameters:
ro - the registry object
conceptKey - the concept key
Returns:
true, if classification found; otherwise: false
Throws:
javax.xml.registry.JAXRException

findClassifiedObject

public static javax.xml.registry.infomodel.RegistryObject findClassifiedObject(java.util.Collection ros,
                                                                               java.lang.String csKey,
                                                                               java.lang.String value)
                                                                        throws javax.xml.registry.JAXRException
Find RegistryObject EXTERNALLY classified with given classification scheme and value within collection of RegistryObject's.

Parameters:
ros - Collection of RegistryObject's to be scanned
csKey - Key of classification scheme
value - Value of external classification to be searched for
Returns:
first matching RegistryObject within given collection, null if no match found
Throws:
javax.xml.registry.JAXRException

getClassificationSchemeKey

public java.lang.String getClassificationSchemeKey(java.lang.String classificationSchemeName)
                                            throws javax.xml.registry.JAXRException
Search concept within given classification scheme and return key

Parameters:
classificationSchemeName - Name of classification scheme
Returns:
key of concept, null if not found
Throws:
javax.xml.registry.JAXRException

findConceptKey

public java.lang.String findConceptKey(java.lang.String classificationSchemeKey,
                                       java.lang.String conceptPath)
                                throws javax.xml.registry.JAXRException
Search concept within given classification scheme and return key

Parameters:
classificationSchemeKey - key of classification scheme
conceptPath - path of concept within classification scheme
Returns:
key of concept, null if not found
Throws:
javax.xml.registry.JAXRException

findAssociationTypes

public java.util.AbstractMap findAssociationTypes(boolean showInternalAssocs)
                                           throws javax.xml.registry.JAXRException
Searches AssociationTypes and returns a sorted Map

Parameters:
getAll - if true internal types are also returned
Returns:
sorted map (String.compare()) of Association Types (String, ConceptItem)
Throws:
javax.xml.registry.JAXRException

findObjectTypes

public java.util.AbstractMap findObjectTypes()
                                      throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

findAllObjectTypes

public java.util.AbstractMap findAllObjectTypes()
                                         throws javax.xml.registry.JAXRException
Throws:
javax.xml.registry.JAXRException

isEmbedded

public static boolean isEmbedded(java.lang.String objectTypeName)
Check if Object Type is Embedded

Parameters:
objectTypeName -
Returns:
true if the object type with the given name (more accurate: value) is embedded