Class ServiceConnection

  • 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
    @Path("mobile/connection")
    public class ServiceConnection
    extends AbstractRestWebService
    Service de gestion des connexions.
    Author:
    svuillet
    • Constructor Detail

      • ServiceConnection

        public ServiceConnection()
    • Method Detail

      • login

        @POST
        @Produces("application/json")
        @Consumes("application/json")
        @Path("login")
        public DetailUserDTO login​(List<String> ids)
      • checkSecurityCode

        @GET
        @Produces("application/json")
        @Path("securityCode/check/{login}/{domainId}/{code}")
        public Boolean checkSecurityCode​(@PathParam("login")
                                         String login,
                                         @PathParam("domainId")
                                         String domainId,
                                         @PathParam("code")
                                         String code)
      • generateSecurityCode

        @GET
        @Produces("application/json")
        @Path("securityCode/{login}/{domainId}")
        public void generateSecurityCode​(@PathParam("login")
                                         String login,
                                         @PathParam("domainId")
                                         String domainId)
      • userExist

        @GET
        @Produces("application/json")
        @Path("userExist/{login}/{domainId}")
        public Boolean userExist​(@PathParam("login")
                                 String login,
                                 @PathParam("domainId")
                                 String domainId)
      • setTabletMode

        @PUT
        @Produces("application/json")
        @Path("setTabletMode")
        public Boolean setTabletMode()
      • getDomains

        @GET
        @Produces("application/json")
        @Path("domains")
        public List<DomainDTO> getDomains()
      • changePwd

        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        @Path("changePwd/")
        public void changePwd​(String newPwd)
      • userAcceptsTermsOfService

        @PUT
        @Produces("application/json")
        @Path("userAcceptsTermsOfService")
        public void userAcceptsTermsOfService()
      • setUserInSession

        protected void setUserInSession​(org.silverpeas.core.admin.user.model.UserDetail user)
      • getUserInSession

        protected org.silverpeas.core.admin.user.model.UserDetail getUserInSession()
      • getResourceBasePath

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

        public String getComponentId()
      • validateUserAuthorization

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