Class IdentityAttributeHome
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.identity.IdentityAttributeHome
This class provides instances management methods (create, find, ...) for IdentityAttribute objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddAttributeChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange) add an attribute change event in history tablestatic IdentityAttributecreate(IdentityAttribute identityAttribute) Create an instance of the identityAttribute classstatic List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange>getAttributeChangeHistory(int nIdentityId) get attribute change event in history table from the newest to the latest changestatic List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange>getAttributeChangeHistory(String customerId) get attribute change event in history table from the newest to the latest changestatic Map<String,IdentityAttribute> getAttributes(int nIdentityId) Load the data of all attributes for a given identity ID which are allowed for the client application providedstatic List<IdentityAttribute>getAttributesByIdentityListFullAttributes(List<Identity> listIdentity) Load the data of a selection of attributes that are allowed for the client application provided for a list of identitystatic voidremove(int nIdentityId, int nAttributeId) Remove the identityAttribute whose identifier is specified in parameterstatic voidremoveAllAttributes(int nIdentityId) Remove all the identityAttribute of an identitystatic IdentityAttributeupdate(IdentityAttribute identityAttribute) Update of the identityAttribute which is specified in parameter
-
Method Details
-
create
Create an instance of the identityAttribute class- Parameters:
identityAttribute- The instance of the IdentityAttribute which contains the informations to store- Returns:
- The instance of identityAttribute which has been created with its primary key.
-
update
Update of the identityAttribute which is specified in parameter- Parameters:
identityAttribute- The instance of the IdentityAttribute which contains the data to store- Returns:
- The instance of the identityAttribute which has been updated
-
remove
public static void remove(int nIdentityId, int nAttributeId) Remove the identityAttribute whose identifier is specified in parameter- Parameters:
nIdentityId- The identity IDnAttributeId- The Attribute ID
-
removeAllAttributes
public static void removeAllAttributes(int nIdentityId) Remove all the identityAttribute of an identity- Parameters:
nIdentityId- The identity ID
-
getAttributes
Load the data of all attributes for a given identity ID which are allowed for the client application provided- Parameters:
nIdentityId- The identity ID- Returns:
- the map which contains the data of all the identityAttribute objects
-
getAttributesByIdentityListFullAttributes
public static List<IdentityAttribute> getAttributesByIdentityListFullAttributes(List<Identity> listIdentity) Load the data of a selection of attributes that are allowed for the client application provided for a list of identity- Parameters:
listIdentity- The list of identity- Returns:
- the list which contains the data of the identityAttribute objects
-
addAttributeChangeHistory
public static void addAttributeChangeHistory(fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange attributeChange) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException add an attribute change event in history table- Parameters:
attributeChange- attribute change event- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getAttributeChangeHistory
public static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(int nIdentityId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException get attribute change event in history table from the newest to the latest change- Parameters:
nIdentityId- identityId- Returns:
- list of attribute changes
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-
getAttributeChangeHistory
public static List<fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.history.AttributeChange> getAttributeChangeHistory(String customerId) throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException get attribute change event in history table from the newest to the latest change- Parameters:
customerId- customerId- Returns:
- list of attribute changes
- Throws:
fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
-