Class ComponentResource

    • Constructor Detail

      • ComponentResource

        public ComponentResource()
    • Method Detail

      • get

        @GET
        @Produces("application/json")
        public ComponentEntity get()
        Gets the JSON representation of the specified existing ComponentInstLight. If it doesn't exist, a 404 HTTP code is returned. If the user isn't authentified, a 401 HTTP code is returned. If the user isn't authorized to access the component, a 403 HTTP code is returned. If a problem occurs when processing the request, a 503 HTTP code is returned.
        Returns:
        the response to the HTTP GET request with the JSON representation of the asked ComponentInstLight.
      • getUsersAndGroupsRoles

        @GET
        @Path("usersAndGroupsRoles")
        @Produces("application/json")
        public Map<SilverpeasRole,​UsersAndGroupsRoleEntity> getUsersAndGroupsRoles​(@QueryParam("roles")
                                                                                         String roles)
        Gets users and groups roles indexed by role names. If it doesn't exist, a 404 HTTP code is returned. If the user isn't authentified, a 401 HTTP code is returned. If the user isn't authorized to access the space, a 403 HTTP code is returned. If a problem occurs when processing the request, a 503 HTTP code is returned.
        Parameters:
        roles - aimed roles (each one separated by comma). If empty, all roles are returned.
        Returns:
        the JSON response to the HTTP GET request.
      • getComponentId

        public String getComponentId()
        Description copied from interface: SilverpeasWebResource
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.