Class SuperUserMetadataSpecService
java.lang.Object
dev.getelements.elements.service.schema.SuperUserMetadataSpecService
- All Implemented Interfaces:
MetadataSpecService
-
Constructor Summary
Constructors -
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.voidsetMapper(MapperRegistry mapperRegistry) voidsetMetadataSpecDao(MetadataSpecDao metadataSpecDao) updateMetadataSpec(String metadataSpecId, UpdateMetadataSpecRequest metadataSpecRequest) Updates the suppliedMetadataSpec.
-
Constructor Details
-
SuperUserMetadataSpecService
public SuperUserMetadataSpecService()
-
-
Method Details
-
getMetadataSpecs
Description copied from interface:MetadataSpecServiceLists allMetadataSpecinstances, specifying a search query.- Specified by:
getMetadataSpecsin interfaceMetadataSpecService- Parameters:
offset-count-- Returns:
- a
PaginationofMetadataSpecinstances
-
getMetadataSpec
Description copied from interface:MetadataSpecServiceFetches a specificMetadataSpecinstance based on ID or name. If not found, an exception is raised.- Specified by:
getMetadataSpecin interfaceMetadataSpecService- Parameters:
metadataSpecIdOrName- the profile ID- Returns:
- the
MetadataSpec, never null
-
getJsonSchema
Description copied from interface:MetadataSpecServiceGets the JSON Schema for the metadata spec name.- Specified by:
getJsonSchemain interfaceMetadataSpecService- Parameters:
metadataSpecName- the name of the metadata spec- Returns:
- the metadata spec schema
-
getEditorSchema
- Specified by:
getEditorSchemain interfaceMetadataSpecService
-
updateMetadataSpec
public MetadataSpec updateMetadataSpec(String metadataSpecId, UpdateMetadataSpecRequest metadataSpecRequest) Description copied from interface:MetadataSpecServiceUpdates the suppliedMetadataSpec.- Specified by:
updateMetadataSpecin interfaceMetadataSpecService- 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
Description copied from interface:MetadataSpecServiceCreates a new token using a pre-created template.- Specified by:
createMetadataSpecin interfaceMetadataSpecService- Parameters:
metadataSpecRequest- theCreateMetadataSpecRequestwith the information to create- Returns:
- the
MetadataSpecas it was created by the service.
-
deleteMetadataSpec
Description copied from interface:MetadataSpecServiceDeletes theMetadataSpecwith the supplied metadata Spec ID.- Specified by:
deleteMetadataSpecin interfaceMetadataSpecService- Parameters:
metadataSpecId- the metadata Spec ID.
-
getMapper
-
setMapper
-
getMetadataSpecDao
-
setMetadataSpecDao
-