Class AttributeKeyHome
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.business.attribute.AttributeKeyHome
-
public final class AttributeKeyHome extends Object
This 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(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 List<AttributeKey>getAttributeKeysList(boolean loadValues)Load the data of all the attributeKey objects and returns them as a liststatic List<AttributeKey>getMandatoryForCreationAttributeKeyList()Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a liststatic 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(String strKey, boolean loadValues)
Find the attribute by its key- Parameters:
strKey- The key The key- Returns:
- the AttributeKey
-
getAttributeKeysList
public static 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
-
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 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 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
-
-