public final class ServiceContractHome extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
addAttributeCertifications(List<AttributeCertification> attributeCertifications,
ServiceContract serviceContract) |
static void |
addAttributeRequirements(List<AttributeRequirement> attributeRequirements,
ServiceContract serviceContract) |
static void |
addAttributeRights(List<AttributeRight> lstAttributeRights,
ServiceContract serviceContract)
add rights to the application
|
static ServiceContract |
close(ServiceContract serviceContract)
Closes the serviceContract by setting an and date
|
static ServiceContract |
create(ServiceContract serviceContract,
int clientApplicationId)
Create an instance of the serviceContract class
|
static Optional<ServiceContract> |
findByPrimaryKey(int nKey)
Returns an instance of a serviceContract whose identifier is specified in parameter
|
static List<ServiceContract> |
getAllServiceContractsList()
Load the data of all the service contracts and returns them as a list
|
static 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 list
|
static List<Integer> |
getIdServiceContractsList()
Load the id of all the serviceContract objects and returns them as a list
|
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
|
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
|
static void |
remove(int nKey)
Remove the serviceContract whose identifier is specified in parameter
|
static void |
removeAttributeCertifications(ServiceContract serviceContract) |
static void |
removeAttributeRequirements(ServiceContract serviceContract) |
static void |
removeAttributeRights(ServiceContract serviceContract) |
static List<AttributeRight> |
selectApplicationRights(ServiceContract serviceContract)
returns rights of provided application
|
static 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 ServiceContract |
update(ServiceContract serviceContract,
int clientApplicationId)
Update of the serviceContract which is specified in parameter
|
public static ServiceContract create(ServiceContract serviceContract, int clientApplicationId)
serviceContract - The instance of the ServiceContract which contains the information to storepublic static ServiceContract update(ServiceContract serviceContract, int clientApplicationId)
serviceContract - The instance of the ServiceContract which contains the data to storepublic static ServiceContract close(ServiceContract serviceContract)
serviceContract - The instance of the ServiceContract which contains the data to storepublic static void remove(int nKey)
nKey - The serviceContract Idpublic static Optional<ServiceContract> findByPrimaryKey(int nKey)
nKey - The serviceContract primary keypublic static List<Integer> getIdServiceContractsList()
public static List<Integer> getFilteredIdServiceContractsList(Map<String,String> params)
public static List<org.apache.commons.lang3.tuple.ImmutablePair<ServiceContract,String>> getServiceContractsListByIds(List<Integer> listIds)
listIds - liste of idspublic static List<ServiceContract> getServiceContractsListBetweenDates(Date startingDate, Date endingDate)
startingDate - starting date of the contractendingDate - ending date of the contractpublic static List<ServiceContract> getAllServiceContractsList()
public static List<AttributeRight> selectApplicationRights(ServiceContract serviceContract)
serviceContract - service contractpublic static void addAttributeRights(List<AttributeRight> lstAttributeRights, ServiceContract serviceContract)
lstAttributeRights - attribute rights to addpublic static void addAttributeCertifications(List<AttributeCertification> attributeCertifications, ServiceContract serviceContract)
public static void addAttributeRequirements(List<AttributeRequirement> attributeRequirements, ServiceContract serviceContract)
public static List<ServiceContractAttributeDefinitionDto> getDto(ServiceContract serviceContract)
public static List<RefCertificationLevel> selectCertificationLevels()
public static List<RefAttributeCertificationLevel> selectRefAttributeCertificationLevels(AttributeKey attributeKey)
public static List<RefAttributeCertificationProcessus> selectCertificationProcessus()
public static List<AttributeRequirement> selectAttributeRequirements(ServiceContract servicecontract)
public static List<AttributeCertification> selectAttributeCertifications(ServiceContract servicecontract)
public static void removeAttributeRights(ServiceContract serviceContract)
public static void removeAttributeCertifications(ServiceContract serviceContract)
public static void removeAttributeRequirements(ServiceContract serviceContract)
Copyright © 2024 City of Paris. All rights reserved.