Class ResourceMetadataService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.docshare.documents.rs1.metadata.ResourceMetadataService
@RestController
@RequestMapping("documents/r1/metadata")
@Resource(logging=true)
public class ResourceMetadataService
extends PrivateService
Service used to manage the resource metadata.
- Since:
- 14.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOResourceMetadata> get(Long metadataId, Collection<String> fields) Retrieves the required resource metadata by calling theSharedResourceMetadataLoadEvent.org.springframework.http.ResponseEntity<PageResponse<DTOResourceMetadata>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOResourceMetadataFilter filter) Returns the collection of all the stored resource metadata by calling theSharedResourceMetadataSearchEvent.org.springframework.http.ResponseEntity<Void> patch(Long sharedResourceMetadataId, @Valid DTOResourceMetadataUpdate dto) Updates the required resource metadata by calling theSharedResourceMetadataUpdateEvent.org.springframework.http.ResponseEntity<DTOIdentifier<Long>> Creates a new resource metadata by calling theSharedResourceMetadataInsertEvent.
-
Constructor Details
-
ResourceMetadataService
public ResourceMetadataService()
-
-
Method Details
-
get
@GetMapping(value="{metadataId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOResourceMetadata> get(@PathVariable("metadataId") Long metadataId, @RequestParam(required=false,name="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieves the required resource metadata by calling theSharedResourceMetadataLoadEvent.- Parameters:
metadataId- the resource metadata idfields- the collection of fields the response will contain- Returns:
- the response containing the loaded resource metadata
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception