Interface IAdminWorkgroupDAO

All Known Implementing Classes:
AdminWorkgroupDAO

public interface IAdminWorkgroupDAO
Interface for AdminWorkgroup DAO
  • Method Details

    • checkExistWorkgroup

      boolean checkExistWorkgroup(String strWorkgroupKey)
      Check that the given key points to an existing workgroup
      Parameters:
      strWorkgroupKey - The workgroup key
      Returns:
      true if the workgroup exists, false otherwise
    • delete

      void delete(String strWorkgroupKey)
      Delete a record from the table
      Parameters:
      strWorkgroupKey - The workgroup key
    • insert

      void insert(AdminWorkgroup workgroup)
      Insert a new record in the table.
      Parameters:
      workgroup - The workgroup object
    • load

      AdminWorkgroup load(String strWorkgroupKey)
      Load the data of AdminWorkgroup from the table
      Parameters:
      strWorkgroupKey - The workgroup key
      Returns:
      the instance of the AdminWorkgroup
    • selectWorkgroupList

      Collection<AdminWorkgroup> selectWorkgroupList()
      Load the list of workgroups
      Returns:
      The Collection of the Workgroups
    • store

      void store(AdminWorkgroup workgroup)
      Update the record identified by the given workgroup key with the given workgroup in the table
      Parameters:
      workgroup - The reference of workgroup to be the new one
    • isUserInWorkgroup

      boolean isUserInWorkgroup(int nIdUser, String strWorkgroup)
      Is the user member of the workgroup
      Parameters:
      nIdUser - The user Id
      strWorkgroup - The workgroup key
      Returns:
      True if the user is in the workgroup, otherwise false
    • checkUserHasWorkgroup

      boolean checkUserHasWorkgroup(int nIdUser)
      Is the user member of the workgroup
      Parameters:
      nIdUser - The user Id
      Returns:
      True if the user has workgroup
    • getUserWorkgroups

      ReferenceList getUserWorkgroups(int nIdUser)
      Returns the list of all workgroups the user is member
      Parameters:
      nIdUser - The user Id
      Returns:
      The list of all user's workgroups
    • getUsersListForWorkgroup

      Collection<AdminUser> getUsersListForWorkgroup(String strWorkgroupKey)
      Returns the list of all users for a workgroup
      Parameters:
      strWorkgroupKey - The workgroup key
      Returns:
      The collection of all users of a workgroup
    • deleteAllUsersForWorkgroup

      void deleteAllUsersForWorkgroup(String strWorkgroupKey)
      Remove all users of a workgroup
      Parameters:
      strWorkgroupKey - The workgroup key
    • insertUserForWorkgroup

      void insertUserForWorkgroup(AdminUser user, String strWorkgroupKey)
      Insert a user into a workgroup
      Parameters:
      user - The user to insert
      strWorkgroupKey - the key workgroup
    • deleteUserFromWorkgroup

      void deleteUserFromWorkgroup(int userId, String strWorkgroupKey)
      Remove an user from a workgroup
      Parameters:
      userId - The user ID
      strWorkgroupKey - The workgroup key
    • selectWorkgroupsByFilter

      Collection<AdminWorkgroup> selectWorkgroupsByFilter(AdminWorkgroupFilter awFilter)
      Find workgroups from a filter
      Parameters:
      awFilter - the filter
      Returns:
      the list of workgroups