public interface MetadataStore
RegistryServiceImpl
in order for it to operate. This is the extension
point one would implement when providing a different back end storage.Modifier and Type | Method and Description |
---|---|
void |
deleteRegistryObject(String guid,
Class<? extends RegistryObject> objectClass)
Removes a registry object from the back end store.
|
AffectedInfo |
deleteRegistryObjects(String guid,
String associationType)
Removes registry object(s) from the back end store.
|
PagedResponse<Association> |
getAssociations(RegistryQuery<AssociationFilter> query,
Integer start,
Integer rows)
Retrieves associations from the back end store that match the query and are
within the requested results list range
|
PagedResponse<AuditableEvent> |
getAuditableEvents(RegistryQuery<EventFilter> query,
Integer start,
Integer rows)
Retrieves auditable events 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
|
PagedResponse<ExtrinsicObject> |
getExtrinsics(RegistryQuery<ExtrinsicFilter> 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.
|
PagedResponse<RegistryPackage> |
getPackages(RegistryQuery<PackageFilter> query,
Integer start,
Integer rows)
Retrieves packages from back end store that match the query and are within
the requested result list range
|
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 versionName,
Class<? extends RegistryObject> objectClass)
Retrieves a registry object that is identified by its logical identifier
and user supplied version.
|
List<? extends RegistryObject> |
getRegistryObjects(Integer start,
Integer rows,
Class<? extends RegistryObject> objectClass)
This method allows paging through registry objects of a given type.
|
PagedResponse<? extends RegistryObject> |
getRegistryObjects(RegistryQuery<ObjectFilter> query,
Integer start,
Integer rows,
Class<? extends RegistryObject> objectClass)
Generic query for a given class of registry objects.
|
List<? extends 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 versionName,
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 |
saveRegistryObjects(List<RegistryObject> registryObject) |
void |
updateRegistryObject(RegistryObject registryObject)
Updates a registry object that shares the guid of the given object
|
AffectedInfo |
updateRegistryObjects(String guid,
Integer status,
String associationType) |
PagedResponse<ExtrinsicObject> getExtrinsics(RegistryQuery<ExtrinsicFilter> 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 getPagedResponse<RegistryPackage> getPackages(RegistryQuery<PackageFilter> query, Integer start, Integer rows)
query
- to filter against packagesstart
- index within the results to start at. This index is one basedrows
- number of results to getPagedResponse<Association> getAssociations(RegistryQuery<AssociationFilter> 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 objectPagedResponse<AuditableEvent> getAuditableEvents(RegistryQuery<EventFilter> query, Integer start, Integer rows)
query
- to filter against events.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<ClassificationNode> getClassificationNodes(String scheme)
scheme
- guid of the schemeboolean hasClassificationNode(String scheme, String code)
scheme
- guid of the schemecode
- to check for in schemeRegistryObject 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 versionName, Class<? extends RegistryObject> objectClass)
lid
- logical identifier of registry object.versionName
- version of registry object.objectClass
- type of registry object.void saveRegistryObject(RegistryObject registryObject)
registryObject
- to storevoid saveRegistryObjects(List<RegistryObject> registryObject)
long getNumRegistryObjects(Class<? extends RegistryObject> objectClass)
objectClass
- type of object to look upvoid deleteRegistryObject(String guid, Class<? extends RegistryObject> objectClass)
guid
- of object to removeobjectClass
- type of object to removeAffectedInfo deleteRegistryObjects(String guid, String associationType)
guid
- of object to removeassociationType
- type of association to removevoid updateRegistryObject(RegistryObject registryObject)
registryObject
- to update tooAffectedInfo updateRegistryObjects(String guid, Integer status, String associationType)
guid
- of package member objects to updatestatus
- value of status (0=submitted, 1=approved, 2=deprecated)associationType
- type of associationList<? extends RegistryObject> getRegistryObjectVersions(String lid, Class<? extends RegistryObject> objectClass)
lid
- logical identifier of objects to look upobjectClass
- type of registry objectList<? extends 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 getPagedResponse<? extends RegistryObject> getRegistryObjects(RegistryQuery<ObjectFilter> 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 forRegistryObject
with the given classboolean hasRegistryObject(String lid, String versionName, Class<? extends RegistryObject> objectClass)
lid
- logical id of objectversionName
- registry generated versionobjectClass
- type of registry objectboolean hasRegistryObject(String guid, Class<? extends RegistryObject> objectClass)
guid
- globally unique identifier of objectobjectClass
- type of registry objectboolean hasRegistryObjectVersions(String lid, Class<? extends RegistryObject> objectClass)
lid
- logical id of objectobjectClass
- type of registry objectCopyright © 2010–2017 Planetary Data System. All rights reserved.