Interface MetadataService
- All Known Implementing Classes:
AnonMetadataService,SuperUserMetadataService,UserMetadataService
public interface MetadataService
-
Method Summary
Modifier and TypeMethodDescriptioncreateMetadata(CreateMetadataRequest createMetadataRequest) Creates a new metadata.getMetadataObject(String metadataId) Gets a metadata with unique metadata id.getMetadataObjects(int offset, int count) Gets a list of metadata objects.getMetadataObjects(int offset, int count, String search) Gets a list of metadata objects.voidsoftDeleteMetadata(String metadataId) Soft deletes a metadata from the system by wiping its fields clean but retaining the db id to prevent broken refs.updateMetadata(String metadataId, UpdateMetadataRequest updateMetadataRequest) Updates a metadata, preserving the metadata's password.
-
Method Details
-
getMetadataObject
Gets a metadata with unique metadata id.- Parameters:
metadataId- the Metadata id- Returns:
- the metadata id
-
getMetadataObjects
Gets a list of metadata objects.- Parameters:
offset- the offsetcount- the count- Returns:
- the PaginatedEntry of metadata objects
-
getMetadataObjects
Gets a list of metadata objects.- Parameters:
offset- the offsetcount- the countsearch- the search query- Returns:
- the PaginatedEntry of metadata objects
-
createMetadata
Creates a new metadata. The service may override or reject the request based on the current metadata access level.- Parameters:
createMetadataRequest- the metadata to create- Returns:
- the Metadata, as it was created by the database
-
updateMetadata
Updates a metadata, preserving the metadata's password.- Parameters:
metadataId- the metadata ID to updateupdateMetadataRequest- the metadata to update- Returns:
- the Metadata, as it was updated
-
softDeleteMetadata
Soft deletes a metadata from the system by wiping its fields clean but retaining the db id to prevent broken refs.- Parameters:
metadataId- the metadataId
-