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.
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
MAINSESSIONCONTROLLER_ATTRIBUT_NAME, USER_ATTRIBUT_NAMEFields inherited from class org.silverpeas.core.web.rs.RESTWebService
RESPONSE_HEADER_ARRAYSIZEFields inherited from interface org.silverpeas.core.web.SilverpeasWebResource
BASE_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeleteTickets(String appId, List<TicketDTO> tickets) getAttachment(String attachmentId, String appId) intgetDefaultSortValue(String instanceId) getNextPublication(String instanceId, String id, String direction) getPublication(String id, String contributionId, String type) getPublications(String instanceId, String topicId) Retourne les publications d'un topic (au niveau 1).protected StringgetTickets(String appId, List<TicketDTO> tickets) Retourne tous les topics de premier niveau d'un topic.getTopicsAndPublications(String instanceId, String rootTopicId) getUserTopicProfile(String nodeId, String componentId) booleanisTreeStructure(String componentId) voidvalidateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation) Methods inherited from class org.silverpeas.mobile.server.services.AbstractRestWebService
authenticate, createStreamingList, getMainSessionController, getSettings, initSilverpeasSession, makeStreamingListMethods inherited from class org.silverpeas.core.web.rs.RESTWebService
createWebResourceUri, fromPage, getBundle, getBundleLocation, getHighestUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getLanguage, getOrganisationController, getSilverpeasContext, getUri, getUser, getUserPreferences, getUserRoles, identifiedBy, identifiedBy, initContext, initWebResourceUri, isUserDefined, processMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.silverpeas.core.web.rs.WebAuthenticationValidation
validateUserAuthentication
-
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
-
isTreeStructure
-
getDefaultSortValue
- 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
- Specified by:
getResourceBasePathin classorg.silverpeas.core.web.rs.RESTWebService
-
validateUserAuthorization
public void validateUserAuthorization(org.silverpeas.core.web.rs.UserPrivilegeValidation validation) -
getComponentId
-