java.lang.Object
fr.paris.lutece.plugins.identitystore.business.attribute.AttributeKeyDAO
All Implemented Interfaces:
IAttributeKeyDAO

public final class AttributeKeyDAO extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkAttributeId(int nAttributeId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    check if id attribute is used in other tables
    void
    delete(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    insert(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    void
    insertAttributeValues(int nKey, AttributeValue attributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
     
    load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data from the table
    loadAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
     
    void
    removeAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
     
    selectAttributeKeysList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of all the attributeKey objects and returns them as a list
    selectAttributeKeysNamesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the name of all the attributeKey objects and returns them as a list
    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
    selectByKey(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find the attribute by its key
    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
    selectQualityBaseFactor(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)
    void
    store(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record in the table

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AttributeKeyDAO

      public AttributeKeyDAO()
  • Method Details

    • insert

      public void insert(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Specified by:
      insert in interface IAttributeKeyDAO
      Parameters:
      attributeKey - instance of the AttributeKey object to insert
      plugin - the Plugin
    • load

      public AttributeKey load(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      Specified by:
      load in interface IAttributeKeyDAO
      Parameters:
      nKey - The identifier of the attributeKey
      plugin - 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:
      delete in interface IAttributeKeyDAO
      Parameters:
      nKey - The identifier of the AttributeKey to delete
      plugin - the Plugin
    • store

      public void store(AttributeKey attributeKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record in the table
      Specified by:
      store in interface IAttributeKeyDAO
      Parameters:
      attributeKey - the reference of the AttributeKey
      plugin - the Plugin
    • selectAttributeKeysList

      public 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:
      selectAttributeKeysList in interface IAttributeKeyDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the attributeKey objects
    • selectAttributeKeysNamesList

      public List<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:
      selectAttributeKeysNamesList in interface IAttributeKeyDAO
      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:
      selectAttributeKeysReferenceList in interface IAttributeKeyDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The referenceList which contains the data of all the attributeKey objects
    • selectByKey

      public AttributeKey selectByKey(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the attribute by its key
      Specified by:
      selectByKey in interface IAttributeKeyDAO
      Parameters:
      strKey - The key The key
      plugin - 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:
      checkAttributeId in interface IAttributeKeyDAO
      Parameters:
      nAttributeId - The Attribute ID
      plugin - plugin
      Returns:
      true if id is used in other tables
    • selectQualityBaseFactor

      public Integer selectQualityBaseFactor(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Description copied from interface: IAttributeKeyDAO
      Find the quality base factor which is computed following the rule: attributes => SUM(attribute.weight * attribute.maxCertifLevel)
      Specified by:
      selectQualityBaseFactor in interface IAttributeKeyDAO
      Parameters:
      plugin - plugin
      Returns:
      the base
    • selectMandatoryForCreationAttributeKeyList

      public 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:
      selectMandatoryForCreationAttributeKeyList in interface IAttributeKeyDAO
      Parameters:
      plugin - the Plugin
      Returns:
      The list which contains the data of all the mandatory attributeKey objects
    • loadAttributeValues

      public List<AttributeValue> loadAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      loadAttributeValues in interface IAttributeKeyDAO
    • insertAttributeValues

      public void insertAttributeValues(int nKey, AttributeValue attributeValue, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      insertAttributeValues in interface IAttributeKeyDAO
    • removeAttributeValues

      public void removeAttributeValues(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Specified by:
      removeAttributeValues in interface IAttributeKeyDAO