|
||||||||||
| 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(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a right for a profile |
void |
addRoleForProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a role for a profile |
void |
addUserForProfile(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an user for a profile |
void |
addWorkgroupForProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a workgroup for a profile |
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 |
Profile |
create(Profile profile,
java.util.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,
java.util.Locale locale)
Do assign user to a profile |
void |
doUnassignUserFromProfile(int nIdUser,
java.lang.String strProfileKey,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Do unassign user from profile |
java.util.List<Profile> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of profiles objects |
Profile |
findByPrimaryKey(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a profile whose identifier is specified in parameter |
Profile |
findProfileByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the profile by a given ID user |
java.util.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 |
java.util.List<ProfileAction> |
getListActions(fr.paris.lutece.portal.business.user.AdminUser user,
Profile profile,
java.lang.String strPermission,
java.util.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 |
java.util.List<fr.paris.lutece.portal.business.right.Right> |
getRightsListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of rights associated to the profile |
java.util.List<fr.paris.lutece.portal.business.rbac.AdminRole> |
getRolesListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of roles associated to the profile |
java.util.List<fr.paris.lutece.portal.business.user.AdminUser> |
getUsersListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of users associated to the profile |
View |
getViewForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the view associated to the profile |
java.util.List<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> |
getWorkgroupsListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of workgroups associated to the profile |
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 |
remove(java.lang.String strProfileKey,
java.util.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(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a right from a profile |
void |
removeRights(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all rights from profile |
void |
removeRoleFromProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a role from a profile |
void |
removeRoles(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all roles from profile |
void |
removeUserFromProfile(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a user from a profile |
void |
removeUsers(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all users from profile |
void |
removeView(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove profile from a view |
void |
removeWorkgroupFromProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a workgroup from a profile |
void |
removeWorkgroups(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all workgroups from profile |
Profile |
update(Profile profile,
java.util.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 IProfilesServicepFilter - the profile filterprofile - the profileurl - the url
public java.util.List<ProfileAction> getListActions(fr.paris.lutece.portal.business.user.AdminUser user,
Profile profile,
java.lang.String strPermission,
java.util.Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getListActions in interface IProfilesServiceuser - the current userprofile - the profilestrPermission - the permission namelocale - Localeplugin - Plugin
public void doAssignUserToProfile(int nIdUser,
javax.servlet.http.HttpServletRequest request,
java.util.Locale locale)
doAssignUserToProfile in interface IProfilesServicenIdUser - the id suerrequest - the HTTP requestlocale - the Locale
public void doUnassignUserFromProfile(int nIdUser,
java.lang.String strProfileKey,
fr.paris.lutece.portal.business.user.AdminUser currentUser,
javax.servlet.http.HttpServletRequest request,
java.util.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 plugin
public Profile create(Profile profile,
java.util.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 - Plugin
public Profile update(Profile profile,
java.util.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 - Plugin
public void remove(java.lang.String strProfileKey,
java.util.Locale locale,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
remove in interface IProfilesServicestrProfileKey - The Profile object to removelocale - the Localeplugin - Plugin
public Profile findByPrimaryKey(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findByPrimaryKey in interface IProfilesServicestrProfileKey - The key of the profileplugin - Plugin
public java.util.List<Profile> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
findAll in interface IProfilesServiceplugin - Plugin
public java.util.List<Profile> findProfilesByFilter(ProfileFilter pFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findProfilesByFilter in interface IProfilesServicepFilter - the Filterplugin - Plugin
public boolean checkExistProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkExistProfile in interface IProfilesServicestrProfileKey - The profile keyplugin - Plugin
public fr.paris.lutece.util.ReferenceList getProfilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
getProfilesList in interface IProfilesServiceplugin - Plugin
public boolean checkProfileAttributed(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
checkProfileAttributed in interface IProfilesServicestrProfileKey - the profile keyplugin - Plugin
public Profile findProfileByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
findProfileByIdUser in interface IProfilesServicenIdUser - the ID userplugin - Plugin
public java.util.List<fr.paris.lutece.portal.business.right.Right> getRightsListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getRightsListForProfile in interface IProfilesServicestrProfileKey - 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 IProfilesServicestrProfileKey - The profile KeystrIdRight - The Right IDplugin - Plugin
public void addRightForProfile(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
addRightForProfile in interface IProfilesServicestrProfileKey - The profile KeystrIdRight - The Right IDplugin - Plugin
public void removeRightFromProfile(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRightFromProfile in interface IProfilesServicestrProfileKey - The profile KeystrIdRight - The Right IDplugin - Plugin
public void removeRights(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRights in interface IProfilesServicestrProfileKey - The profile keyplugin - Plugin
public java.util.List<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> getWorkgroupsListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getWorkgroupsListForProfile in interface IProfilesServicestrProfileKey - 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 IProfilesServicestrProfileKey - The profile KeystrWorkgroupKey - The Workgroup keyplugin - Plugin
public void addWorkgroupForProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
addWorkgroupForProfile in interface IProfilesServicestrProfileKey - The profile KeystrWorkgroupKey - The WorkgroupKeyplugin - Plugin
public void removeWorkgroupFromProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeWorkgroupFromProfile in interface IProfilesServicestrProfileKey - The profile KeystrWorkgroupKey - The Workgroup keyplugin - Plugin
public void removeWorkgroups(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeWorkgroups in interface IProfilesServicestrProfileKey - The profile keyplugin - Plugin
public java.util.List<fr.paris.lutece.portal.business.rbac.AdminRole> getRolesListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getRolesListForProfile in interface IProfilesServicestrProfileKey - 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 IProfilesServicestrProfileKey - The profile KeystrRoleKey - The Role keyplugin - Plugin
public void addRoleForProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
addRoleForProfile in interface IProfilesServicestrProfileKey - The profile KeystrRoleKey - The RoleKeyplugin - Plugin
public void removeRoleFromProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRoleFromProfile in interface IProfilesServicestrProfileKey - The profile KeystrRoleKey - The role keyplugin - Plugin
public void removeRoles(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeRoles in interface IProfilesServicestrProfileKey - The profile keyplugin - Plugin
public java.util.List<fr.paris.lutece.portal.business.user.AdminUser> getUsersListForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getUsersListForProfile in interface IProfilesServicestrProfileKey - The profile Keyplugin - Plugin
public boolean hasUser(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasUser in interface IProfilesServicestrProfileKey - The profile KeynIdUser - The User IDplugin - Plugin
public void addUserForProfile(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
addUserForProfile in interface IProfilesServicestrProfileKey - The profile KeynIdUser - The User IDplugin - Plugin
public void removeUserFromProfile(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUserFromProfile in interface IProfilesServicenIdUser - The User IDplugin - Plugin
public void removeUsers(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeUsers in interface IProfilesServicestrProfileKey - The profile keyplugin - Plugin
public void removeProfilesFromUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeProfilesFromUser in interface IProfilesServicenIdUser - The User IDplugin - Plugin
public boolean hasProfile(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
hasProfile in interface IProfilesServicenIdUser - the ID userplugin - Plugin
public View getViewForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
getViewForProfile in interface IProfilesServicestrProfileKey - the profile keyplugin - Plugin
public void removeView(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
removeView in interface IProfilesServicestrProfileKey - the profile keyplugin - Plugin
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||