Interface ResourceViewProvider

    • Method Detail

      • getAuthorizedResourceView

        static ResourceView getAuthorizedResourceView​(String resourceId,
                                                      String resourceType,
                                                      String language)
        Gets against the current requester the authorized ResourceView.
        Parameters:
        resourceId - the identifier of the resource.
        resourceType - the resource type the given identifier is related to.
        language - the optional language into which the resource is attempted.
        Returns:
        a ResourceView instance.
        Throws:
        javax.ws.rs.WebApplicationException - with NOT FOUND code if resource has not been found.
        javax.ws.rs.WebApplicationException - with FORBIDDEN code if resource not authorized for current requester.
      • relatedToService

        String relatedToService()
        Indicates the name of Silverpeas's service the provider is related to.
        Returns:
        name of service.