public interface IProfilesService
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
|
fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ProfileFilter pFilter, Profile profile, fr.paris.lutece.util.url.UrlItem url)
pFilter
- the profile filterprofile
- the profileurl
- the urlList<ProfileAction> getListActions(fr.paris.lutece.portal.business.user.AdminUser user, Profile profile, String strPermission, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
user
- the current userprofile
- the profilestrPermission
- the permission namelocale
- Localeplugin
- Pluginvoid doAssignUserToProfile(int nIdUser, javax.servlet.http.HttpServletRequest request, Locale locale)
nIdUser
- the id suerrequest
- the HTTP requestlocale
- the Localevoid 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)
nIdUser
- the id userstrProfileKey
- the profile keycurrentUser
- the current userrequest
- the HTTP requestlocale
- the localeplugin
- the pluginProfile create(Profile profile, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
profile
- The instance of the profile which contains the informations to storelocale
- the Localeplugin
- PluginProfile update(Profile profile, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
profile
- The instance of the profile which contains the new data to storelocale
- the Localeplugin
- Pluginvoid remove(String strProfileKey, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The Profile object to removelocale
- the Localeplugin
- PluginProfile findByPrimaryKey(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The key of the profileplugin
- PluginList<Profile> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- PluginList<Profile> findProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
pFilter
- the Filterplugin
- Pluginboolean checkExistProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginfr.paris.lutece.util.ReferenceList getProfilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Pluginboolean checkProfileAttributed(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- PluginList<Profile> findProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- the ID userplugin
- PluginList<fr.paris.lutece.portal.business.right.Right> getRightsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Pluginboolean hasRight(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginvoid addRightForProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginvoid removeRightFromProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginvoid removeRights(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- PluginList<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> getWorkgroupsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Pluginboolean hasWorkgroup(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Pluginvoid addWorkgroupForProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The WorkgroupKeyplugin
- Pluginvoid removeWorkgroupFromProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Pluginvoid removeWorkgroups(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- PluginList<fr.paris.lutece.portal.business.rbac.AdminRole> getRolesListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Pluginboolean hasRole(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The Role keyplugin
- Pluginvoid addRoleForProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The RoleKeyplugin
- Pluginvoid removeRoleFromProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The role keyplugin
- Pluginvoid removeRoles(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- PluginList<fr.paris.lutece.portal.business.user.AdminUser> getUsersListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Pluginboolean hasUser(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginvoid addUserForProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginvoid removeUserFromProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The key of the profilenIdUser
- The User IDplugin
- Pluginvoid removeUsers(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginvoid removeProfilesFromUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- The User IDplugin
- Pluginboolean hasProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The key of the profilenIdUser
- the ID userplugin
- PluginView getViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- Pluginvoid removeView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- PluginCopyright © 2018 City of Paris. All rights reserved.