Class ClientsManagementREST

  • All Implemented Interfaces:
    org.exoplatform.services.rest.resource.ResourceContainer

    @RolesAllowed("users")
    public class ClientsManagementREST
    extends java.lang.Object
    implements org.exoplatform.services.rest.resource.ResourceContainer

    ClientsManagementREST class.

    Version:
    $Id: $Id
    Author:
    medamine
    • Constructor Summary

      Constructors 
      Constructor Description
      ClientsManagementREST​(ClientService clientService, org.exoplatform.container.PortalContainer container)
      Constructor for ClientsManagementREST.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response createClient​(Client client)
      createClient.
      javax.ws.rs.core.Response deleteClient​(java.lang.Long clientId)
      deleteClient.
      javax.ws.rs.core.Response getClients()
      getClients.
      javax.ws.rs.core.Response updateClient​(Client client)
      updateClient.
      • Methods inherited from class java.lang.Object

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

      • ClientsManagementREST

        public ClientsManagementREST​(ClientService clientService,
                                     org.exoplatform.container.PortalContainer container)

        Constructor for ClientsManagementREST.

        Parameters:
        clientService - a ClientService object.
        container - a PortalContainer object.
    • Method Detail

      • getClients

        @RolesAllowed("users")
        public javax.ws.rs.core.Response getClients()

        getClients.

        Returns:
        a Response object.
      • createClient

        @RolesAllowed("time-tracking-managers")
        public javax.ws.rs.core.Response createClient​(Client client)

        createClient.

        Parameters:
        client - a Client object.
        Returns:
        a Response object.
      • updateClient

        @RolesAllowed("time-tracking-managers")
        public javax.ws.rs.core.Response updateClient​(Client client)

        updateClient.

        Parameters:
        client - a Client object.
        Returns:
        a Response object.
      • deleteClient

        @RolesAllowed("time-tracking-managers")
        public javax.ws.rs.core.Response deleteClient​(java.lang.Long clientId)

        deleteClient.

        Parameters:
        clientId - a Long object.
        Returns:
        a Response object.