Class RightDAO

  • All Implemented Interfaces:
    IRightDAO

    public final class RightDAO
    extends java.lang.Object
    implements IRightDAO
    This class provides Data Access methods for right objects
    • Constructor Summary

      Constructors 
      Constructor Description
      RightDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String strIdRight)
      Delete a record from the table
      void insert​(Right right)
      Insert a new record in the table.
      Right load​(java.lang.String strId)
      load the data of the right from the table
      java.util.Collection<Right> selectExternalRightsList()
      Loads the data of all the external admin features and returns them in form of a collection
      java.util.Collection<Right> selectExternalRightsList​(int nLevel)
      Loads the data of all the external admin features with level greater or equal than nLevel and returns them in form of a collection
      java.util.Collection<Right> selectRightsList()
      Loads the data of all the rights and returns them in form of a collection
      java.util.Collection<Right> selectRightsList​(int nLevel)
      Loads the data of all the rights with level greater or equal than nLevel and returns them in form of a collection
      java.util.Collection<Right> selectRightsList​(java.lang.String strFeatureGroup)
      Loads the data of all the rights with the specified feature group and returns them in form of a collection
      void store​(Right right)
      Update the record in the table
      • Methods inherited from class java.lang.Object

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

      • RightDAO

        public RightDAO()
    • Method Detail

      • insert

        public void insert​(Right right)
        Insert a new record in the table.
        Specified by:
        insert in interface IRightDAO
        Parameters:
        right - instance of the right to insert
      • load

        public Right load​(java.lang.String strId)
        load the data of the right from the table
        Specified by:
        load in interface IRightDAO
        Parameters:
        strId - The identifier of the admin right
        Returns:
        The instance of the admin right
      • delete

        public void delete​(java.lang.String strIdRight)
        Delete a record from the table
        Specified by:
        delete in interface IRightDAO
        Parameters:
        strIdRight - string identifier of the admin right to delete
      • store

        public void store​(Right right)
        Update the record in the table
        Specified by:
        store in interface IRightDAO
        Parameters:
        right - the reference of the admin right
      • selectRightsList

        public java.util.Collection<Right> selectRightsList()
        Loads the data of all the rights and returns them in form of a collection
        Specified by:
        selectRightsList in interface IRightDAO
        Returns:
        the collection which contains the data of all the rights
      • selectRightsList

        public java.util.Collection<Right> selectRightsList​(int nLevel)
        Loads the data of all the rights with level greater or equal than nLevel and returns them in form of a collection
        Specified by:
        selectRightsList in interface IRightDAO
        Parameters:
        nLevel - The right level
        Returns:
        the collection which contains the data of all the rights
      • selectExternalRightsList

        public java.util.Collection<Right> selectExternalRightsList()
        Loads the data of all the external admin features and returns them in form of a collection
        Returns:
        the collection which contains the data of all the external admin features
      • selectExternalRightsList

        public java.util.Collection<Right> selectExternalRightsList​(int nLevel)
        Loads the data of all the external admin features with level greater or equal than nLevel and returns them in form of a collection
        Specified by:
        selectExternalRightsList in interface IRightDAO
        Parameters:
        nLevel - The right level
        Returns:
        the collection which contains the data of all the external admin features
      • selectRightsList

        public java.util.Collection<Right> selectRightsList​(java.lang.String strFeatureGroup)
        Loads the data of all the rights with the specified feature group and returns them in form of a collection
        Specified by:
        selectRightsList in interface IRightDAO
        Parameters:
        strFeatureGroup - the name of the feature group
        Returns:
        the collection which contains the data of all the rights