Class AttributeKeyDAO
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.business.attribute.AttributeKeyDAO
-
- All Implemented Interfaces:
IAttributeKeyDAO
public final class AttributeKeyDAO extends java.lang.Object implements IAttributeKeyDAO
This class provides Data Access methods for AttributeKey objects
-
-
Field Summary
-
Fields inherited from interface fr.paris.lutece.plugins.identitystore.business.attribute.IAttributeKeyDAO
BEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description AttributeKeyDAO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckAttributeId(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)check if id attribute is used in other tablesvoiddelete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the tablevoidinsert(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Insert a new record in the table.voidinsertAttributeValues(int nKey, AttributeValue attributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)AttributeKeyload(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data from the tablejava.util.List<AttributeValue>loadAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)voidremoveAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)java.util.List<AttributeKey>selectAttributeKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the attributeKey objects and returns them as a listjava.util.List<java.lang.String>selectAttributeKeysNamesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the name of all the attributeKey objects and returns them as a listfr.paris.lutece.util.ReferenceListselectAttributeKeysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the attributeKey objects and returns them as a referenceListAttributeKeyselectByKey(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Find the attribute by its keyjava.util.List<AttributeKey>selectMandatoryForCreationAttributeKeyList(fr.paris.lutece.portal.service.plugin.Plugin plugin)Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a listjava.lang.IntegerselectQualityBaseFactor(fr.paris.lutece.portal.service.plugin.Plugin plugin)Find the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)voidstore(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Update the record in the table
-
-
-
Method Detail
-
insert
public void insert(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Insert a new record in the table.- Specified by:
insertin interfaceIAttributeKeyDAO- Parameters:
attributeKey- instance of the AttributeKey object to insertplugin- the Plugin
-
load
public AttributeKey load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data from the table- Specified by:
loadin interfaceIAttributeKeyDAO- Parameters:
nKey- The identifier of the attributeKeyplugin- the Plugin- Returns:
- The instance of the attributeKey
-
delete
public void delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)Delete a record from the table- Specified by:
deletein interfaceIAttributeKeyDAO- Parameters:
nKey- The identifier of the AttributeKey to deleteplugin- the Plugin
-
store
public void store(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update the record in the table- Specified by:
storein interfaceIAttributeKeyDAO- Parameters:
attributeKey- the reference of the AttributeKeyplugin- the Plugin
-
selectAttributeKeysList
public java.util.List<AttributeKey> selectAttributeKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the attributeKey objects and returns them as a list- Specified by:
selectAttributeKeysListin interfaceIAttributeKeyDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the attributeKey objects
-
selectAttributeKeysNamesList
public java.util.List<java.lang.String> selectAttributeKeysNamesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the name of all the attributeKey objects and returns them as a list- Specified by:
selectAttributeKeysNamesListin interfaceIAttributeKeyDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the attributeKey objects
-
selectAttributeKeysReferenceList
public fr.paris.lutece.util.ReferenceList selectAttributeKeysReferenceList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the attributeKey objects and returns them as a referenceList- Specified by:
selectAttributeKeysReferenceListin interfaceIAttributeKeyDAO- Parameters:
plugin- the Plugin- Returns:
- The referenceList which contains the data of all the attributeKey objects
-
selectByKey
public AttributeKey selectByKey(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find the attribute by its key- Specified by:
selectByKeyin interfaceIAttributeKeyDAO- Parameters:
strKey- The key The keyplugin- The plugin- Returns:
- the attributeKey matching key, null if no attributes matches
-
checkAttributeId
public boolean checkAttributeId(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)check if id attribute is used in other tables- Specified by:
checkAttributeIdin interfaceIAttributeKeyDAO- Parameters:
nAttributeId- The Attribute IDplugin- plugin- Returns:
- true if id is used in other tables
-
selectQualityBaseFactor
public java.lang.Integer selectQualityBaseFactor(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Description copied from interface:IAttributeKeyDAOFind the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)- Specified by:
selectQualityBaseFactorin interfaceIAttributeKeyDAO- Parameters:
plugin- plugin- Returns:
- the base
-
selectMandatoryForCreationAttributeKeyList
public java.util.List<AttributeKey> selectMandatoryForCreationAttributeKeyList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of all the attributeKey objects that are mandatory for creating an identity and returns them as a list- Specified by:
selectMandatoryForCreationAttributeKeyListin interfaceIAttributeKeyDAO- Parameters:
plugin- the Plugin- Returns:
- The list which contains the data of all the mandatory attributeKey objects
-
loadAttributeValues
public java.util.List<AttributeValue> loadAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
- Specified by:
loadAttributeValuesin interfaceIAttributeKeyDAO
-
insertAttributeValues
public void insertAttributeValues(int nKey, AttributeValue attributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)- Specified by:
insertAttributeValuesin interfaceIAttributeKeyDAO
-
removeAttributeValues
public void removeAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)- Specified by:
removeAttributeValuesin interfaceIAttributeKeyDAO
-
-