java.lang.Object
fr.paris.lutece.plugins.identityimport.business.ClientHome

public final class ClientHome extends Object
This class provides instances management methods (create, find, ...) for Client objects
  • Method Details

    • create

      public static Client create(Client client)
      Create an instance of the client class
      Parameters:
      client - The instance of the Client which contains the information to store
      Returns:
      The instance of client which has been created with its primary key.
    • update

      public static Client update(Client client)
      Update of the client which is specified in parameter
      Parameters:
      client - The instance of the Client which contains the data to store
      Returns:
      The instance of the client which has been updated
    • remove

      public static void remove(int nKey)
      Remove the client whose identifier is specified in parameter
      Parameters:
      nKey - The client Id
    • findByPrimaryKey

      public static Optional<Client> findByPrimaryKey(int nKey)
      Returns an instance of a client whose identifier is specified in parameter
      Parameters:
      nKey - The client primary key
      Returns:
      an instance of Client
    • findByClientCode

      public static Optional<Client> findByClientCode(String clientCode)
      Returns an instance of a client whose client code is specified in parameter
      Parameters:
      clientCode - The client code
      Returns:
      an instance of Client
    • getClientsList

      public static List<Client> getClientsList()
      Load the data of all the client objects and returns them as a list
      Returns:
      the list which contains the data of all the client objects
    • getIdClientsList

      public static List<Integer> getIdClientsList()
      Load the id of all the client objects and returns them as a list
      Returns:
      the list which contains the id of all the client objects
    • getClientsReferenceList

      public static fr.paris.lutece.util.ReferenceList getClientsReferenceList()
      Load the data of all the client objects and returns them as a referenceList
      Returns:
      the referenceList which contains the data of all the client objects
    • getClientsListByIds

      public static List<Client> getClientsListByIds(List<Integer> listIds)
      Load the data of all the avant objects and returns them as a list
      Parameters:
      listIds - liste of ids
      Returns:
      the list which contains the data of all the avant objects
    • getClientsListByAppCode

      public static List<Client> getClientsListByAppCode(String appCode)
      Load the data of all the client objects and returns them as a list
      Parameters:
      appCode - the app code
      Returns:
      The list which contains the data of all the client objects