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 AbstractRestWebServiceService de gestion des GED.
-
-
Field Summary
-
Fields inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
MAINSESSIONCONTROLLER_ATTRIBUT_NAME
-
-
Constructor Summary
Constructors Constructor Description ServiceDocuments()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TicketDTO>deleteTickets(String appId, List<TicketDTO> tickets)AttachmentDTOgetAttachment(String attachmentId, String appId)StringgetComponentId()intgetDefaultSortValue(String instanceId)PublicationDTOgetNextPublication(String instanceId, String id, String direction)PublicationDTOgetPublication(String id, String contributionId, String type)List<PublicationDTO>getPublications(String instanceId, String topicId)Retourne les publications d'un topic (au niveau 1).protected StringgetResourceBasePath()List<TicketDTO>getTickets(String appId, List<TicketDTO> tickets)List<TopicDTO>getTopics(String instanceId, String rootTopicId)Retourne tous les topics de premier niveau d'un topic.List<BaseDTO>getTopicsAndPublications(String instanceId, String rootTopicId)StringgetUserTopicProfile(String nodeId, String componentId)booleanisTreeStructure(String componentId)PublicationDTOpublish(String appId, String pubId)voidvalidateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)-
Methods inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
createStreamingList, getMainSessionController, getSettings, initSilverpeasSession, makeStreamingList, setMainsessioncontroller
-
Methods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, process
-
-
-
-
Method Detail
-
getTopics
@GET @Produces("application/json") @Path("topics/{rootTopicId}") public List<TopicDTO> getTopics(@PathParam("appId") String instanceId, @PathParam("rootTopicId") String rootTopicId) throws ExceptionRetourne tous les topics de premier niveau d'un topic.- Throws:
Exception
-
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 ExceptionRetourne 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:
getResourceBasePathin classorg.silverpeas.core.web.rs.RESTWebService
-
validateUserAuthorization
public void validateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation)
-
getComponentId
public String getComponentId()
-
-