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.voiddeleteMetadataSpec(String metadataSpecId) Deletes theMetadataSpecwith 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 specificMetadataSpecinstance based on ID or name.getMetadataSpecs(int offset, int count) Lists allMetadataSpecinstances, specifying a search query.updateMetadataSpec(String metadataSpecId, UpdateMetadataSpecRequest metadataSpecRequest) Updates the suppliedMetadataSpec.
-
Method Details
-
getMetadataSpecs
Lists allMetadataSpecinstances, specifying a search query.- Parameters:
offset-count-- Returns:
- a
PaginationofMetadataSpecinstances
-
getMetadataSpec
Fetches a specificMetadataSpecinstance 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
MetadataSpecas it was changed by the service.
-
createMetadataSpec
Creates a new token using a pre-created template.- Parameters:
metadataSpecRequest- theCreateMetadataSpecRequestwith the information to create- Returns:
- the
MetadataSpecas it was created by the service.
-
deleteMetadataSpec
Deletes theMetadataSpecwith 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
-