public class RegistryAccessor
extends java.lang.Object
Constructor and Description |
---|
RegistryAccessor(QueryContext pContext)
Creates a new instance with the given context.
|
Modifier and Type | Method and Description |
---|---|
void |
addSlot(javax.xml.registry.infomodel.RegistryObject pRo,
java.lang.String pSlot,
java.util.Collection<java.lang.String> pValue)
Adds new slot value.
|
javax.xml.registry.infomodel.Association |
createAssociation(javax.xml.registry.infomodel.RegistryObject sourceObject,
javax.xml.registry.infomodel.RegistryObject targetObject,
javax.xml.registry.infomodel.Concept associationType)
Utility method for creating an instance of
Association . |
javax.xml.registry.infomodel.Association |
createAssociationByKey(javax.xml.registry.infomodel.RegistryObject sourceObject,
javax.xml.registry.infomodel.RegistryObject targetObject,
java.lang.String conceptKey)
Utility method for creating an instance of
Association . |
javax.xml.registry.infomodel.Association |
createAssociationByType(javax.xml.registry.infomodel.RegistryObject sourceObject,
javax.xml.registry.infomodel.RegistryObject targetObject,
java.lang.String associationType)
Utility method for creating an instance of
Association . |
javax.xml.registry.infomodel.Classification |
createClassification(javax.xml.registry.infomodel.RegistryObject ro,
javax.xml.registry.infomodel.Concept concept)
Utility method for creating an instance of
Classification . |
javax.xml.registry.infomodel.Classification |
createClassification(javax.xml.registry.infomodel.RegistryObject pObject,
java.lang.String key)
Utility method for creating an instance of
Classification . |
javax.xml.registry.infomodel.Classification |
createClassification(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String classificationScheme,
java.lang.String conceptPath)
Utility method for creating an instance of
Classification . |
javax.xml.registry.infomodel.ExternalLink |
createExternalLink(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String uri,
java.lang.String description)
Utility method for creating an instance of
ExternalLink . |
void |
delete(java.util.Collection<javax.xml.registry.infomodel.Key> keys)
Deletes RegistryObjects by a given
Collection of keys. |
void |
delete(javax.xml.registry.infomodel.Key key)
Removes the object with the given key from the registry.
|
void |
delete(java.lang.String id)
Removes the object with the given key from the registry.
|
void |
deleteObjects(java.util.Collection<java.lang.String> ids)
Deletes RegistryObjects by a given
Collection of ids. |
javax.xml.registry.infomodel.Concept |
findAssociationTypeConcept(java.lang.String associationType)
Retrieves the
Concept for the given association type. |
javax.xml.registry.infomodel.Classification |
findClassificationByConcept(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String scheme,
java.lang.String conceptPath)
Retrieves a Classification by given concept path.
|
java.util.Collection<javax.xml.registry.infomodel.Classification> |
findClassificationsByConcept(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String scheme,
java.lang.String conceptPath)
Retrieves a
Classification by given concept path. |
javax.xml.registry.infomodel.ClassificationScheme |
findClassificationSchemeByName(java.lang.String name)
Retrieves
ClassificationScheme by name. |
javax.xml.registry.infomodel.Concept |
findConceptByPath(java.lang.String fullPath)
Retrieves a
Concept by full path. |
javax.xml.registry.infomodel.Concept |
findConceptByPath(java.lang.String classificationScheme,
java.lang.String path)
Retrieves a
Concept by ClasssificationScheme
name and path. |
javax.xml.registry.infomodel.Concept |
findObjectTypeConcept(java.lang.String objectType)
Retrieves the
Concept for the given object type. |
java.util.Collection<javax.xml.registry.infomodel.Association> |
getAssociationsBySourceAndTypeKey(javax.xml.registry.infomodel.RegistryObject pRo,
java.lang.String associationTypeKey)
Returns all associations with the given source object and the given
association type.
|
java.util.Collection<javax.xml.registry.infomodel.Association> |
getAssociationsBySourceAndTypeKeyAndTargetType(javax.xml.registry.infomodel.RegistryObject pRo,
java.lang.String associationTypeKey,
java.lang.String objectType)
Returns all associations with the given source object, the given
association type, and the given object type.
|
java.util.Collection<javax.xml.registry.infomodel.Association> |
getAssociationsByTarget(java.lang.String targetId)
Returns the list of associations with the given target id.
|
java.util.Collection<javax.xml.registry.infomodel.Association> |
getAssociationsByTypeAndTarget(javax.xml.registry.infomodel.Concept assocType,
java.lang.String objectType,
java.lang.String targetId)
Return all associations with the given association type, source object type
and the target object id.
|
java.lang.String |
getCheckpointName(javax.xml.registry.infomodel.RegistryObject ro)
Gets the check point name from the given registry object.
|
java.util.Collection<javax.xml.registry.infomodel.Classification> |
getClassifications(javax.xml.registry.infomodel.RegistryObject ro,
java.util.Collection<javax.xml.registry.infomodel.Concept> concepts)
Retrieves all classifications with concepts from the given collection.
|
java.util.Collection<javax.xml.registry.infomodel.Classification> |
getClassifications(javax.xml.registry.infomodel.RegistryObject pRo,
java.lang.String scheme,
java.lang.String parentConceptPath)
Returns the collection of instances, which refer to the given concept.
|
QueryContext |
getContext()
Returns the context.
|
javax.xml.registry.infomodel.Classification |
getEnumClassification(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String key)
Retrieves a classification with the concept id.
|
javax.xml.registry.infomodel.Classification |
getEnumClassification(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String scheme,
java.lang.String parentConceptPath)
Retrieves a classification with a concept which belongs to a given parent.
|
java.util.Collection<javax.xml.registry.infomodel.Classification> |
getEnumClassifications(javax.xml.registry.infomodel.RegistryObject ro,
javax.xml.registry.infomodel.Concept parentConcept)
Retrieves all classifications with a concept which belongs to a given parent.
|
java.util.Collection<javax.xml.registry.infomodel.Classification> |
getEnumClassifications(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String key)
Retrieves all classifications with a concept which belongs to a given parent.
|
java.util.Collection<javax.xml.registry.infomodel.Classification> |
getEnumClassifications(javax.xml.registry.infomodel.RegistryObject ro,
java.lang.String scheme,
java.lang.String parentConceptPath)
Retrieves all classifications with a concept which belongs to a given parent.
|
javax.xml.registry.infomodel.RegistryObject |
getRegistryObject(Key pKey)
Returns the registry object with the given Key.
|
javax.xml.registry.infomodel.RegistryObject |
getRegistryObject(javax.xml.registry.infomodel.Key pKey)
Returns the registry object with the given Key.
|
javax.xml.registry.infomodel.RegistryObject |
getRegistryObject(java.lang.String pID)
Returns the registry object with the given ID.
|
java.util.Collection<javax.xml.registry.infomodel.RegistryObject> |
getRegistryObjects(java.lang.String objectType)
Returns all registry objects from the given object type.
|
public RegistryAccessor(QueryContext pContext)
pContext
- The QueryContext
instancepublic void addSlot(javax.xml.registry.infomodel.RegistryObject pRo, java.lang.String pSlot, java.util.Collection<java.lang.String> pValue) throws javax.xml.registry.JAXRException
null
and not empty,
adds the new value.pRo
- The RegistryObject
to which the slot should be addedpSlot
- The name of the slot to addpValue
- The Collection
of values for the slotjavax.xml.registry.JAXRException
- If a JAXR error occurs while executing the method callpublic javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.RegistryObject pObject, java.lang.String key) throws javax.xml.registry.JAXRException
Classification
. The
instance is attached to the given object.pObject
- the registry object to be classified.key
- the key of the concept to be used for creating the
classification.Classification
instancejavax.xml.registry.JAXRException
- If a JAXR error occurs while executing the method callpublic javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String classificationScheme, java.lang.String conceptPath) throws javax.xml.registry.JAXRException
Classification
. The
instance is attached to the given object.ro
- The RegistryObject
to be classifiedclassificationScheme
- The classification scheme name to add for the classificationconceptPath
- The concept path for the schemeClassification
instancejavax.xml.registry.JAXRException
- If a JAXR error occurs while executing the method callpublic javax.xml.registry.infomodel.Classification createClassification(javax.xml.registry.infomodel.RegistryObject ro, javax.xml.registry.infomodel.Concept concept) throws javax.xml.registry.JAXRException
Classification
. The
instance is attached to the given object.ro
- The RegistryObject
to be classifiedconcept
- The Concept
to be included in the classificationClassification
instancejavax.xml.registry.JAXRException
- If a JAXR error occurs while executing the method callpublic javax.xml.registry.infomodel.Association createAssociationByKey(javax.xml.registry.infomodel.RegistryObject sourceObject, javax.xml.registry.infomodel.RegistryObject targetObject, java.lang.String conceptKey) throws javax.xml.registry.JAXRException
Association
. The
instance is attached to the given source object.sourceObject
- the registry object that will serve as source for the association.targetObject
- the registry object that will serve as target for the association.conceptKey
- the key of the concept representing the association type.Association
instancejavax.xml.registry.JAXRException
- If a JAXR error occurs while creating the associationpublic javax.xml.registry.infomodel.Association createAssociationByType(javax.xml.registry.infomodel.RegistryObject sourceObject, javax.xml.registry.infomodel.RegistryObject targetObject, java.lang.String associationType) throws javax.xml.registry.JAXRException
Association
. The
instance is attached to the given source object.sourceObject
- the registry object that will serve as source for the association.targetObject
- the registry object that will serve as target for the association.associationType
- the name of the association typeAssociation
instancejavax.xml.registry.JAXRException
- If a JAXR error occurs while creating the associationpublic javax.xml.registry.infomodel.Association createAssociation(javax.xml.registry.infomodel.RegistryObject sourceObject, javax.xml.registry.infomodel.RegistryObject targetObject, javax.xml.registry.infomodel.Concept associationType) throws javax.xml.registry.JAXRException
Association
. The
instance is attached to the given source object.sourceObject
- the registry object that will serve as source for the association.targetObject
- the registry object that will serve as target for the association.associationType
- the Concept
representing the association type.Association
instancejavax.xml.registry.JAXRException
- If a JAXR error occurs while creating the associationpublic javax.xml.registry.infomodel.ExternalLink createExternalLink(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String uri, java.lang.String description) throws javax.xml.registry.JAXRException
ExternalLink
. The
instance is attached to the given registry object.ro
- the registry object that will contain the external link.uri
- the URI for the external link.description
- the description for the external link.ExternalLink
instancejavax.xml.registry.JAXRException
- If a JAXR error occurs while creating the external linkpublic void delete(java.lang.String id) throws javax.xml.registry.JAXRException
id
- The UUID key for the object to be removedjavax.xml.registry.JAXRException
- If a JAXR error occurs while performing the deletionpublic void delete(javax.xml.registry.infomodel.Key key) throws javax.xml.registry.JAXRException
key
- the Key
of the RegistryObject
to be deleted.javax.xml.registry.JAXRException
- If a JAXR error occurs while performing the deletionpublic void delete(java.util.Collection<javax.xml.registry.infomodel.Key> keys) throws javax.xml.registry.JAXRException
Collection
of keys.keys
- a Collection
of Key
objects.javax.xml.registry.JAXRException
- If a JAXR error occurs while performing the deletionpublic void deleteObjects(java.util.Collection<java.lang.String> ids) throws javax.xml.registry.JAXRException
Collection
of ids.ids
- a Collection
of String
objects representing ids.javax.xml.registry.JAXRException
- If a JAXR error occurs while performing the deletionpublic QueryContext getContext()
QueryContext
instancepublic javax.xml.registry.infomodel.RegistryObject getRegistryObject(Key pKey) throws javax.xml.registry.JAXRException
pKey
- The Key
instanceRegistryObject
instance corresponding to pKeyjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the registry objectpublic javax.xml.registry.infomodel.RegistryObject getRegistryObject(javax.xml.registry.infomodel.Key pKey) throws javax.xml.registry.JAXRException
pKey
- The Key
for the registry objectRegistryObject
instance corresponding to pKeyjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the registry objectpublic java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRegistryObjects(java.lang.String objectType) throws javax.xml.registry.JAXRException
objectType
- The name of the object typeCollection
of RegistryObject
s corresponding to the given objectTypejavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the registry objectspublic javax.xml.registry.infomodel.RegistryObject getRegistryObject(java.lang.String pID) throws javax.xml.registry.JAXRException
pID
- The UUID of the registry objectRegistryObject
corresponding to pIDjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the registry objectpublic java.util.Collection<javax.xml.registry.infomodel.Association> getAssociationsBySourceAndTypeKeyAndTargetType(javax.xml.registry.infomodel.RegistryObject pRo, java.lang.String associationTypeKey, java.lang.String objectType) throws javax.xml.registry.JAXRException
pRo
- The RegistryObject
which is the source for the associationassociationTypeKey
- The UUID key for the association typeobjectType
- The type of object which is the target of the associationCollection
of Association
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the associationspublic java.util.Collection<javax.xml.registry.infomodel.Association> getAssociationsBySourceAndTypeKey(javax.xml.registry.infomodel.RegistryObject pRo, java.lang.String associationTypeKey) throws javax.xml.registry.JAXRException
pRo
- The RegistryObject
which is the source for the associationassociationTypeKey
- The UUID key for the association typeCollection
of Association
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the associationspublic java.util.Collection<javax.xml.registry.infomodel.Association> getAssociationsByTypeAndTarget(javax.xml.registry.infomodel.Concept assocType, java.lang.String objectType, java.lang.String targetId) throws javax.xml.registry.JAXRException
assocType
- associationType to look forobjectType
- type of the object that should be source of the associationtargetId
- Id of the target of the associationCollection
of Association
s of the given assocType-Type and for which
the source object is of the given objectType-Typejavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the associationspublic java.util.Collection<javax.xml.registry.infomodel.Association> getAssociationsByTarget(java.lang.String targetId) throws javax.xml.registry.JAXRException
targetId
- Id of the target of the associationCollection
of Association
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the associationspublic java.util.Collection<javax.xml.registry.infomodel.Classification> getClassifications(javax.xml.registry.infomodel.RegistryObject pRo, java.lang.String scheme, java.lang.String parentConceptPath) throws javax.xml.registry.JAXRException
pRo
- The RegistryObject
which is classified with the given conceptscheme
- The name of the classification scheme for the conceptparentConceptPath
- The parent concept path for the conceptCollection
of Classification
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the classificationspublic javax.xml.registry.infomodel.Classification getEnumClassification(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String scheme, java.lang.String parentConceptPath) throws javax.xml.registry.JAXRException
ro
- The RegistryObject
which has the classificationscheme
- The name of the concept for the classificationparentConceptPath
- The parent concept path for the conceptClassification
which matches the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the classificationpublic javax.xml.registry.infomodel.Classification getEnumClassification(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String key) throws javax.xml.registry.JAXRException
ro
- The RegistryObject
which has the classificationkey
- The concept UUID key in the classificationClassification
instance matching the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the classificationpublic java.util.Collection<javax.xml.registry.infomodel.Classification> getEnumClassifications(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String scheme, java.lang.String parentConceptPath) throws javax.xml.registry.JAXRException
ro
- The RegistryObject
which has the classificationscheme
- The name of the concept for the classificationparentConceptPath
- The parent concept path for the conceptCollection
of Classification
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the classificationspublic java.util.Collection<javax.xml.registry.infomodel.Classification> getEnumClassifications(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String key) throws javax.xml.registry.JAXRException
ro
- The RegistryObject
which has the classificationkey
- The concept UUID key in the classificationCollection
of Classification
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the classificationspublic java.util.Collection<javax.xml.registry.infomodel.Classification> getEnumClassifications(javax.xml.registry.infomodel.RegistryObject ro, javax.xml.registry.infomodel.Concept parentConcept) throws javax.xml.registry.JAXRException
ro
- The RegistryObject
which has the classificationparentConcept
- The parent Concept
in the classificationCollection
of Classification
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the classificationspublic java.util.Collection<javax.xml.registry.infomodel.Classification> getClassifications(javax.xml.registry.infomodel.RegistryObject ro, java.util.Collection<javax.xml.registry.infomodel.Concept> concepts) throws javax.xml.registry.JAXRException
ro
- The RegistryObject
which has the classificationconcepts
- The Collection
of Concept
s any of which should match in the classificationCollection
of Classification
s which match the given valuesjavax.xml.registry.JAXRException
- If a JAXR error occurs while fetching the classificationspublic javax.xml.registry.infomodel.Classification findClassificationByConcept(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String scheme, java.lang.String conceptPath) throws javax.xml.registry.JAXRException
ro
- The RegistryObject
which has the classification.scheme
- The name of the classification schemeconceptPath
- The path of the concept in the classificationClassification
matching these values or null
if no match foundjavax.xml.registry.JAXRException
- If a JAXR error occurs while finding the classificationpublic java.util.Collection<javax.xml.registry.infomodel.Classification> findClassificationsByConcept(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String scheme, java.lang.String conceptPath) throws javax.xml.registry.JAXRException
Classification
by given concept path.ro
- The RegistryObject
which has the classification.scheme
- The name of the classification schemeconceptPath
- The path of the concept in the classificationCollection
of Classification
s matching these values or null
if no match foundjavax.xml.registry.JAXRException
- If a JAXR error occurs while finding the classificationpublic javax.xml.registry.infomodel.Concept findConceptByPath(java.lang.String classificationScheme, java.lang.String path) throws javax.xml.registry.JAXRException
Concept
by ClasssificationScheme
name and path.classificationScheme
- The classification scheme namepath
- The path for the classification schemeConcept
corresponding to the given scheme name and pathjavax.xml.registry.JAXRException
- If a JAXR error occurs while finding the conceptpublic javax.xml.registry.infomodel.Concept findConceptByPath(java.lang.String fullPath) throws javax.xml.registry.JAXRException
Concept
by full path.fullPath
- The full path of the conceptConcept
corresponding to the given fullPathjavax.xml.registry.JAXRException
- If a JAXR error occurs while finding the conceptpublic javax.xml.registry.infomodel.Concept findObjectTypeConcept(java.lang.String objectType) throws javax.xml.registry.JAXRException
Concept
for the given object type.objectType
- The name for the object typeConcept
corresponding to the given objectTypejavax.xml.registry.JAXRException
- If a JAXR error occurs while finding the conceptpublic javax.xml.registry.infomodel.Concept findAssociationTypeConcept(java.lang.String associationType) throws javax.xml.registry.JAXRException
Concept
for the given association type.associationType
- The name of the association type for the conceptConcept
corresponding to the given associationTypejavax.xml.registry.JAXRException
- If a JAXR error occurs while finding the conceptpublic javax.xml.registry.infomodel.ClassificationScheme findClassificationSchemeByName(java.lang.String name) throws javax.xml.registry.JAXRException
ClassificationScheme
by name.name
- The name of the classification schemeClassificationScheme
for the given namejavax.xml.registry.JAXRException
- If a JAXR error occurs while finding the classification schemepublic java.lang.String getCheckpointName(javax.xml.registry.infomodel.RegistryObject ro) throws CSAppFrameworkException
ro
- The RegistryObject
instanceCSAppFrameworkException
- If an error occurs while getting the check point name