Class TrsAdminService
java.lang.Object
com.sodius.oslc.server.trs.services.TrsAdminService
Provides an API for server administrators to manage their application TRS feeds.
Typically, used through the TRS web component.
- Since:
- 3.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortProcess(String feed, String process) concludeProcess(String feed, String process) forceUpdateFeedProject(String feed, Set<String> projectAreas) getFeedProjectAreas(String feed) Returns the list of project areas that are currentlyexposedin the TRS Process feed, with for each project the number of resources on the given feed.getFeeds()getFeedStatus(String id) getProcess(String feed, String process) getProcessStatus(String feed, String process) getTrsProjectAreas(boolean forbidden) Returns the list of project areas that are OSLC enabled and that match the requested access for the TRS user.rebuildFeed(String feed) setFunctionalUser(String identifier) validateFeed(String feed) validateProjectAreas(String feed, Set<String> projectAreas)
-
Constructor Details
-
TrsAdminService
public TrsAdminService()
-
-
Method Details
-
getFeeds
-
getFeedProjectAreas
@GET @Path("/feed/{id}/project-areas") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getFeedProjectAreas(@PathParam("id") String feed) Returns the list of project areas that are currentlyexposedin the TRS Process feed, with for each project the number of resources on the given feed.- Parameters:
feed- the identifier of TRS feed of interest- Returns:
- a response with a collection of
ProjectArearesources as entity
-
validateFeed
-
validateProjectAreas
@POST @Path("/feed/{id}/validate/project-areas") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response validateProjectAreas(@PathParam("id") String feed, @QueryParam("p") Set<String> projectAreas) -
forceUpdateFeedProject
@POST @Path("/feed/{id}/forceUpdate") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response forceUpdateFeedProject(@PathParam("id") String feed, @QueryParam("p") Set<String> projectAreas) -
rebuildFeed
-
getProcess
@GET @Path("/feed/{id}/process/{process}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getProcess(@PathParam("id") String feed, @PathParam("process") String process) -
getProcessStatus
@GET @Path("/feed/{id}/process/{process}/status") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getProcessStatus(@PathParam("id") String feed, @PathParam("process") String process) -
concludeProcess
@POST @Path("/feed/{id}/process/{process}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response concludeProcess(@PathParam("id") String feed, @PathParam("process") String process) -
abortProcess
@DELETE @Path("/feed/{id}/process/{process}") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response abortProcess(@PathParam("id") String feed, @PathParam("process") String process) -
getFeedStatus
-
getFunctionalUser
-
setFunctionalUser
-
deleteFunctionalUser
-
getTrsProjectAreas
@GET @Path("/project-areas") @Produces({"application/rdf+xml","application/xml","text/xml","application/json","application/ld+json","text/turtle"}) public Response getTrsProjectAreas(@QueryParam("forbidden") boolean forbidden) Returns the list of project areas that are OSLC enabled and that match the requested access for the TRS user. Ifforbiddenquery parameter istrue, the method returns the project areas for which the TRS user has no access to. The content of the list does not depend on whether those project areas are currentlyexposedin the TRS Process feed.- Parameters:
forbidden- a boolean to determine the project access type- Returns:
- a response with a collection of
ProjectArearesources as entity
-