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.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.void
setMapper
(MapperRegistry mapperRegistry) void
setMetadataSpecDao
(MetadataSpecDao metadataSpecDao) updateMetadataSpec
(String metadataSpecId, UpdateMetadataSpecRequest metadataSpecRequest) Updates the suppliedMetadataSpec
.
-
Constructor Details
-
SuperUserMetadataSpecService
public SuperUserMetadataSpecService()
-
-
Method Details
-
getMetadataSpecs
Description copied from interface:MetadataSpecService
Lists allMetadataSpec
instances, specifying a search query.- Specified by:
getMetadataSpecs
in interfaceMetadataSpecService
- Parameters:
offset
-count
-- Returns:
- a
Pagination
ofMetadataSpec
instances
-
getMetadataSpec
Description copied from interface:MetadataSpecService
Fetches a specificMetadataSpec
instance based on ID or name. If not found, an exception is raised.- Specified by:
getMetadataSpec
in interfaceMetadataSpecService
- Parameters:
metadataSpecIdOrName
- the profile ID- Returns:
- the
MetadataSpec
, never null
-
getJsonSchema
Description copied from interface:MetadataSpecService
Gets the JSON Schema for the metadata spec name.- Specified by:
getJsonSchema
in interfaceMetadataSpecService
- Parameters:
metadataSpecName
- the name of the metadata spec- Returns:
- the metadata spec schema
-
getEditorSchema
- Specified by:
getEditorSchema
in interfaceMetadataSpecService
-
updateMetadataSpec
public MetadataSpec updateMetadataSpec(String metadataSpecId, UpdateMetadataSpecRequest metadataSpecRequest) Description copied from interface:MetadataSpecService
Updates the suppliedMetadataSpec
.- Specified by:
updateMetadataSpec
in interfaceMetadataSpecService
- 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
Description copied from interface:MetadataSpecService
Creates a new token using a pre-created template.- Specified by:
createMetadataSpec
in interfaceMetadataSpecService
- Parameters:
metadataSpecRequest
- theCreateMetadataSpecRequest
with the information to create- Returns:
- the
MetadataSpec
as it was created by the service.
-
deleteMetadataSpec
Description copied from interface:MetadataSpecService
Deletes theMetadataSpec
with the supplied metadata Spec ID.- Specified by:
deleteMetadataSpec
in interfaceMetadataSpecService
- Parameters:
metadataSpecId
- the metadata Spec ID.
-
getMapper
-
setMapper
-
getMetadataSpecDao
-
setMetadataSpecDao
-