Class RequestRestService

java.lang.Object
org.exoplatform.rhmanagement.services.rest.RequestRestService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class RequestRestService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
Created by Medamine on 05/01/2017.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RequestRestService(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, VacationRequestService vacationRequestService, ValidatorService validatorService, org.exoplatform.services.organization.OrganizationService organizationService, UserDataService userDataService, OfficialVacationService officialVacationService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.ws.rs.core.Response
    createEmployees(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.UriInfo uriInfo, List<UserRHDataDTO> emloyees)
     
    javax.ws.rs.core.Response
    exportManagers(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.UriInfo uriInfo)
     
    javax.ws.rs.core.Response
    find(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.UriInfo uriInfo, String nameToSearch, String currentUser)
     
    javax.ws.rs.core.Response
    getEvents(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.UriInfo uriInfo)
     
    javax.ws.rs.core.Response
    updateManagers(javax.servlet.http.HttpServletRequest request, javax.ws.rs.core.UriInfo uriInfo, List<UserRHDataDTO> emloyees)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RequestRestService

      public RequestRestService(org.exoplatform.social.core.manager.IdentityManager identityManager, org.exoplatform.social.core.space.spi.SpaceService spaceService, VacationRequestService vacationRequestService, ValidatorService validatorService, org.exoplatform.services.organization.OrganizationService organizationService, UserDataService userDataService, OfficialVacationService officialVacationService)
  • Method Details

    • find

      @RolesAllowed("users") public javax.ws.rs.core.Response find(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo, String nameToSearch, String currentUser) throws Exception
      Throws:
      Exception
    • getEvents

      @RolesAllowed("users") public javax.ws.rs.core.Response getEvents(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
      Throws:
      Exception
    • createEmployees

      @RolesAllowed("administrators") public javax.ws.rs.core.Response createEmployees(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo, List<UserRHDataDTO> emloyees) throws Exception
      Throws:
      Exception
    • updateManagers

      @RolesAllowed("administrators") public javax.ws.rs.core.Response updateManagers(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo, List<UserRHDataDTO> emloyees) throws Exception
      Throws:
      Exception
    • exportManagers

      @RolesAllowed("users") public javax.ws.rs.core.Response exportManagers(@Context javax.servlet.http.HttpServletRequest request, @Context javax.ws.rs.core.UriInfo uriInfo) throws Exception
      Throws:
      Exception