|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.persistence.RegistryAccessor
public class RegistryAccessor
The class containing the main logic for working with JAXR Registry.
Constructor Summary | |
---|---|
RegistryAccessor(QueryContext pContext)
Creates a new instance with the given context. |
Method Summary | |
---|---|
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)
|
java.util.Collection<javax.xml.registry.infomodel.Association> |
getAssociationsByTypeAndTarget(javax.xml.registry.infomodel.Concept assocType,
java.lang.String objectType,
java.lang.String targetId)
|
java.lang.String |
getCheckpointName(javax.xml.registry.infomodel.RegistryObject ro)
|
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 a concept which belongs to 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 a concept which belongs to a given parent. |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RegistryAccessor(QueryContext pContext)
Method Detail |
---|
public 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.
javax.xml.registry.JAXRException
public 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.
javax.xml.registry.JAXRException
public 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.
javax.xml.registry.JAXRException
public 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.
javax.xml.registry.JAXRException
public 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.
javax.xml.registry.JAXRException
public 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 key of the concept representing the association type.
javax.xml.registry.JAXRException
public 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.
javax.xml.registry.JAXRException
public 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 foro the external link.
javax.xml.registry.JAXRException
public void delete(java.lang.String id) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public 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
public 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
public 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
public QueryContext getContext()
public javax.xml.registry.infomodel.RegistryObject getRegistryObject(Key pKey) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.RegistryObject getRegistryObject(javax.xml.registry.infomodel.Key pKey) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public java.util.Collection<javax.xml.registry.infomodel.RegistryObject> getRegistryObjects(java.lang.String objectType) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.RegistryObject getRegistryObject(java.lang.String pID) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public 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
javax.xml.registry.JAXRException
public java.util.Collection<javax.xml.registry.infomodel.Association> getAssociationsBySourceAndTypeKey(javax.xml.registry.infomodel.RegistryObject pRo, java.lang.String associationTypeKey) throws javax.xml.registry.JAXRException
javax.xml.registry.JAXRException
public 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 association
javax.xml.registry.JAXRException
public 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 association
javax.xml.registry.JAXRException
public 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
javax.xml.registry.JAXRException
public 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
- scheme
- parentConceptPath
-
Classification
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.Classification getEnumClassification(javax.xml.registry.infomodel.RegistryObject ro, java.lang.String key) throws javax.xml.registry.JAXRException
ro
- key
-
Classification
javax.xml.registry.JAXRException
public 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
- scheme
- parentConceptPath
-
Collection
javax.xml.registry.JAXRException
public 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
-
Collection
javax.xml.registry.JAXRException
public 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
- parentConcept
-
Collection
javax.xml.registry.JAXRException
public 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
- concepts
-
Collection
javax.xml.registry.JAXRException
public 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
Classification
by given concept path
javax.xml.registry.JAXRException
public 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
javax.xml.registry.JAXRException
public 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.
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.Concept findConceptByPath(java.lang.String fullPath) throws javax.xml.registry.JAXRException
Concept
by full path.
fullPath
-
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.Concept findObjectTypeConcept(java.lang.String objectType) throws javax.xml.registry.JAXRException
Concept
for the given object type.
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.Concept findAssociationTypeConcept(java.lang.String associationType) throws javax.xml.registry.JAXRException
Concept
for the given association type.
javax.xml.registry.JAXRException
public javax.xml.registry.infomodel.ClassificationScheme findClassificationSchemeByName(java.lang.String name) throws javax.xml.registry.JAXRException
ClassificationScheme
by name.
javax.xml.registry.JAXRException
public java.lang.String getCheckpointName(javax.xml.registry.infomodel.RegistryObject ro) throws CSAppFrameworkException
ro
-
CSAppFrameworkException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |