|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.profiles.service.ProfilesService
public class ProfilesService
ProfilesService
Constructor Summary | |
---|---|
ProfilesService()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProfilesService()
Method Detail |
---|
public fr.paris.lutece.util.html.ItemNavigator getItemNavigator(ProfileFilter pFilter, Profile profile, fr.paris.lutece.util.url.UrlItem url)
getItemNavigator
in interface IProfilesService
pFilter
- the profile filterprofile
- the profileurl
- the url
public 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 IProfilesService
user
- the current userprofile
- the profilestrPermission
- the permission namelocale
- Localeplugin
- Plugin
public void doAssignUserToProfile(int nIdUser, javax.servlet.http.HttpServletRequest request, Locale locale)
doAssignUserToProfile
in interface IProfilesService
nIdUser
- 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 IProfilesService
nIdUser
- 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 IProfilesService
profile
- The instance of the profile which contains the informations to storelocale
- the Localeplugin
- Plugin
public Profile update(Profile profile, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
update
in interface IProfilesService
profile
- The instance of the profile which contains the new data to storelocale
- the Localeplugin
- Plugin
public void remove(String strProfileKey, Locale locale, fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove
in interface IProfilesService
strProfileKey
- The Profile object to removelocale
- the Localeplugin
- Pluginpublic Profile findByPrimaryKey(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey
in interface IProfilesService
strProfileKey
- The key of the profileplugin
- Plugin
public List<Profile> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll
in interface IProfilesService
plugin
- Plugin
public List<Profile> findProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findProfilesByFilter
in interface IProfilesService
pFilter
- the Filterplugin
- Plugin
public boolean checkExistProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExistProfile
in interface IProfilesService
strProfileKey
- The profile keyplugin
- Plugin
public fr.paris.lutece.util.ReferenceList getProfilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getProfilesList
in interface IProfilesService
plugin
- Plugin
public boolean checkProfileAttributed(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkProfileAttributed
in interface IProfilesService
strProfileKey
- the profile keyplugin
- Plugin
public List<Profile> findProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
findProfileByIdUser
in interface IProfilesService
nIdUser
- the ID userplugin
- Plugin
public List<fr.paris.lutece.portal.business.right.Right> getRightsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getRightsListForProfile
in interface IProfilesService
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasRight(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRight
in interface IProfilesService
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Plugin
public void addRightForProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addRightForProfile
in interface IProfilesService
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic void removeRightFromProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRightFromProfile
in interface IProfilesService
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic void removeRights(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRights
in interface IProfilesService
strProfileKey
- 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 IProfilesService
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasWorkgroup(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasWorkgroup
in interface IProfilesService
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Plugin
public void addWorkgroupForProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addWorkgroupForProfile
in interface IProfilesService
strProfileKey
- The profile KeystrWorkgroupKey
- The WorkgroupKeyplugin
- Pluginpublic void removeWorkgroupFromProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeWorkgroupFromProfile
in interface IProfilesService
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Pluginpublic void removeWorkgroups(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeWorkgroups
in interface IProfilesService
strProfileKey
- 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 IProfilesService
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasRole(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasRole
in interface IProfilesService
strProfileKey
- The profile KeystrRoleKey
- The Role keyplugin
- Plugin
public void addRoleForProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addRoleForProfile
in interface IProfilesService
strProfileKey
- The profile KeystrRoleKey
- The RoleKeyplugin
- Pluginpublic void removeRoleFromProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRoleFromProfile
in interface IProfilesService
strProfileKey
- The profile KeystrRoleKey
- The role keyplugin
- Pluginpublic void removeRoles(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRoles
in interface IProfilesService
strProfileKey
- 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 IProfilesService
strProfileKey
- The profile Keyplugin
- Plugin
public boolean hasUser(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasUser
in interface IProfilesService
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Plugin
public void addUserForProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
addUserForProfile
in interface IProfilesService
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginpublic void removeUserFromProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUserFromProfile
in interface IProfilesService
strProfileKey
- The key of the profilenIdUser
- The User IDplugin
- Pluginpublic void removeUsers(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUsers
in interface IProfilesService
strProfileKey
- The profile keyplugin
- Pluginpublic void removeProfilesFromUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeProfilesFromUser
in interface IProfilesService
nIdUser
- The User IDplugin
- Pluginpublic boolean hasProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasProfile
in interface IProfilesService
strProfileKey
- The key of the profilenIdUser
- the ID userplugin
- Plugin
public View getViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
getViewForProfile
in interface IProfilesService
strProfileKey
- the profile keyplugin
- Plugin
public void removeView(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeView
in interface IProfilesService
strProfileKey
- the profile keyplugin
- Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |