Interface IAttributeKeyDAO

  • All Known Implementing Classes:
    AttributeKeyDAO

    public interface IAttributeKeyDAO
    IAttributeKeyDAO Interface
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BEAN_NAME  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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)  
      AttributeKey load​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data from the table
      java.util.List<AttributeValue> loadAttributeValues​(int nKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)  
      void removeAttributeValues​(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 list
      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
      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
      AttributeKey selectByKey​(java.lang.String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find the attribute by its key
      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
      java.lang.Integer 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
    • Method Detail

      • insert

        void insert​(AttributeKey attributeKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Parameters:
        attributeKey - instance of the AttributeKey object to insert
        plugin - the Plugin
      • store

        void store​(AttributeKey attributeKey,
                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Parameters:
        attributeKey - the reference of the AttributeKey
        plugin - the Plugin
      • delete

        void delete​(int nKey,
                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Parameters:
        nKey - The identifier of the AttributeKey to delete
        plugin - the Plugin
      • load

        AttributeKey load​(int nKey,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the data from the table
        Parameters:
        nKey - The identifier of the attributeKey
        plugin - the Plugin
        Returns:
        The instance of the attributeKey
      • selectAttributeKeysList

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

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The list which contains the data of all the attributeKey objects
      • selectAttributeKeysReferenceList

        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
        Parameters:
        plugin - the Plugin
        Returns:
        The referenceList which contains the data of all the attributeKey objects
      • selectByKey

        AttributeKey selectByKey​(java.lang.String strKey,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Find the attribute by its key
        Parameters:
        strKey - The key The key
        plugin - The plugin
        Returns:
        the attributeKey matching key, null if no attributes matches
      • checkAttributeId

        boolean checkAttributeId​(int nAttributeId,
                                 fr.paris.lutece.portal.service.plugin.Plugin plugin)
        check if id attribute is used in other tables
        Parameters:
        nAttributeId - The Attribute ID
        plugin - plugin
        Returns:
        true if id is used in other tables
      • selectQualityBaseFactor

        java.lang.Integer 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)
        Parameters:
        plugin - plugin
        Returns:
        the base
      • selectMandatoryForCreationAttributeKeyList

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

        java.util.List<AttributeValue> loadAttributeValues​(int nKey,
                                                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • insertAttributeValues

        void insertAttributeValues​(int nKey,
                                   AttributeValue attributeValue,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)
      • removeAttributeValues

        void removeAttributeValues​(int nKey,
                                   fr.paris.lutece.portal.service.plugin.Plugin plugin)