public class ProfileDAO extends Object implements IProfileDAO
| Constructor and Description |
|---|
ProfileDAO() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkExistProfile(String strProfileKey,
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
|
Profile |
load(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Profile from the table
|
List<Profile> |
selectProfileByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the profiles by a given ID user
|
List<Profile> |
selectProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of profiles
|
List<Profile> |
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.AdminRole> |
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
|
View |
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
|
public void insert(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert in interface IProfileDAOprofile - The profile objectplugin - Pluginpublic Profile load(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load in interface IProfileDAOstrProfileKey - The profile keyplugin - Pluginpublic void delete(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete in interface IProfileDAOstrProfileKey - The profile keyplugin - Pluginpublic void store(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store in interface IProfileDAOprofile - The reference of profile to be the new oneplugin - Pluginpublic List<Profile> selectProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProfileList in interface IProfileDAOplugin - Pluginpublic List<Profile> selectProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProfilesByFilter in interface IProfileDAOpFilter - the Filterplugin - Pluginpublic boolean checkExistProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExistProfile in interface IProfileDAOstrProfileKey - The profile keyplugin - Pluginpublic fr.paris.lutece.util.ReferenceList getProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getProfileList in interface IProfileDAOplugin - Pluginpublic boolean checkProfileAttributed(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkProfileAttributed in interface IProfileDAOstrProfileKey - the profile keyplugin - Pluginpublic List<Profile> selectProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProfileByIdUser in interface IProfileDAOnIdUser - the ID userplugin - Pluginpublic List<fr.paris.lutece.portal.business.right.Right> selectRightsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRightsListForProfile in interface IProfileDAOstrProfileKey - The profile Keyplugin - Pluginpublic boolean hasRight(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRight in interface IProfileDAOstrProfileKey - The profile KeystrIdRight - The Right IDplugin - Pluginpublic void insertRightForProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertRightForProfile in interface IProfileDAOstrProfileKey - The profile KeystrIdRight - The Right IDplugin - Pluginpublic void deleteRightFromProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRightFromProfile in interface IProfileDAOstrProfileKey - The profile KeystrIdRight - The Right IDplugin - Pluginpublic void deleteRights(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRights in interface IProfileDAOstrProfileKey - The profile keyplugin - Pluginpublic List<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> selectWorkgroupsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectWorkgroupsListForProfile in interface IProfileDAOstrProfileKey - The profile Keyplugin - Pluginpublic boolean hasWorkgroup(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasWorkgroup in interface IProfileDAOstrProfileKey - The profile KeystrWorkgroupKey - The Workgroup keyplugin - Pluginpublic void insertWorkgroupForProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertWorkgroupForProfile in interface IProfileDAOstrProfileKey - The profile KeystrWorkgroupKey - The WorkgroupKeyplugin - Pluginpublic void deleteWorkgroupFromProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteWorkgroupFromProfile in interface IProfileDAOstrProfileKey - The profile KeystrWorkgroupKey - The Right IDplugin - Pluginpublic void deleteWorkgroups(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteWorkgroups in interface IProfileDAOstrProfileKey - The profile keyplugin - Pluginpublic List<fr.paris.lutece.portal.business.rbac.AdminRole> selectRolesListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRolesListForProfile in interface IProfileDAOstrProfileKey - The profile Keyplugin - Pluginpublic boolean hasRole(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRole in interface IProfileDAOstrProfileKey - The profile KeystrRoleKey - The Role keyplugin - Pluginpublic void insertRoleForProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertRoleForProfile in interface IProfileDAOstrProfileKey - The profile KeystrRoleKey - The WorkgroupKeyplugin - Pluginpublic void deleteRoleFromProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRoleFromProfile in interface IProfileDAOstrProfileKey - The profile KeystrRoleKey - The Right IDplugin - Pluginpublic void deleteRoles(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRoles in interface IProfileDAOstrProfileKey - The profile keyplugin - Pluginpublic List<fr.paris.lutece.portal.business.user.AdminUser> selectUsersListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUsersListForProfile in interface IProfileDAOstrProfileKey - The profile Keyplugin - Pluginpublic boolean hasUser(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasUser in interface IProfileDAOstrProfileKey - The profile KeynIdUser - The User IDplugin - Pluginpublic void insertUserForProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertUserForProfile in interface IProfileDAOstrProfileKey - The profile KeynIdUser - The User IDplugin - Pluginpublic void deleteUserFromProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteUserFromProfile in interface IProfileDAOstrProfileKey - The key of the profilenIdUser - The User IDplugin - Pluginpublic void deleteUsers(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteUsers in interface IProfileDAOstrProfileKey - The profile keyplugin - Pluginpublic void deleteProfilesFromUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteProfilesFromUser in interface IProfileDAOnIdUser - The User IDplugin - Pluginpublic boolean hasProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasProfile in interface IProfileDAOstrProfileKey - The key of the profilenIdUser - the ID userplugin - Pluginpublic View selectViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectViewForProfile in interface IProfileDAOstrProfileKey - the profile keyplugin - Pluginpublic void deleteView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteView in interface IProfileDAOstrProfileKey - the profile keyplugin - PluginCopyright © 2017 City of Paris. All rights reserved.