|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.profiles.business.ProfileDAO
public class ProfileDAO
ProfileDAO
Constructor Summary | |
---|---|
ProfileDAO()
|
Method Summary | |
---|---|
boolean |
checkExistProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile already exists or not |
boolean |
checkProfileAttributed(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the profile is attributed to any user |
void |
delete(java.lang.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(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a right from a profile |
void |
deleteRights(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all rights from profile |
void |
deleteRoleFromProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a roles from a profile |
void |
deleteRoles(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all roles from profile |
void |
deleteUserFromProfile(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove an user from a profile |
void |
deleteUsers(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all users from profile |
void |
deleteView(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove profile from a view |
void |
deleteWorkgroupFromProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a workgroup from a profile |
void |
deleteWorkgroups(java.lang.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(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given user has a profile or not |
boolean |
hasRight(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given right. |
boolean |
hasRole(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given role. |
boolean |
hasUser(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given user. |
boolean |
hasWorkgroup(java.lang.String strProfileKey,
java.lang.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(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a right for a profile |
void |
insertRoleForProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a roles for a profile |
void |
insertUserForProfile(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an user for a profile |
void |
insertWorkgroupForProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a workgroup for a profile |
Profile |
load(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the data of Profile from the table |
Profile |
selectProfileByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the profiles by a given ID user |
java.util.Collection<Profile> |
selectProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of profiles |
java.util.Collection<Profile> |
selectProfilesByFilter(ProfileFilter pFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find profile by filter |
java.util.Collection<fr.paris.lutece.portal.business.right.Right> |
selectRightsListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of rights associated to the profile |
java.util.Collection<fr.paris.lutece.portal.business.rbac.AdminRole> |
selectRolesListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of roles associated to the profile |
java.util.Collection<fr.paris.lutece.portal.business.user.AdminUser> |
selectUsersListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of users associated to the profile |
View |
selectViewForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the view associated to the profile |
java.util.Collection<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> |
selectWorkgroupsListForProfile(java.lang.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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfileDAO()
Method Detail |
---|
public void insert(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insert
in interface IProfileDAO
profile
- The profile objectplugin
- Pluginpublic Profile load(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
load
in interface IProfileDAO
strProfileKey
- The profile keyplugin
- Plugin
public void delete(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
delete
in interface IProfileDAO
strProfileKey
- The profile keyplugin
- Pluginpublic void store(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
store
in interface IProfileDAO
profile
- The reference of profile to be the new oneplugin
- Pluginpublic java.util.Collection<Profile> selectProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProfileList
in interface IProfileDAO
plugin
- Plugin
public java.util.Collection<Profile> selectProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProfilesByFilter
in interface IProfileDAO
pFilter
- the Filterplugin
- Plugin
public boolean checkExistProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExistProfile
in interface IProfileDAO
strProfileKey
- The profile keyplugin
- Plugin
public fr.paris.lutece.util.ReferenceList getProfileList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getProfileList
in interface IProfileDAO
plugin
- Plugin
public boolean checkProfileAttributed(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkProfileAttributed
in interface IProfileDAO
strProfileKey
- the profile keyplugin
- Plugin
public Profile selectProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectProfileByIdUser
in interface IProfileDAO
nIdUser
- the ID userplugin
- Plugin
public java.util.Collection<fr.paris.lutece.portal.business.right.Right> selectRightsListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRightsListForProfile
in interface IProfileDAO
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasRight(java.lang.String strProfileKey, java.lang.String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRight
in interface IProfileDAO
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Plugin
public void insertRightForProfile(java.lang.String strProfileKey, java.lang.String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertRightForProfile
in interface IProfileDAO
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic void deleteRightFromProfile(java.lang.String strProfileKey, java.lang.String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRightFromProfile
in interface IProfileDAO
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic void deleteRights(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRights
in interface IProfileDAO
strProfileKey
- The profile keyplugin
- Pluginpublic java.util.Collection<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> selectWorkgroupsListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectWorkgroupsListForProfile
in interface IProfileDAO
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasWorkgroup(java.lang.String strProfileKey, java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasWorkgroup
in interface IProfileDAO
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Plugin
public void insertWorkgroupForProfile(java.lang.String strProfileKey, java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertWorkgroupForProfile
in interface IProfileDAO
strProfileKey
- The profile KeystrWorkgroupKey
- The WorkgroupKeyplugin
- Pluginpublic void deleteWorkgroupFromProfile(java.lang.String strProfileKey, java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteWorkgroupFromProfile
in interface IProfileDAO
strProfileKey
- The profile KeystrWorkgroupKey
- The Right IDplugin
- Pluginpublic void deleteWorkgroups(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteWorkgroups
in interface IProfileDAO
strProfileKey
- The profile keyplugin
- Pluginpublic java.util.Collection<fr.paris.lutece.portal.business.rbac.AdminRole> selectRolesListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectRolesListForProfile
in interface IProfileDAO
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasRole(java.lang.String strProfileKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRole
in interface IProfileDAO
strProfileKey
- The profile KeystrRoleKey
- The Role keyplugin
- Plugin
public void insertRoleForProfile(java.lang.String strProfileKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertRoleForProfile
in interface IProfileDAO
strProfileKey
- The profile KeystrRoleKey
- The WorkgroupKeyplugin
- Pluginpublic void deleteRoleFromProfile(java.lang.String strProfileKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRoleFromProfile
in interface IProfileDAO
strProfileKey
- The profile KeystrRoleKey
- The Right IDplugin
- Pluginpublic void deleteRoles(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteRoles
in interface IProfileDAO
strProfileKey
- The profile keyplugin
- Pluginpublic java.util.Collection<fr.paris.lutece.portal.business.user.AdminUser> selectUsersListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectUsersListForProfile
in interface IProfileDAO
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasUser(java.lang.String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasUser
in interface IProfileDAO
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Plugin
public void insertUserForProfile(java.lang.String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
insertUserForProfile
in interface IProfileDAO
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginpublic void deleteUserFromProfile(java.lang.String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteUserFromProfile
in interface IProfileDAO
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginpublic void deleteUsers(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteUsers
in interface IProfileDAO
strProfileKey
- The profile keyplugin
- Pluginpublic void deleteProfilesFromUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteProfilesFromUser
in interface IProfileDAO
nIdUser
- The User IDplugin
- Pluginpublic boolean hasProfile(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasProfile
in interface IProfileDAO
nIdUser
- the ID userplugin
- Plugin
public View selectViewForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
selectViewForProfile
in interface IProfileDAO
strProfileKey
- the profile keyplugin
- Plugin
public void deleteView(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
deleteView
in interface IProfileDAO
strProfileKey
- the profile keyplugin
- Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |