Class 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 Detail

      • TrsAdminService

        public TrsAdminService()
    • Method Detail

      • getFeedProjectAreas

        public Response getFeedProjectAreas​(String feed)
        Returns the list of project areas that are currently exposed 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
      • getFunctionalUser

        public Response getFunctionalUser()
      • setFunctionalUser

        public Response setFunctionalUser​(String identifier)
      • 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. If forbidden query parameter is true, 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 currently exposed 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