Class ServiceDocuments

  • 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
    @Authorized
    @Path("mobile/documents/{appId}")
    public class ServiceDocuments
    extends AbstractRestWebService
    Service de gestion des GED.
    • Constructor Detail

      • ServiceDocuments

        public ServiceDocuments()
    • Method Detail

      • getTopics

        @GET
        @Produces("application/json")
        @Path("topics/{rootTopicId}")
        public List<TopicDTO> getTopics​(@PathParam("appId")
                                        String instanceId,
                                        @PathParam("rootTopicId")
                                        String rootTopicId)
                                 throws Exception
        Retourne tous les topics de premier niveau d'un topic.
        Throws:
        Exception
      • getUserTopicProfile

        public String getUserTopicProfile​(String nodeId,
                                          String componentId)
      • isTreeStructure

        public boolean isTreeStructure​(String componentId)
      • getPublications

        @GET
        @Path("publications/{topicId}")
        @Produces("application/json")
        public List<PublicationDTO> getPublications​(@PathParam("appId")
                                                    String instanceId,
                                                    @PathParam("topicId")
                                                    String topicId)
                                             throws Exception
        Retourne les publications d'un topic (au niveau 1).
        Throws:
        Exception
      • getPublication

        @GET
        @Produces("application/json")
        @Path("publication/{id}")
        public PublicationDTO getPublication​(@PathParam("id")
                                             String id,
                                             @QueryParam("contributionId")
                                             String contributionId,
                                             @QueryParam("type")
                                             String type)
      • getAttachment

        @GET
        @Produces("application/json")
        @Consumes("application/json")
        @Path("attachment/{attachmentId}")
        public AttachmentDTO getAttachment​(@PathParam("attachmentId")
                                           String attachmentId,
                                           @PathParam("appId")
                                           String appId)
                                    throws Exception
        Throws:
        Exception
      • getTopicsAndPublications

        @GET
        @Path("topicsAndPublications/{rootTopicId}")
        @Produces("application/json")
        public List<BaseDTO> getTopicsAndPublications​(@PathParam("appId")
                                                      String instanceId,
                                                      @PathParam("rootTopicId")
                                                      String rootTopicId)
                                               throws Exception
        Throws:
        Exception
      • getNextPublication

        @GET
        @Produces("application/json")
        @Path("nextpublication/{id}/{direction}")
        public PublicationDTO getNextPublication​(@PathParam("appId")
                                                 String instanceId,
                                                 @PathParam("id")
                                                 String id,
                                                 @PathParam("direction")
                                                 String direction)
                                          throws Exception
        Throws:
        Exception
      • getResourceBasePath

        protected String getResourceBasePath()
        Specified by:
        getResourceBasePath in class org.silverpeas.core.web.rs.RESTWebService
      • validateUserAuthorization

        public void validateUserAuthorization​(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)
      • getComponentId

        public String getComponentId()