|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.plugins.profiles.business.ProfileHome
public final class ProfileHome
ProfileHome
Method Summary | |
---|---|
static void |
addRightForProfile(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a right for a profile |
static void |
addRoleForProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a role for a profile |
static void |
addUserForProfile(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an user for a profile |
static void |
addWorkgroupForProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a workgroup for a profile |
static boolean |
checkExistProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile already exists or not |
static boolean |
checkProfileAttributed(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the profile is attributed to any user |
static Profile |
create(Profile profile,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Creation of an instance of profile |
static java.util.Collection<Profile> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of profiles objects |
static 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 |
static Profile |
findProfileByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the profile by a given ID user |
static java.util.Collection<Profile> |
findProfilesByFilter(ProfileFilter pFilter,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Find profile by filter |
static fr.paris.lutece.util.ReferenceList |
getProfilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the list of profiles |
static java.util.Collection<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 |
static java.util.Collection<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 |
static java.util.Collection<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 |
static View |
getViewForProfile(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the view associated to the profile |
static java.util.Collection<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 |
static boolean |
hasProfile(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if the given user has a profile or not |
static 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. |
static 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. |
static boolean |
hasUser(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given user. |
static 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. |
static void |
remove(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove the Profile whose identifier is specified in parameter |
static void |
removeProfilesFromUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all profiles associated to an user |
static void |
removeRightFromProfile(java.lang.String strProfileKey,
java.lang.String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a right from a profile |
static void |
removeRights(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all rights from profile |
static void |
removeRoleFromProfile(java.lang.String strProfileKey,
java.lang.String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a role from a profile |
static void |
removeRoles(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all roles from profile |
static void |
removeUserFromProfile(java.lang.String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a user from a profile |
static void |
removeUsers(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all users from profile |
static void |
removeView(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove profile from a view |
static void |
removeWorkgroupFromProfile(java.lang.String strProfileKey,
java.lang.String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a workgroup from a profile |
static void |
removeWorkgroups(java.lang.String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all workgroups from profile |
static Profile |
update(Profile profile,
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 |
Method Detail |
---|
public static Profile create(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
profile
- The instance of the profile which contains the informations to storeplugin
- Plugin
public static Profile update(Profile profile, fr.paris.lutece.portal.service.plugin.Plugin plugin)
profile
- The instance of the profile which contains the new data to storeplugin
- Plugin
public static void remove(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The Profile object to removeplugin
- Pluginpublic static Profile findByPrimaryKey(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The key of the profileplugin
- Plugin
public static java.util.Collection<Profile> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Plugin
public static java.util.Collection<Profile> findProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
pFilter
- the Filterplugin
- Plugin
public static boolean checkExistProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Plugin
public static fr.paris.lutece.util.ReferenceList getProfilesList(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Plugin
public static boolean checkProfileAttributed(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- Plugin
public static Profile findProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- the ID userplugin
- Plugin
public static java.util.Collection<fr.paris.lutece.portal.business.right.Right> getRightsListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasRight(java.lang.String strProfileKey, java.lang.String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Plugin
public static void addRightForProfile(java.lang.String strProfileKey, java.lang.String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic static void removeRightFromProfile(java.lang.String strProfileKey, java.lang.String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic static void removeRights(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginpublic static java.util.Collection<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> getWorkgroupsListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasWorkgroup(java.lang.String strProfileKey, java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Plugin
public static void addWorkgroupForProfile(java.lang.String strProfileKey, java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The WorkgroupKeyplugin
- Pluginpublic static void removeWorkgroupFromProfile(java.lang.String strProfileKey, java.lang.String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Pluginpublic static void removeWorkgroups(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginpublic static java.util.Collection<fr.paris.lutece.portal.business.rbac.AdminRole> getRolesListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasRole(java.lang.String strProfileKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The Role keyplugin
- Plugin
public static void addRoleForProfile(java.lang.String strProfileKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The RoleKeyplugin
- Pluginpublic static void removeRoleFromProfile(java.lang.String strProfileKey, java.lang.String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The role keyplugin
- Pluginpublic static void removeRoles(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginpublic static java.util.Collection<fr.paris.lutece.portal.business.user.AdminUser> getUsersListForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasUser(java.lang.String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Plugin
public static void addUserForProfile(java.lang.String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginpublic static void removeUserFromProfile(java.lang.String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginpublic static void removeUsers(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginpublic static void removeProfilesFromUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- The User IDplugin
- Pluginpublic static boolean hasProfile(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- the ID userplugin
- Plugin
public static View getViewForProfile(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- Plugin
public static void removeView(java.lang.String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- Plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |