|
||||||||||
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(String strProfileKey,
String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a right for a profile |
static void |
addRoleForProfile(String strProfileKey,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a role for a profile |
static void |
addUserForProfile(String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add an user for a profile |
static void |
addWorkgroupForProfile(String strProfileKey,
String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Add a workgroup for a profile |
static boolean |
checkExistProfile(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile already exists or not |
static boolean |
checkProfileAttributed(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 List<Profile> |
findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns a collection of profiles objects |
static Profile |
findByPrimaryKey(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Returns an instance of a profile whose identifier is specified in parameter |
static List<Profile> |
findProfileByIdUser(int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Load the profile by a given ID user |
static List<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 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 |
static 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 |
static 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 |
static View |
getViewForProfile(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Get the view associated to the profile |
static 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 |
static 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 |
static boolean |
hasRight(String strProfileKey,
String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given right. |
static boolean |
hasRole(String strProfileKey,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given role. |
static boolean |
hasUser(String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given user. |
static boolean |
hasWorkgroup(String strProfileKey,
String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Check if a profile has the given workgroup. |
static void |
remove(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(String strProfileKey,
String strIdRight,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a right from a profile |
static void |
removeRights(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all rights from profile |
static void |
removeRoleFromProfile(String strProfileKey,
String strRoleKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a role from a profile |
static void |
removeRoles(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all roles from profile |
static void |
removeUserFromProfile(String strProfileKey,
int nIdUser,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a user from a profile |
static void |
removeUsers(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove all users from profile |
static void |
removeView(String strProfileKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove profile from a view |
static void |
removeWorkgroupFromProfile(String strProfileKey,
String strWorkgroupKey,
fr.paris.lutece.portal.service.plugin.Plugin plugin)
Remove a workgroup from a profile |
static void |
removeWorkgroups(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(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The Profile object to removeplugin
- Pluginpublic static Profile findByPrimaryKey(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The key of the profileplugin
- Plugin
public static List<Profile> findAll(fr.paris.lutece.portal.service.plugin.Plugin plugin)
plugin
- Plugin
public static List<Profile> findProfilesByFilter(ProfileFilter pFilter, fr.paris.lutece.portal.service.plugin.Plugin plugin)
pFilter
- the Filterplugin
- Plugin
public static boolean checkExistProfile(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(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- Plugin
public static List<Profile> findProfileByIdUser(int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
nIdUser
- the ID userplugin
- Plugin
public static List<fr.paris.lutece.portal.business.right.Right> getRightsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasRight(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Plugin
public static void addRightForProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic static void removeRightFromProfile(String strProfileKey, String strIdRight, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrIdRight
- The Right IDplugin
- Pluginpublic static void removeRights(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginpublic static List<fr.paris.lutece.portal.business.workgroup.AdminWorkgroup> getWorkgroupsListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasWorkgroup(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Plugin
public static void addWorkgroupForProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The WorkgroupKeyplugin
- Pluginpublic static void removeWorkgroupFromProfile(String strProfileKey, String strWorkgroupKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrWorkgroupKey
- The Workgroup keyplugin
- Pluginpublic static void removeWorkgroups(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginpublic static List<fr.paris.lutece.portal.business.rbac.AdminRole> getRolesListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasRole(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The Role keyplugin
- Plugin
public static void addRoleForProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The RoleKeyplugin
- Pluginpublic static void removeRoleFromProfile(String strProfileKey, String strRoleKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeystrRoleKey
- The role keyplugin
- Pluginpublic static void removeRoles(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile keyplugin
- Pluginpublic static List<fr.paris.lutece.portal.business.user.AdminUser> getUsersListForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile Keyplugin
- Plugin
public static boolean hasUser(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Plugin
public static void addUserForProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The profile KeynIdUser
- The User IDplugin
- Pluginpublic static void removeUserFromProfile(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The key of the profilenIdUser
- The User IDplugin
- Pluginpublic static void removeUsers(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(String strProfileKey, int nIdUser, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- The key of the profilenIdUser
- the ID userplugin
- Plugin
public static View getViewForProfile(String strProfileKey, fr.paris.lutece.portal.service.plugin.Plugin plugin)
strProfileKey
- the profile keyplugin
- Plugin
public static void removeView(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 |