public class RegistryManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Collection |
NO_SORT_FIND_QUALIFIERS
Deprecated.
use CentraSiteQueryManager.NO_SORT_QUALIFIER instead
|
Constructor and Description |
---|
RegistryManager(Connector con) |
Modifier and Type | Method and Description |
---|---|
ClassificationScheme |
createClassificationScheme() |
Concept |
createConcept(ClassificationScheme objType) |
Concept |
createSubConcept(Concept parent) |
void |
deleteObject(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 RegistryObject |
findClassifiedObject(java.util.Collection ros,
java.lang.String conceptKey)
Find RegistryObject INTERNALLY classified with given concept within
collection of RegistryObject's.
|
static 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(InternationalString is,
java.util.Locale lc) |
static boolean |
isEmbedded(java.lang.String objectTypeName)
Check if Object Type is Embedded
|
static boolean |
isExternallyClassifiedWith(RegistryObject ro,
java.lang.String conceptKey)
Check whether the given registry object is classified internally with
a concept with given key
|
BulkResponse |
saveObjects(java.util.ArrayList list,
boolean isUpdate) |
public static final java.util.Collection NO_SORT_FIND_QUALIFIERS
public RegistryManager(Connector con)
public ClassificationScheme createClassificationScheme() throws JAXRException
JAXRException
public Concept createConcept(ClassificationScheme objType) throws java.lang.Exception
java.lang.Exception
public Concept createSubConcept(Concept parent) throws java.lang.Exception
java.lang.Exception
public void deleteObject(Key key) throws JAXRException
JAXRException
public void deleteObjects(java.util.Collection keys) throws JAXRException
JAXRException
public BulkResponse saveObjects(java.util.ArrayList list, boolean isUpdate) throws JAXRException
JAXRException
public static java.lang.String getLocalStringValue(InternationalString is, java.util.Locale lc)
is
- InternationalString whose value is to be extractedlc
- Preferred locale to be used to extract the value of the InternationalStringpublic static java.util.Iterator getCentraSiteUsers(Connector connector) throws java.lang.Exception
java.lang.Exception
public static RegistryObject findClassifiedObject(java.util.Collection ros, java.lang.String conceptKey) throws JAXRException
ros
- Collection of RegistryObject's to be scannedconceptKey
- Key of concept to be searchedJAXRException
public static boolean isExternallyClassifiedWith(RegistryObject ro, java.lang.String conceptKey) throws JAXRException
ro
- the registry objectconceptKey
- the concept keyJAXRException
public static RegistryObject findClassifiedObject(java.util.Collection ros, java.lang.String csKey, java.lang.String value) throws JAXRException
ros
- Collection of RegistryObject's to be scannedcsKey
- Key of classification schemevalue
- Value of external classification to be searched forJAXRException
public java.lang.String getClassificationSchemeKey(java.lang.String classificationSchemeName) throws JAXRException
classificationSchemeName
- Name of classification schemeJAXRException
public java.lang.String findConceptKey(java.lang.String classificationSchemeKey, java.lang.String conceptPath) throws JAXRException
classificationSchemeKey
- key of classification schemeconceptPath
- path of concept within classification schemeJAXRException
public java.util.AbstractMap findAssociationTypes(boolean showInternalAssocs) throws JAXRException
getAll
- if true internal types are also returnedJAXRException
public java.util.AbstractMap findObjectTypes() throws JAXRException
JAXRException
public java.util.AbstractMap findAllObjectTypes() throws JAXRException
JAXRException
public static boolean isEmbedded(java.lang.String objectTypeName)
objectTypeName
-