Class ServiceContractHome

java.lang.Object
fr.paris.lutece.plugins.identitystore.business.contract.ServiceContractHome

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

    • create

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

      public static ServiceContract update(ServiceContract serviceContract, int clientApplicationId)
      Update of the serviceContract which is specified in parameter
      Parameters:
      serviceContract - The instance of the ServiceContract which contains the data to store
      Returns:
      The instance of the serviceContract which has been updated
    • close

      public static ServiceContract close(ServiceContract serviceContract)
      Closes the serviceContract by setting an and date
      Parameters:
      serviceContract - The instance of the ServiceContract which contains the data to store
      Returns:
      The instance of the serviceContract which has been updated
    • remove

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

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

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

      public static List<Integer> getFilteredIdServiceContractsList(Map<String,String> params)
      Load the id of all the serviceContract objects and returns them as a list
      Returns:
      the list which contains the id of all the serviceContract objects
    • getServiceContractsListByIds

      public static List<org.apache.commons.lang3.tuple.ImmutablePair<ServiceContract,String>> getServiceContractsListByIds(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
    • getServiceContractsListBetweenDates

      public static List<ServiceContract> getServiceContractsListBetweenDates(Date startingDate, Date endingDate)
      Load the data of all the service contracts between two date and returns them as a list
      Parameters:
      startingDate - starting date of the contract
      endingDate - ending date of the contract
      Returns:
      The list which contains the data of all the avant objects
    • getServiceContractsListWithMinEndDate

      public static List<ServiceContract> getServiceContractsListWithMinEndDate(Date minEndDate)
      Load the data of all the service contracts with a min end date as specified
      Parameters:
      minEndDate - - the min end date
      Returns:
      List
    • getAllServiceContractsList

      public static List<ServiceContract> getAllServiceContractsList()
      Load the data of all the service contracts and returns them as a list
      Returns:
      The list which contains the data of all the ServiceContract objects
    • selectApplicationRights

      public static List<AttributeRight> selectApplicationRights(ServiceContract serviceContract)
      returns rights of provided application
      Parameters:
      serviceContract - service contract
      Returns:
      list of rights
    • addAttributeRights

      public static void addAttributeRights(List<AttributeRight> lstAttributeRights, ServiceContract serviceContract)
      add rights to the application
      Parameters:
      lstAttributeRights - attribute rights to add
    • addAttributeCertifications

      public static void addAttributeCertifications(List<AttributeCertification> attributeCertifications, ServiceContract serviceContract)
    • addAttributeRequirements

      public static void addAttributeRequirements(List<AttributeRequirement> attributeRequirements, ServiceContract serviceContract)
    • getDto

      public static List<ServiceContractAttributeDefinitionDto> getDto(ServiceContract serviceContract)
    • selectCertificationLevels

      public static List<RefCertificationLevel> selectCertificationLevels()
    • selectRefAttributeCertificationLevels

      public static List<RefAttributeCertificationLevel> selectRefAttributeCertificationLevels(AttributeKey attributeKey)
    • selectCertificationProcessus

      public static List<RefAttributeCertificationProcessus> selectCertificationProcessus()
    • selectAttributeRequirements

      public static List<AttributeRequirement> selectAttributeRequirements(ServiceContract servicecontract)
    • selectAttributeCertifications

      public static List<AttributeCertification> selectAttributeCertifications(ServiceContract servicecontract)
    • removeAttributeRights

      public static void removeAttributeRights(ServiceContract serviceContract)
    • removeAttributeCertifications

      public static void removeAttributeCertifications(ServiceContract serviceContract)
    • removeAttributeRequirements

      public static void removeAttributeRequirements(ServiceContract serviceContract)
    • updateServiceContractLastUpdateAndAuthor

      public static void updateServiceContractLastUpdateAndAuthor(int idServiceContract, String authorName)