Interface IProfileDAO

All Known Implementing Classes:
ProfileDAO

public interface IProfileDAO
IProfileDAO
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkExistProfile(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if a profile already exists or not
    boolean
    checkProfileAttributed(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if the profile is attributed to any user
    void
    delete(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Delete a record from the table
    void
    deleteProfilesFromUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove all profiles associated to an user
    void
    deleteRightFromProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove a right from a profile
    void
    deleteRights(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove all rights from profile
    void
    deleteRoleFromProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove a roles from a profile
    void
    deleteRoles(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove all roles from profile
    void
    deleteUserFromProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove an user from a profile
    void
    deleteUsers(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove all users from profile
    void
    deleteView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove profile from a view
    void
    deleteWorkgroupFromProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove a workgroup from a profile
    void
    deleteWorkgroups(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Remove all workgroups from profile
    fr.paris.lutece.util.ReferenceList
    getProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of profiles
    boolean
    hasProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if the given user has a given profile or not
    boolean
    hasRight(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if a profile has the given right.
    boolean
    hasRole(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if a profile has the given role.
    boolean
    hasUser(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if a profile has the given user.
    boolean
    hasWorkgroup(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Check if a profile has the given workgroup.
    void
    insert(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Insert a new record in the table.
    void
    insertRightForProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Add a right for a profile
    void
    insertRoleForProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Add a roles for a profile
    void
    insertUserForProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Add an user for a profile
    void
    insertWorkgroupForProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Add a workgroup for a profile
    load(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the data of Profile from the table
    selectProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the profiles by a given ID user
    selectProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Load the list of profiles
    selectProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Find profile by filter
    List<fr.paris.lutece.portal.business.right.Right>
    selectRightsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of rights associated to the profile
    List<fr.paris.lutece.portal.business.rbac.RBACRole>
    selectRolesListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of roles associated to the profile
    List<fr.paris.lutece.portal.business.user.AdminUser>
    selectUsersListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of users associated to the profile
    selectViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the view associated to the profile
    List<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup>
    selectWorkgroupsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Get the list of workgroups associated to the profile
    void
    store(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
    Update the record identified by the given profile key with the given profile in the table
  • Method Details

    • delete

      void delete(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Delete a record from the table
      Parameters:
      strProfileKey - The profile key
      plugin - Plugin
    • insert

      void insert(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Insert a new record in the table.
      Parameters:
      profile - The profile object
      plugin - Plugin
    • load

      Profile load(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the data of Profile from the table
      Parameters:
      strProfileKey - The profile key
      plugin - Plugin
      Returns:
      the instance of the Profile
    • selectProfileList

      List<Profile> selectProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the list of profiles
      Parameters:
      plugin - Plugin
      Returns:
      The List of the profiles
    • store

      void store(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Update the record identified by the given profile key with the given profile in the table
      Parameters:
      profile - The reference of profile to be the new one
      plugin - Plugin
    • selectProfilesByFilter

      List<Profile> selectProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Find profile by filter
      Parameters:
      pFilter - the Filter
      plugin - Plugin
      Returns:
      List of profiles
    • checkExistProfile

      boolean checkExistProfile(String strKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a profile already exists or not
      Parameters:
      strKey - The profile key
      plugin - Plugin
      Returns:
      true if it already exists
    • getProfileList

      fr.paris.lutece.util.ReferenceList getProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of profiles
      Parameters:
      plugin - Plugin
      Returns:
      the list of profiles
    • checkProfileAttributed

      boolean checkProfileAttributed(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if the profile is attributed to any user
      Parameters:
      strProfileKey - the profile key
      plugin - Plugin
      Returns:
      true if it is attributed to at least one user, false otherwise
    • selectProfileByIdUser

      List<Profile> selectProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Load the profiles by a given ID user
      Parameters:
      nIdUser - the ID user
      plugin - Plugin
      Returns:
      the list of profiles of the user
    • selectRightsListForProfile

      List<fr.paris.lutece.portal.business.right.Right> selectRightsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of rights associated to the profile
      Parameters:
      strProfileKey - The profile Key
      plugin - Plugin
      Returns:
      The list of Right
    • hasRight

      boolean hasRight(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a profile has the given right.
      Parameters:
      strProfileKey - The profile Key
      strIdRight - The Right ID
      plugin - Plugin
      Returns:
      true if the profile has the right, false otherwise
    • insertRightForProfile

      void insertRightForProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Add a right for a profile
      Parameters:
      strProfileKey - The profile Key
      strIdRight - The Right ID
      plugin - Plugin
    • deleteRightFromProfile

      void deleteRightFromProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a right from a profile
      Parameters:
      strProfileKey - The profile Key
      strIdRight - The Right ID
      plugin - Plugin
    • deleteRights

      void deleteRights(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all rights from profile
      Parameters:
      strProfileKey - The profile key
      plugin - Plugin
    • selectWorkgroupsListForProfile

      List<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> selectWorkgroupsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of workgroups associated to the profile
      Parameters:
      strProfileKey - The profile Key
      plugin - Plugin
      Returns:
      The list of workgroups
    • hasWorkgroup

      boolean hasWorkgroup(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a profile has the given workgroup.
      Parameters:
      strProfileKey - The profile Key
      strWorkgroupKey - The Workgroup key
      plugin - Plugin
      Returns:
      true if the profile has the workgroup, false otherwise
    • insertWorkgroupForProfile

      void insertWorkgroupForProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Add a workgroup for a profile
      Parameters:
      strProfileKey - The profile Key
      strWorkgroupKey - The WorkgroupKey
      plugin - Plugin
    • deleteWorkgroupFromProfile

      void deleteWorkgroupFromProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a workgroup from a profile
      Parameters:
      strProfileKey - The profile Key
      strWorkgroupKey - The Right ID
      plugin - Plugin
    • deleteWorkgroups

      void deleteWorkgroups(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all workgroups from profile
      Parameters:
      strProfileKey - The profile key
      plugin - Plugin
    • selectRolesListForProfile

      List<fr.paris.lutece.portal.business.rbac.RBACRole> selectRolesListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of roles associated to the profile
      Parameters:
      strProfileKey - The profile Key
      plugin - Plugin
      Returns:
      The list of roles
    • hasRole

      boolean hasRole(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a profile has the given role.
      Parameters:
      strProfileKey - The profile Key
      strRoleKey - The Role key
      plugin - Plugin
      Returns:
      true if the profile has the workgroup, false otherwise
    • insertRoleForProfile

      void insertRoleForProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Add a roles for a profile
      Parameters:
      strProfileKey - The profile Key
      strRoleKey - The WorkgroupKey
      plugin - Plugin
    • deleteRoleFromProfile

      void deleteRoleFromProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove a roles from a profile
      Parameters:
      strProfileKey - The profile Key
      strRoleKey - The Right ID
      plugin - Plugin
    • deleteRoles

      void deleteRoles(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all roles from profile
      Parameters:
      strProfileKey - The profile key
      plugin - Plugin
    • selectUsersListForProfile

      List<fr.paris.lutece.portal.business.user.AdminUser> selectUsersListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the list of users associated to the profile
      Parameters:
      strProfileKey - The profile Key
      plugin - Plugin
      Returns:
      The list of users
    • hasUser

      boolean hasUser(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if a profile has the given user.
      Parameters:
      strProfileKey - The profile Key
      nIdUser - The User ID
      plugin - Plugin
      Returns:
      true if the profile has the user, false otherwise
    • insertUserForProfile

      void insertUserForProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Add an user for a profile
      Parameters:
      strProfileKey - The profile Key
      nIdUser - The User ID
      plugin - Plugin
    • deleteUserFromProfile

      void deleteUserFromProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove an user from a profile
      Parameters:
      strProfileKey - The key of the profile
      nIdUser - The User ID
      plugin - Plugin
    • deleteUsers

      void deleteUsers(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all users from profile
      Parameters:
      strProfileKey - The profile key
      plugin - Plugin
    • deleteProfilesFromUser

      void deleteProfilesFromUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove all profiles associated to an user
      Parameters:
      nIdUser - The User ID
      plugin - Plugin
    • hasProfile

      boolean hasProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Check if the given user has a given profile or not
      Parameters:
      strProfileKey - The key of the profile
      nIdUser - the ID user
      plugin - Plugin
      Returns:
      true if the user has the profile, false otherwise
    • selectViewForProfile

      View selectViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Get the view associated to the profile
      Parameters:
      strProfileKey - the profile key
      plugin - Plugin
      Returns:
      the view
    • deleteView

      void deleteView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
      Remove profile from a view
      Parameters:
      strProfileKey - the profile key
      plugin - Plugin