Class ClientApplicationHome
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.business.application.ClientApplicationHome
-
public final class ClientApplicationHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for IdentityAttribute objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientApplicationcreate(ClientApplication clientApplication)Create an instance of the identityAttribute classstatic java.util.List<ClientApplication>findByApplicationCode(java.lang.String strApplicationCode)static ClientApplicationfindByCode(java.lang.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 java.util.List<ServiceContract>selectActiveServiceContract(java.lang.String clientCode)select active service contract for a client codestatic java.util.List<ClientApplication>selectApplicationList()Returns list of clientApplicationstatic java.util.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 Detail
-
create
public static ClientApplication create(ClientApplication clientApplication)
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
public static ClientApplication update(ClientApplication clientApplication)
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
public static void remove(ClientApplication clientApplication)
Remove the clientApplication whose identifier is specified in parameter- Parameters:
clientApplication- The client application
-
removeContracts
public static void removeContracts(ClientApplication clientApplication)
Remove the clientApplication whose identifier is specified in parameter- Parameters:
clientApplication- The client application
-
selectServiceContracts
public static java.util.List<ServiceContract> selectServiceContracts(int clientApplicationId)
find service contracts of a client app- Parameters:
clientApplicationId-- Returns:
- the service contract list
-
selectActiveServiceContract
public static java.util.List<ServiceContract> selectActiveServiceContract(java.lang.String clientCode)
select active service contract for a client code- Parameters:
clientCode-- Returns:
- the service contract list
-
findByPrimaryKey
public static ClientApplication findByPrimaryKey(int nIdclientApplication)
Returns an instance of a clientApplication whose identifier is specified in parameter- Parameters:
nIdclientApplication- The clientApplication ID- Returns:
- an instance of clientApplication
-
findByCode
public static ClientApplication findByCode(java.lang.String strClientCode)
Returns an instance of a clientApplication whose code is specified in parameter- Parameters:
strClientCode- code of the clientApplication- Returns:
- an instance of clientApplication
-
selectApplicationList
public static java.util.List<ClientApplication> selectApplicationList()
Returns list of clientApplication- Returns:
- list of clientApplication
-
getParentApplication
public static ClientApplication getParentApplication(ServiceContract serviceContract)
Returns list of clientApplication- Returns:
- list of clientApplication
-
findByApplicationCode
public static java.util.List<ClientApplication> findByApplicationCode(java.lang.String strApplicationCode)
-
-