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 ResponseabortProcess(String feed, String process)ResponseconcludeProcess(String feed, String process)ResponsedeleteFunctionalUser()ResponseforceUpdateFeedProject(String feed, Set<String> projectAreas)ResponsegetFeedProjectAreas(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.ResponsegetFeeds()ResponsegetFeedStatus(String id)ResponsegetFunctionalUser()ResponsegetProcess(String feed, String process)ResponsegetProcessStatus(String feed, String process)ResponsegetTrsProjectAreas(boolean forbidden)Returns the list of project areas that are OSLC enabled and that match the requested access for the TRS user.ResponserebuildFeed(String feed)ResponsesetFunctionalUser(String identifier)ResponsevalidateFeed(String feed)ResponsevalidateProjectAreas(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 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
-
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. 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
-
-