Class ClientApplicationHome

java.lang.Object
fr.paris.lutece.plugins.identitystore.business.application.ClientApplicationHome

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

    • create

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

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

      public static void remove(ClientApplication clientApplication)
      Remove the clientApplication whose identifier is specified in parameter
      Parameters:
      clientApplication - The client application
    • removeContracts

      public static void removeContracts(ClientApplication clientApplication)
      Remove the clientApplication whose identifier is specified in parameter
      Parameters:
      clientApplication - The client application
    • selectServiceContracts

      public static List<ServiceContract> selectServiceContracts(int clientApplicationId)
      find service contracts of a client app
      Parameters:
      clientApplicationId -
      Returns:
      the service contract list
    • selectActiveServiceContract

      public static List<ServiceContract> selectActiveServiceContract(String clientCode)
      select active service contract for a client code
      Parameters:
      clientCode -
      Returns:
      the service contract list
    • selectActiveServiceContractAtSpecificDate

      public static List<ServiceContract> selectActiveServiceContractAtSpecificDate(String clientCode, Date specificDate)
      select active service contract for a client code
      Parameters:
      clientCode -
      Returns:
      the service contract list
    • findByPrimaryKey

      public static ClientApplication findByPrimaryKey(int nIdclientApplication)
      Returns an instance of a clientApplication whose identifier is specified in parameter
      Parameters:
      nIdclientApplication - The clientApplication ID
      Returns:
      an instance of clientApplication
    • findByCode

      public static ClientApplication findByCode(String strClientCode)
      Returns an instance of a clientApplication whose code is specified in parameter
      Parameters:
      strClientCode - code of the clientApplication
      Returns:
      an instance of clientApplication
    • selectApplicationList

      public static List<ClientApplication> selectApplicationList()
      Returns list of clientApplication
      Returns:
      list of clientApplication
    • getParentApplication

      public static ClientApplication getParentApplication(ServiceContract serviceContract)
      Returns list of clientApplication
      Returns:
      list of clientApplication
    • findByApplicationCode

      public static List<ClientApplication> findByApplicationCode(String strApplicationCode)