Class TrsAdminService
- java.lang.Object
-
- com.sodius.oslc.server.trs.services.TrsAdminService
-
public class TrsAdminService extends Object
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 Constructor Description TrsAdminService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Response
abortProcess(String feed, String process)
Response
concludeProcess(String feed, String process)
Response
deleteFunctionalUser()
Response
forceUpdateFeedProject(String feed, Set<String> projectAreas)
Response
getFeedProjectAreas(String feed)
Returns the list of project areas that are currentlyexposed
in the TRS Process feed, with for each project the number of resources on the given feed.Response
getFeeds()
Response
getFeedStatus(String id)
Response
getFunctionalUser()
Response
getProcess(String feed, String process)
Response
getProcessStatus(String feed, String process)
Response
getTrsProjectAreas(boolean forbidden)
Returns the list of project areas that are OSLC enabled and that match the requested access for the TRS user.Response
rebuildFeed(String feed)
Response
setFunctionalUser(String identifier)
Response
validateFeed(String feed)
Response
validateProjectAreas(String feed, Set<String> projectAreas)
-
-
-
Method Detail
-
getFeeds
public Response getFeeds()
-
getFeedProjectAreas
public Response getFeedProjectAreas(String feed)
Returns the list of project areas that are currentlyexposed
in 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
ProjectArea
resources as entity
-
forceUpdateFeedProject
public Response forceUpdateFeedProject(String feed, Set<String> projectAreas)
-
getFunctionalUser
public Response getFunctionalUser()
-
deleteFunctionalUser
public Response deleteFunctionalUser()
-
getTrsProjectAreas
public Response getTrsProjectAreas(boolean forbidden)
Returns the list of project areas that are OSLC enabled and that match the requested access for the TRS user. Ifforbidden
query 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 currentlyexposed
in the TRS Process feed- Parameters:
forbidden
- a boolean to determine the project access type- Returns:
- a response with a collection of
ProjectArea
resources as entity
-
-