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 profileProfileWrappercreateGroupProfile(Stringgroupname)
throwsP13nControlException
P13nControlException
publicCreate a new user profileProfileWrappercreateUserProfile(Stringusername)
throwsP13nControlException
P13nControlException
publicAccess the ProfileWrapper for the given groupname, if the group profile existsProfileWrappergetGroupProfile(Stringgroupname)
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.ProfileManagergetGroupProfileManager()
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.ProfileWrappergetProfile(Stringusername,Stringgroupname)
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.ProfileWrappergetProfileFromRequest(HttpServletRequestrequest)
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.ProfileWrappergetUserProfile(Stringusername)
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.ProfileManagergetUserProfileManager()
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 existsStringgroupname)
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 PortalSystemAdminstratorStringgroupname)
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 PortalSystemAdminstratorStringusername)
throwsP13nControlException
P13nControlException
public boolean userProfileExists(Determine whether the user profile existsStringusername)
throwsP13nControlException
P13nControlException