Class ServiceContractHome
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.contract.ServiceContractHome
This class provides instances management methods (create, find, ...) for ServiceContract objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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>Load the data of all the service contracts and returns them as a listgetDto(ServiceContract serviceContract) getFilteredIdServiceContractsList(Map<String, String> params) Load the id of all the serviceContract objects and returns them as a listLoad 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 List<ServiceContract>getServiceContractsListWithMinEndDate(Date minEndDate) Load the data of all the service contracts with a min end date as specifiedstatic 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>static List<RefAttributeCertificationLevel>selectRefAttributeCertificationLevels(AttributeKey attributeKey) static ServiceContractupdate(ServiceContract serviceContract, int clientApplicationId) Update of the serviceContract which is specified in parameterstatic voidupdateServiceContractLastUpdateAndAuthor(int idServiceContract, String authorName)
-
Method Details
-
create
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
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
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
Returns an instance of a serviceContract whose identifier is specified in parameter- Parameters:
nKey- The serviceContract primary key- Returns:
- an instance of ServiceContract
-
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
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
-
getServiceContractsListWithMinEndDate
Load the data of all the service contracts with a min end date as specified- Parameters:
minEndDate- - the min end date- Returns:
- List
-
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
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
-
selectCertificationLevels
-
selectRefAttributeCertificationLevels
public static List<RefAttributeCertificationLevel> selectRefAttributeCertificationLevels(AttributeKey attributeKey) -
selectCertificationProcessus
-
selectAttributeRequirements
public static List<AttributeRequirement> selectAttributeRequirements(ServiceContract servicecontract) -
selectAttributeCertifications
public static List<AttributeCertification> selectAttributeCertifications(ServiceContract servicecontract) -
removeAttributeRights
-
removeAttributeCertifications
-
removeAttributeRequirements
-
updateServiceContractLastUpdateAndAuthor
public static void updateServiceContractLastUpdateAndAuthor(int idServiceContract, String authorName)
-