Class CommunityOfUsersResource

  • All Implemented Interfaces:
    org.silverpeas.core.web.rs.ProtectedWebResource, org.silverpeas.core.web.rs.WebAuthenticationValidation, org.silverpeas.core.web.rs.WebAuthorizationValidation, org.silverpeas.core.web.SilverpeasWebResource

    @WebService
    @Path("community/{componentInstanceId}")
    public class CommunityOfUsersResource
    extends CommunityWebResource
    A REST-based Web resource representing the communities of users. A community is always related to a resource in Silverpeas, and it is managed by a Community application instance. Only authorized users can access these resources.
    • Constructor Detail

      • CommunityOfUsersResource

        public CommunityOfUsersResource()
    • Method Detail

      • getComponentId

        public String getComponentId()
      • getCommunityOfUsers

        @GET
        @Produces("application/json")
        public CommunityOfUsersEntity getCommunityOfUsers()
        Gets the JSON representation of the community of users managed by the component instance of id componentInstanceId. If it doesn't exist, a 404 HTTP code is returned.
        Returns:
        the JSON representation of a community resource.
        See Also:
        RESTWebService.WebProcess.execute()
      • updateCommunityOfUsers

        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        public CommunityOfUsersEntity updateCommunityOfUsers​(CommunityOfUsersEntity entity)
        Updates the community of users with the properties of the specified web entity representing the new state of the community. Because the space for which the community has been defined is permanent and because the memberships of the community is handled by another resource (referred by a URI), only data on the home page and the charter can be modified.
        Parameters:
        entity - the new state of the community of users.
        Returns:
        the JSON representation of the updated state of the community of users.