Class ClientApplicationHome
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.application.ClientApplicationHome
This class provides instances management methods (create, find, ...) for IdentityAttribute objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClientApplicationcreate(ClientApplication clientApplication) Create an instance of the identityAttribute classstatic List<ClientApplication>findByApplicationCode(String strApplicationCode) static ClientApplicationfindByCode(String strClientCode) Returns an instance of a clientApplication whose code is specified in parameterstatic ClientApplicationfindByPrimaryKey(int nIdclientApplication) Returns an instance of a clientApplication whose identifier is specified in parameterstatic ClientApplicationgetParentApplication(ServiceContract serviceContract) Returns list of clientApplicationstatic voidremove(ClientApplication clientApplication) Remove the clientApplication whose identifier is specified in parameterstatic voidremoveContracts(ClientApplication clientApplication) Remove the clientApplication whose identifier is specified in parameterstatic List<ServiceContract>selectActiveServiceContract(String clientCode) select active service contract for a client codestatic List<ServiceContract>selectActiveServiceContractAtSpecificDate(String clientCode, Date specificDate) select active service contract for a client codestatic List<ClientApplication>Returns list of clientApplicationstatic List<ServiceContract>selectServiceContracts(int clientApplicationId) find service contracts of a client appstatic ClientApplicationupdate(ClientApplication clientApplication) Update of the clientApplication which is specified in parameter
-
Method Details
-
create
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
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
Remove the clientApplication whose identifier is specified in parameter- Parameters:
clientApplication- The client application
-
removeContracts
Remove the clientApplication whose identifier is specified in parameter- Parameters:
clientApplication- The client application
-
selectServiceContracts
find service contracts of a client app- Parameters:
clientApplicationId-- Returns:
- the service contract list
-
selectActiveServiceContract
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
Returns an instance of a clientApplication whose identifier is specified in parameter- Parameters:
nIdclientApplication- The clientApplication ID- Returns:
- an instance of clientApplication
-
findByCode
Returns an instance of a clientApplication whose code is specified in parameter- Parameters:
strClientCode- code of the clientApplication- Returns:
- an instance of clientApplication
-
selectApplicationList
Returns list of clientApplication- Returns:
- list of clientApplication
-
getParentApplication
Returns list of clientApplication- Returns:
- list of clientApplication
-
findByApplicationCode
-