Class GroupDAO

  • All Implemented Interfaces:
    IGroupDAO

    public final class GroupDAO
    extends java.lang.Object
    implements IGroupDAO
    This class provides Data Access methods for Group objects
    • Constructor Summary

      Constructors 
      Constructor Description
      GroupDAO()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void delete​(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      void insert​(Group group, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Group load​(java.lang.String strGroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      load the data of Group from the table
      java.util.Collection<Group> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of groups
      java.util.List<Group> selectByFilter​(GroupFilter gFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Return the filtered groups list
      fr.paris.lutece.util.ReferenceList selectGroupsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Returns a list of all the right group
      void store​(Group group, 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

      • GroupDAO

        public GroupDAO()
    • Method Detail

      • insert

        public void insert​(Group group,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Insert a new record in the table.
        Specified by:
        insert in interface IGroupDAO
        Parameters:
        group - The Instance of the object Group
        plugin - Plugin
      • load

        public Group load​(java.lang.String strGroupKey,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        load the data of Group from the table
        Specified by:
        load in interface IGroupDAO
        Parameters:
        strGroupKey - The indentifier of the object Group
        plugin - Plugin
        Returns:
        The Instance of the object Group
      • delete

        public void delete​(java.lang.String strGroupKey,
                           fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Delete a record from the table
        Specified by:
        delete in interface IGroupDAO
        Parameters:
        strGroupKey - The indentifier of the object Group
        plugin - Plugin
      • store

        public void store​(Group group,
                          fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Update the record in the table
        Specified by:
        store in interface IGroupDAO
        Parameters:
        group - The instance of the Group to update
        plugin - Plugin
      • selectGroupsList

        public fr.paris.lutece.util.ReferenceList selectGroupsList​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Returns a list of all the right group
        Specified by:
        selectGroupsList in interface IGroupDAO
        Parameters:
        plugin - Plugin
        Returns:
        A ReferenceList of group objects
      • selectAll

        public java.util.Collection<Group> selectAll​(fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Load the list of groups
        Specified by:
        selectAll in interface IGroupDAO
        Parameters:
        plugin - Plugin
        Returns:
        The Collection of the Groups
      • selectByFilter

        public java.util.List<Group> selectByFilter​(GroupFilter gFilter,
                                                    fr.paris.lutece.portal.service.plugin.Plugin plugin)
        Return the filtered groups list
        Specified by:
        selectByFilter in interface IGroupDAO
        Parameters:
        gFilter - filter
        plugin - Plugin
        Returns:
        List of Group