|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataStore
This interface provides the methods required by the RegistryServiceImpl
in order for it to operate. This is the extension point one would implement
when providing a different back end storage.
Method Summary | |
---|---|
void |
deleteRegistryObject(String guid,
Class<? extends RegistryObject> objectClass)
Removes a registry object from the back end store. |
RegistryResponse |
getAssociations(AssociationQuery query,
Integer start,
Integer rows)
Retrieves associations from the back end store that match the query and are within the requested results list range |
List<AuditableEvent> |
getAuditableEvents(String affectedObject)
Retrieves the list of events that the given affected object was referenced in |
List<ClassificationNode> |
getClassificationNodes(String scheme)
Retrieves the list of classification nodes which fall under a given classification scheme |
RegistryResponse |
getExtrinsics(ExtrinsicQuery query,
Integer start,
Integer rows)
Retrieves products from back end store that match the query and are within the requested result list range |
long |
getNumRegistryObjects(Class<? extends RegistryObject> objectClass)
Gets the count of registry objects managed in the backed of a given type. |
RegistryObject |
getRegistryObject(String guid,
Class<? extends RegistryObject> objectClass)
Returns the registry object with a given guid and of the given type |
RegistryObject |
getRegistryObject(String lid,
String versionId,
Class<? extends RegistryObject> objectClass)
Retrieves a registry object that is identified by its logical identifier and user supplied version. |
List<RegistryObject> |
getRegistryObjects(Integer start,
Integer rows,
Class<? extends RegistryObject> objectClass)
This method allows paging through registry objects of a given type. |
RegistryResponse |
getRegistryObjects(ObjectQuery query,
Integer start,
Integer rows,
Class<? extends RegistryObject> objectClass)
Generic query for a given class of registry objects. |
List<RegistryObject> |
getRegistryObjectVersions(String lid,
Class<? extends RegistryObject> objectClass)
Returns all versions of a registry object that share a logical identifier |
boolean |
hasClassificationNode(String scheme,
String code)
Checks to see if a code exists within a classification scheme |
boolean |
hasRegistryObject(String guid,
Class<? extends RegistryObject> objectClass)
Test to see if a registry object exists with a guid and type requested. |
boolean |
hasRegistryObject(String lid,
String versionId,
Class<? extends RegistryObject> objectClass)
Test to see if a registry object exists with a logical identifier, version, and type requested. |
boolean |
hasRegistryObjectVersions(String lid,
Class<? extends RegistryObject> objectClass)
Test to see if there are any versions of the registry object with the logical id and type requested |
void |
saveRegistryObject(RegistryObject registryObject)
Stores a registry object into the back end. |
void |
updateRegistryObject(RegistryObject registryObject)
Updates a registry object that shares the guid of the given object |
Method Detail |
---|
RegistryResponse getExtrinsics(ExtrinsicQuery query, Integer start, Integer rows)
query
- to filter against extrinsicsstart
- index within the results to start at. This index is one basedrows
- number of results to get
RegistryResponse getAssociations(AssociationQuery query, Integer start, Integer rows)
query
- to filter against associations.start
- index within the results to start at. This index is one basedrows
- number of results to get. If equal to -1 return all.
List<AuditableEvent> getAuditableEvents(String affectedObject)
affectedObject
- guid of a registry object
List<ClassificationNode> getClassificationNodes(String scheme)
scheme
- guid of the scheme
boolean hasClassificationNode(String scheme, String code)
scheme
- guid of the schemecode
- to check for in scheme
RegistryObject getRegistryObject(String guid, Class<? extends RegistryObject> objectClass)
guid
- of requested registry objectobjectClass
- type of object. For instance, a ExtrinsicObject
,
ClassificationNode
, Service
, etc. Anything that
extends from a RegistryObject
RegistryObject getRegistryObject(String lid, String versionId, Class<? extends RegistryObject> objectClass)
lid
- logical identifier of registry object.versionId
- version of registry object.objectClass
- type of registry object.
void saveRegistryObject(RegistryObject registryObject)
registryObject
- to storelong getNumRegistryObjects(Class<? extends RegistryObject> objectClass)
objectClass
- type of object to look up
void deleteRegistryObject(String guid, Class<? extends RegistryObject> objectClass)
guid
- of object to removeobjectClass
- type of object to removevoid updateRegistryObject(RegistryObject registryObject)
registryObject
- to update tooList<RegistryObject> getRegistryObjectVersions(String lid, Class<? extends RegistryObject> objectClass)
lid
- logical identifier of objects to look upobjectClass
- type of registry object
List<RegistryObject> getRegistryObjects(Integer start, Integer rows, Class<? extends RegistryObject> objectClass)
start
- index within the results to start at. This index is one basedrows
- number of results to getobjectClass
- type of object to get
RegistryResponse getRegistryObjects(ObjectQuery query, Integer start, Integer rows, Class<? extends RegistryObject> objectClass)
query
- based on a set of filtersstart
- index within the results to start at. This index is one basedrows
- number of results to getobjectClass
- the type of registry object to look for
RegistryObject
with the given classboolean hasRegistryObject(String lid, String versionId, Class<? extends RegistryObject> objectClass)
lid
- logical id of objectversionId
- user provided versionobjectClass
- type of registry object
boolean hasRegistryObject(String guid, Class<? extends RegistryObject> objectClass)
guid
- globally unique identifier of objectobjectClass
- type of registry object
boolean hasRegistryObjectVersions(String lid, Class<? extends RegistryObject> objectClass)
lid
- logical id of objectobjectClass
- type of registry object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |