Class AttributeRightDAO

  • All Implemented Interfaces:
    IAttributeRightDAO

    public final class AttributeRightDAO
    extends java.lang.Object
    implements IAttributeRightDAO
    This class provides rights Access methods for Attribute objects
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void insert​(AttributeRight attributeRight, int serviceContractId, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      void removeAttributeRights​(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      remove all rights for provided application
      java.util.List<AttributeRight> selectAttributeRights​(ServiceContract serviceContract, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      retrieve all attributes and its rights for provided application
      void store​(AttributeRight attributeRight, int serviceContractId, 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 Detail

      • AttributeRightDAO

        public AttributeRightDAO()
    • Method Detail

      • insert

        public void insert​(AttributeRight attributeRight,
                           int serviceContractId,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IAttributeRightDAO
        Parameters:
        attributeRight - instance of the AttributeRight object to insert
        plugin - the Plugin
      • store

        public void store​(AttributeRight attributeRight,
                          int serviceContractId,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IAttributeRightDAO
        Parameters:
        attributeRight - the reference of the AttributeRight
        plugin - the Plugin
      • selectAttributeRights

        public java.util.List<AttributeRight> selectAttributeRights​(ServiceContract serviceContract,
                                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        retrieve all attributes and its rights for provided application
        Specified by:
        selectAttributeRights in interface IAttributeRightDAO
        Parameters:
        serviceContract - application
        plugin - the Plugin
        Returns:
        list of all attributes with rights for provided application
      • removeAttributeRights

        public void removeAttributeRights​(ServiceContract serviceContract,
                                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        remove all rights for provided application
        Specified by:
        removeAttributeRights in interface IAttributeRightDAO
        Parameters:
        serviceContract - serviceContract
        plugin - the Plugin