Class ResourceOriginService
java.lang.Object
overit.geocallapp.utilities.rs.common.PrivateService
overit.geocallapp.docshare.documents.rs1.resourceorigin.ResourceOriginService
@RestController
@RequestMapping("documents/r1/origins")
@Resource(logging=true)
public class ResourceOriginService
extends PrivateService
Service used to manage the resource origin.
- Since:
- 14.0
- GCApi:
- rest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<DTOResourceOrigin> get(Long originId, Collection<String> fields) Retrieve the required resource origin by calling theSharedResourceOriginLoadEventeventorg.springframework.http.ResponseEntity<PageResponse<DTOResourceOrigin>> getCollection(@Valid Page page, Collection<String> fields, String order, @Valid @NotNull DTOResourceOriginFilter filter) Retrieves the collection of all the stored resource origins by calling theSharedResourceOriginSearchEventevent
-
Constructor Details
-
ResourceOriginService
public ResourceOriginService()
-
-
Method Details
-
get
@GetMapping(value="{originId:[0-9]+}", produces="application/json") public org.springframework.http.ResponseEntity<DTOResourceOrigin> get(@PathVariable("originId") Long originId, @RequestParam(required=false,value="_fields") Collection<String> fields) throws DAValidateException, DAException Retrieve the required resource origin by calling theSharedResourceOriginLoadEventevent- Parameters:
originId- the resource origin idfields- the collection of fields that will be contained in the response- Returns:
- the
DTOResourceOrigin - Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception