Class ServiceDocuments

java.lang.Object
org.silverpeas.core.web.rs.RESTWebService
org.silverpeas.mobile.server.services.AbstractRestWebService
org.silverpeas.mobile.server.services.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 Details

    • ServiceDocuments

      public ServiceDocuments()
  • Method Details

    • 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)
    • getDefaultSortValue

      public int getDefaultSortValue(String instanceId) throws Exception
      Throws:
      Exception
    • 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)
    • getTickets

      @POST @Produces("application/json") @Consumes("application/json") @Path("tickets") public List<TicketDTO> getTickets(@PathParam("appId") String appId, List<TicketDTO> tickets) throws Exception
      Throws:
      Exception
    • deleteTickets

      @POST @Produces("application/json") @Consumes("application/json") @Path("deletetickets") public List<TicketDTO> deleteTickets(@PathParam("appId") String appId, List<TicketDTO> tickets) throws Exception
      Throws:
      Exception
    • 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
    • publish

      @POST @Path("publish/{pubId}") @Produces("application/json") public PublicationDTO publish(@PathParam("appId") String appId, @PathParam("pubId") String pubId) 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()