public class ProfilesService extends Object implements IProfilesService
| Constructor and Description |
|---|
ProfilesService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRightForProfile(String strProfileKey,
String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a right for a profile
|
void |
addRoleForProfile(String strProfileKey,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a role for a profile
|
void |
addUserForProfile(String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an user for a profile
|
void |
addWorkgroupForProfile(String strProfileKey,
String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a workgroup for a profile
|
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
|
Profile |
create(Profile profile,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of profile
|
void |
doAssignUserToProfile(int nIdUser,
javax.servlet.http.HttpServletRequest request,
Locale locale)
Do assign user to a profile
|
void |
doUnassignUserFromProfile(int nIdUser,
String strProfileKey,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Do unassign user from profile
|
List<Profile> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of profiles objects
|
Profile |
findByPrimaryKey(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a profile whose identifier is specified in parameter
|
List<Profile> |
findProfileByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the list of profiles by a given ID user
|
List<Profile> |
findProfilesByFilter(ProfileFilter pFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find profile by filter
|
fr.paris.lutece.util.html.ItemNavigator |
getItemNavigator(ProfileFilter pFilter,
Profile profile,
fr.paris.lutece.util.url.UrlItem url)
Get the item navigator
|
List<ProfileAction> |
getListActions(fr.paris.lutece.portal.business.user.AdminUser user,
Profile profile,
String strPermission,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of actions
|
fr.paris.lutece.util.ReferenceList |
getProfilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of profiles
|
List<fr.paris.lutece.portal.business.right.Right> |
getRightsListForProfile(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> |
getRolesListForProfile(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> |
getUsersListForProfile(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of users associated to the profile
|
View |
getViewForProfile(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> |
getWorkgroupsListForProfile(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of workgroups associated to the profile
|
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 |
remove(String strProfileKey,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the Profile whose identifier is specified in parameter
|
void |
removeProfilesFromUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all profiles associated to an user
|
void |
removeRightFromProfile(String strProfileKey,
String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a right from a profile
|
void |
removeRights(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all rights from profile
|
void |
removeRoleFromProfile(String strProfileKey,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a role from a profile
|
void |
removeRoles(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all roles from profile
|
void |
removeUserFromProfile(String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a user from a profile
|
void |
removeUsers(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all users from profile
|
void |
removeView(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove profile from a view
|
void |
removeWorkgroupFromProfile(String strProfileKey,
String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a workgroup from a profile
|
void |
removeWorkgroups(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all workgroups from profile
|
Profile |
update(Profile profile,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Update of the profile which is specified in parameter
|
public fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ProfileFilter pFilter, Profile profile, fr.paris.lutece.util.url.UrlItem url)
getItemNavigator in interface IProfilesServicepFilter - the profile filterprofile - the profileurl - the urlpublic List<ProfileAction> getListActions(fr.paris.lutece.portal.business.user.AdminUser user, Profile profile, String strPermission, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListActions in interface IProfilesServiceuser - the current userprofile - the profilestrPermission - the permission namelocale - Localeplugin - Pluginpublic void doAssignUserToProfile(int nIdUser,
javax.servlet.http.HttpServletRequest request,
Locale locale)
doAssignUserToProfile in interface IProfilesServicenIdUser - the id suerrequest - the HTTP requestlocale - the Localepublic void doUnassignUserFromProfile(int nIdUser,
String strProfileKey,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request,
Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
doUnassignUserFromProfile in interface IProfilesServicenIdUser - the id userstrProfileKey - the profile keycurrentUser - the current userrequest - the HTTP requestlocale - the localeplugin - the pluginpublic Profile create(Profile profile, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
create in interface IProfilesServiceprofile - The instance of the profile which contains the informations to storelocale - the Localeplugin - Pluginpublic Profile update(Profile profile, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update in interface IProfilesServiceprofile - The instance of the profile which contains the new data to storelocale - the Localeplugin - Pluginpublic void remove(String strProfileKey, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove in interface IProfilesServicestrProfileKey - The Profile object to removelocale - the Localeplugin - Pluginpublic Profile findByPrimaryKey(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IProfilesServicestrProfileKey - The key of the profileplugin - Pluginpublic List<Profile> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface IProfilesServiceplugin - Pluginpublic List<Profile> findProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findProfilesByFilter in interface IProfilesServicepFilter - the Filterplugin - Pluginpublic boolean checkExistProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExistProfile in interface IProfilesServicestrProfileKey - The profile keyplugin - Pluginpublic fr.paris.lutece.util.ReferenceList getProfilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getProfilesList in interface IProfilesServiceplugin - Pluginpublic boolean checkProfileAttributed(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkProfileAttributed in interface IProfilesServicestrProfileKey - the profile keyplugin - Pluginpublic List<Profile> findProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findProfileByIdUser in interface IProfilesServicenIdUser - the ID userplugin - Pluginpublic List<fr.paris.lutece.portal.business.right.Right> getRightsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getRightsListForProfile in interface IProfilesServicestrProfileKey - The profile Keyplugin - Pluginpublic boolean hasRight(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRight in interface IProfilesServicestrProfileKey - The profile KeystrIdRight - The Right IDplugin - Pluginpublic void addRightForProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addRightForProfile in interface IProfilesServicestrProfileKey - The profile KeystrIdRight - The Right IDplugin - Pluginpublic void removeRightFromProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRightFromProfile in interface IProfilesServicestrProfileKey - The profile KeystrIdRight - The Right IDplugin - Pluginpublic void removeRights(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRights in interface IProfilesServicestrProfileKey - The profile keyplugin - Pluginpublic List<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> getWorkgroupsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getWorkgroupsListForProfile in interface IProfilesServicestrProfileKey - The profile Keyplugin - Pluginpublic boolean hasWorkgroup(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasWorkgroup in interface IProfilesServicestrProfileKey - The profile KeystrWorkgroupKey - The Workgroup keyplugin - Pluginpublic void addWorkgroupForProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addWorkgroupForProfile in interface IProfilesServicestrProfileKey - The profile KeystrWorkgroupKey - The WorkgroupKeyplugin - Pluginpublic void removeWorkgroupFromProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeWorkgroupFromProfile in interface IProfilesServicestrProfileKey - The profile KeystrWorkgroupKey - The Workgroup keyplugin - Pluginpublic void removeWorkgroups(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeWorkgroups in interface IProfilesServicestrProfileKey - The profile keyplugin - Pluginpublic List<fr.paris.lutece.portal.business.rbac.AdminRole> getRolesListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getRolesListForProfile in interface IProfilesServicestrProfileKey - The profile Keyplugin - Pluginpublic boolean hasRole(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRole in interface IProfilesServicestrProfileKey - The profile KeystrRoleKey - The Role keyplugin - Pluginpublic void addRoleForProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addRoleForProfile in interface IProfilesServicestrProfileKey - The profile KeystrRoleKey - The RoleKeyplugin - Pluginpublic void removeRoleFromProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRoleFromProfile in interface IProfilesServicestrProfileKey - The profile KeystrRoleKey - The role keyplugin - Pluginpublic void removeRoles(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRoles in interface IProfilesServicestrProfileKey - The profile keyplugin - Pluginpublic List<fr.paris.lutece.portal.business.user.AdminUser> getUsersListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getUsersListForProfile in interface IProfilesServicestrProfileKey - The profile Keyplugin - Pluginpublic boolean hasUser(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasUser in interface IProfilesServicestrProfileKey - The profile KeynIdUser - The User IDplugin - Pluginpublic void addUserForProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addUserForProfile in interface IProfilesServicestrProfileKey - The profile KeynIdUser - The User IDplugin - Pluginpublic void removeUserFromProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUserFromProfile in interface IProfilesServicestrProfileKey - The key of the profilenIdUser - The User IDplugin - Pluginpublic void removeUsers(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUsers in interface IProfilesServicestrProfileKey - The profile keyplugin - Pluginpublic void removeProfilesFromUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeProfilesFromUser in interface IProfilesServicenIdUser - The User IDplugin - Pluginpublic boolean hasProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasProfile in interface IProfilesServicestrProfileKey - The key of the profilenIdUser - the ID userplugin - Pluginpublic View getViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getViewForProfile in interface IProfilesServicestrProfileKey - the profile keyplugin - Pluginpublic void removeView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeView in interface IProfilesServicestrProfileKey - the profile keyplugin - PluginCopyright © 2017 City of Paris. All rights reserved.