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 Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddAttributeCertifications(List<AttributeCertification> attributeCertifications, ServiceContract serviceContract)static voidaddAttributeRequirements(List<AttributeRequirement> attributeRequirements, ServiceContract serviceContract)static voidaddAttributeRights(List<AttributeRight> lstAttributeRights, ServiceContract serviceContract)add rights to the applicationstatic ServiceContractclose(ServiceContract serviceContract)Closes the serviceContract by setting an and datestatic ServiceContractcreate(ServiceContract serviceContract, int clientApplicationId)Create an instance of the serviceContract classstatic Optional<ServiceContract>findByPrimaryKey(int nKey)Returns an instance of a serviceContract whose identifier is specified in parameterstatic List<ServiceContract>getAllServiceContractsList()Load the data of all the service contracts and returns them as a liststatic List<ServiceContractAttributeDefinitionDto>getDto(ServiceContract serviceContract)static List<Integer>getFilteredIdServiceContractsList(Map<String,String> params)Load the id of all the serviceContract objects and returns them as a liststatic List<Integer>getIdServiceContractsList()Load the id of all the serviceContract objects and returns them as a liststatic List<ServiceContract>getServiceContractsListBetweenDates(Date startingDate, Date endingDate)Load the data of all the service contracts between two date and returns them as a liststatic 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 liststatic voidremove(int nKey)Remove the serviceContract whose identifier is specified in parameterstatic voidremoveAttributeCertifications(ServiceContract serviceContract)static voidremoveAttributeRequirements(ServiceContract serviceContract)static voidremoveAttributeRights(ServiceContract serviceContract)static List<AttributeRight>selectApplicationRights(ServiceContract serviceContract)returns rights of provided applicationstatic List<AttributeCertification>selectAttributeCertifications(ServiceContract servicecontract)static List<AttributeRequirement>selectAttributeRequirements(ServiceContract servicecontract)static List<RefCertificationLevel>selectCertificationLevels()static List<RefAttributeCertificationProcessus>selectCertificationProcessus()static List<RefAttributeCertificationLevel>selectRefAttributeCertificationLevels(AttributeKey attributeKey)static ServiceContractupdate(ServiceContract serviceContract, int clientApplicationId)Update of the serviceContract which is specified in parameter
-
-
-
Method Detail
-
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 contractendingDate- ending date of the contract- Returns:
- The list which contains the data of all the avant objects
-
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)
-
-