Class AttributeKeyHome
java.lang.Object
fr.paris.lutece.plugins.identitystore.business.attribute.AttributeKeyHome
This class provides instances management methods (create, find, ...) for AttributeKey objects
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckAttributeId(int nKey) Check reference in other tables of the attributeKey whose identifier is specified in parameterstatic AttributeKeycreate(AttributeKey attributeKey) Create an instance of the attributeKey classstatic AttributeKeyFind the attribute by its keystatic AttributeKeyfindByPrimaryKey(int nKey, boolean loadValues) Returns an instance of a attributeKey whose identifier is specified in parameterstatic List<AttributeKey>getAttributeKeysList(boolean loadValues) Load the data of all the attributeKey objects and returns them as a liststatic List<AttributeKey>Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a liststatic IntegerFind the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)static voidremove(int nKey) Remove the attributeKey whose identifier is specified in parameterstatic AttributeKeyupdate(AttributeKey attributeKey) Update of the attributeKey which is specified in parameter
-
Method Details
-
create
Create an instance of the attributeKey class- Parameters:
attributeKey- The instance of the AttributeKey which contains the informations to store- Returns:
- The instance of attributeKey which has been created with its primary key.
-
update
Update of the attributeKey which is specified in parameter- Parameters:
attributeKey- The instance of the AttributeKey which contains the data to store- Returns:
- The instance of the attributeKey which has been updated
-
remove
public static void remove(int nKey) Remove the attributeKey whose identifier is specified in parameter- Parameters:
nKey- The attributeKey Id
-
findByPrimaryKey
Returns an instance of a attributeKey whose identifier is specified in parameter- Parameters:
nKey- The attributeKey primary key- Returns:
- an instance of AttributeKey
-
findByKey
Find the attribute by its key- Parameters:
strKey- The key The key- Returns:
- the AttributeKey
-
getAttributeKeysList
Load the data of all the attributeKey objects and returns them as a list- Returns:
- the list which contains the data of all the attributeKey objects
-
getAttributeKeysNamesList
-
checkAttributeId
public static boolean checkAttributeId(int nKey) Check reference in other tables of the attributeKey whose identifier is specified in parameter- Parameters:
nKey- The attributeKey Id- Returns:
- true if reference exists
-
getQualityBase
Find the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)- Returns:
- the base
-
getMandatoryForCreationAttributeKeyList
Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a list- Returns:
- the list which contains the data of all the mandatory attributeKey objects
-