Control
Control to access and modify the user profile. The methods all use the ProfileWrapper as the object for which the profile will be associated. The ProfileWrapper is available in every Session, regardless of whether the user is registered. To get the ProfileWrapper from the request, use PropertyControl.getProfileFromRequest().
This control is not compatible with the deprecated UserManagerControl and
GroupManagerControl. Instead, use this control with the UserProviderControl and GroupProviderControl.
Security requirements:
Are determined by the settings on the AtnSecurityProviderMBean.
Related Topics
Control
, Control
, Serializable
Method Summary |
public void |
|
public void |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public |
|
public boolean |
|
public void |
|
public void |
|
public boolean |
|
Method Detail |
public void cleanupMisconfiguredGroups()Removes misconfigured groups. Caller must be in the role of PortalSystemAdminstrator
throwsP13nControlException
P13nControlException
public void cleanupMisconfiguredUsers()Removes misconfigured users. Caller must be in the role of PortalSystemAdminstrator
throwsP13nControlException
P13nControlException
publicCreate a new group profileProfileWrapper
createGroupProfile(String
groupname)
throwsP13nControlException
P13nControlException
publicCreate a new user profileProfileWrapper
createUserProfile(String
username)
throwsP13nControlException
P13nControlException
publicAccess the ProfileWrapper for the given groupname, if the group profile existsProfileWrapper
getGroupProfile(String
groupname)
throwsP13nControlException
P13nControlException
publicReturns the GroupProfileManager EJB, a stateless session bean used to access profile values. It coordinates successor searches and mapping properties to different datasources.ProfileManager
getGroupProfileManager()
throwsP13nControlException
P13nControlException
publicReturns just the groups found in the database. Caller must be in the role of PortalSystemAdminstratorString
[] getGroupProfileNames()
throwsP13nControlException
P13nControlException
publicReturns the group names that have profiles, but do not exist in the realm (no group created). Caller must be in the role of PortalSystemAdminstratorString
[] getMisconfiguredGroups()
throwsP13nControlException
P13nControlException
publicReturns the usernames that have profiles, but do not exist in the realm as users. Caller must be in the role of PortalSystemAdminstratorString
[] getMisconfiguredUsers()
throwsP13nControlException
P13nControlException
publicGet the profile wrapper for this user, using the group profile as the successor.ProfileWrapper
getProfile(String
username,String
groupname)
throwsP13nControlException
This method assumes the profile already exists for the user and group. Neither the username nor groupname can be null.
P13nControlException
publicGet the existing ProfileWrapper from the request, or return null if none exists.ProfileWrapper
getProfileFromRequest(HttpServletRequest
request)
publicAccess the profile wrapper for this user, if the user profile exists. No successor will be assumed. Use getProfile(username, groupname) if you want the user profile to use the group profile as its successor.ProfileWrapper
getUserProfile(String
username)
throwsP13nControlException
P13nControlException
publicReturns the UserProfileManager EJB, a stateless session bean used to access profile values. It coordinates successor searches and mapping properties to different datasources.ProfileManager
getUserProfileManager()
throwsP13nControlException
P13nControlException
publicReturns just the users found in the database. Caller must be in the role of PortalSystemAdminstratorString
[] getUserProfileNames()
throwsP13nControlException
P13nControlException
public boolean groupProfileExists(Determine whether the group profile existsString
groupname)
throwsP13nControlException
P13nControlException
public void removeGroupProfile(Remove this group's profile. If profile does not exist, this method returns with no exceptions. Caller must be in the role of PortalSystemAdminstratorString
groupname)
throwsP13nControlException
P13nControlException
public void removeUserProfile(Remove this user's profile. If profile does not exist, this method returns with no exceptions. Caller must be in the role of PortalSystemAdminstratorString
username)
throwsP13nControlException
P13nControlException
public boolean userProfileExists(Determine whether the user profile existsString
username)
throwsP13nControlException
P13nControlException