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 Details

    • 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
    • getAttributeKeysNamesList

      public static List<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 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