Class AttributeKeyHome
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.business.attribute.AttributeKeyHome
-
public final class AttributeKeyHome extends java.lang.ObjectThis class provides instances management methods (create, find, ...) for AttributeKey objects
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 AttributeKeyfindByKey(java.lang.String strKey, boolean loadValues)Find the attribute by its keystatic AttributeKeyfindByPrimaryKey(int nKey, boolean loadValues)Returns an instance of a attributeKey whose identifier is specified in parameterstatic java.util.List<AttributeKey>getAttributeKeysList(boolean loadValues)Load the data of all the attributeKey objects and returns them as a liststatic java.util.List<java.lang.String>getAttributeKeysNamesList()static java.util.List<AttributeKey>getMandatoryForCreationAttributeKeyList()Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a liststatic java.lang.IntegergetQualityBase()Find 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 Detail
-
create
public static AttributeKey create(AttributeKey attributeKey)
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
public static AttributeKey update(AttributeKey attributeKey)
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
public static AttributeKey findByPrimaryKey(int nKey, boolean loadValues)
Returns an instance of a attributeKey whose identifier is specified in parameter- Parameters:
nKey- The attributeKey primary key- Returns:
- an instance of AttributeKey
-
findByKey
public static AttributeKey findByKey(java.lang.String strKey, boolean loadValues)
Find the attribute by its key- Parameters:
strKey- The key The key- Returns:
- the AttributeKey
-
getAttributeKeysList
public static java.util.List<AttributeKey> getAttributeKeysList(boolean loadValues)
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
public static java.util.List<java.lang.String> 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
public static java.lang.Integer getQualityBase()
Find the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)- Returns:
- the base
-
getMandatoryForCreationAttributeKeyList
public static java.util.List<AttributeKey> 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
-
-