Interface MetadataSpecService
- All Known Implementing Classes:
SuperUserMetadataSpecService
public interface MetadataSpecService
Manages instances of
MetadataSpec
.
Created by keithhudnall on 9/22/21.-
Method Summary
Modifier and TypeMethodDescriptioncreateMetadataSpec
(CreateMetadataSpecRequest metadataSpecRequest) Creates a new token using a pre-created template.void
deleteMetadataSpec
(String metadataSpecId) Deletes theMetadataSpec
with the supplied metadata Spec ID.getEditorSchema
(String metadataSpecName) getJsonSchema
(String metadataSpecName) Gets the JSON Schema for the metadata spec name.getMetadataSpec
(String metadataSpecIdOrName) Fetches a specificMetadataSpec
instance based on ID or name.getMetadataSpecs
(int offset, int count) Lists allMetadataSpec
instances, specifying a search query.updateMetadataSpec
(String metadataSpecId, UpdateMetadataSpecRequest metadataSpecRequest) Updates the suppliedMetadataSpec
.
-
Method Details
-
getMetadataSpecs
Lists allMetadataSpec
instances, specifying a search query.- Parameters:
offset
-count
-- Returns:
- a
Pagination
ofMetadataSpec
instances
-
getMetadataSpec
Fetches a specificMetadataSpec
instance based on ID or name. If not found, an exception is raised.- Parameters:
metadataSpecIdOrName
- the profile ID- Returns:
- the
MetadataSpec
, never null
-
updateMetadataSpec
MetadataSpec updateMetadataSpec(String metadataSpecId, UpdateMetadataSpecRequest metadataSpecRequest) Updates the suppliedMetadataSpec
.- Parameters:
metadataSpecId
- the id of the metadata spec to updatemetadataSpecRequest
- the token information to update- Returns:
- the
MetadataSpec
as it was changed by the service.
-
createMetadataSpec
Creates a new token using a pre-created template.- Parameters:
metadataSpecRequest
- theCreateMetadataSpecRequest
with the information to create- Returns:
- the
MetadataSpec
as it was created by the service.
-
deleteMetadataSpec
Deletes theMetadataSpec
with the supplied metadata Spec ID.- Parameters:
metadataSpecId
- the metadata Spec ID.
-
getJsonSchema
Gets the JSON Schema for the metadata spec name.- Parameters:
metadataSpecName
- the name of the metadata spec- Returns:
- the metadata spec schema
-
getEditorSchema
-