|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.identity.um.Common | +--com.sun.identity.um.User
The User
class provides methods to manage user
Method Summary | |
void |
activate()
Activates the user. |
void |
assignAssignableDynamicGroup(java.lang.String assignableDynamicGroupDN)
Assigns a assignable dynamic group to the user. |
void |
assignRole(java.lang.String roleDN)
Assigns a role to the user. |
void |
assignStaticGroup(java.lang.String groupDN)
Assigns a static group to the user. |
void |
deactivate()
Deactivates the user. |
java.util.Set |
getAssignableDynamicGroupDNs()
Gets all the assignable dynamic groups the user is in. |
java.util.Set |
getRoleDNs()
Gets all the roles the user is in. |
java.util.Set |
getStaticGroupDNs()
Gets all the static groups the user is in. |
boolean |
isActivated()
Returns true if the user is activated. |
void |
removeAssignableDynamicGroup(java.lang.String assignableDynamicGroupDN)
Removes a assignable dynamic group that is assigned to the user. |
void |
removeRole(java.lang.String roleDN)
Removes a role that is assigned to the user. |
void |
removeStaticGroup(java.lang.String groupDN)
Removes a static group that is assigned to the user. |
Methods inherited from class com.sun.identity.um.Common |
assignServices, delete, delete, getAssignedServices, getAttributes, getAttributes, getDN, getOrganizationDN, getParentDN, getServiceAttributes, getServiceStatus, isExists, modifyService, removeAttributes, setAttributes, setServiceStatus, store, unassignServices |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public java.util.Set getRoleDNs() throws UMException, SSOException
UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic void assignRole(java.lang.String roleDN) throws UMException, SSOException
roleDN
- The role DN that the user is assigned to.UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic void removeRole(java.lang.String roleDN) throws UMException, SSOException
roleDN
- The role DN that the user is assigned to.UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic java.util.Set getStaticGroupDNs() throws UMException, SSOException
UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic void assignStaticGroup(java.lang.String groupDN) throws UMException, SSOException
groupDN
- The static group DN that the user is assigned to.UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic void removeStaticGroup(java.lang.String groupDN) throws UMException, SSOException
groupDN
- The static group DN that the user is assigned to.UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic java.util.Set getAssignableDynamicGroupDNs() throws UMException, SSOException
UMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validpublic void assignAssignableDynamicGroup(java.lang.String assignableDynamicGroupDN) throws UMException, SSOException
assignableDynamicGroupDN
- The assignable dynamic group DN that the
user is assigned to.UMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validpublic void removeAssignableDynamicGroup(java.lang.String assignableDynamicGroupDN) throws UMException, SSOException
assignableDynamicGroupDN
- The assignable dynamic group DN that
the user is assigned to.UMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer validpublic void activate() throws UMException, SSOException
UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic void deactivate() throws UMException, SSOException
UMException
- if unable to get the rolesSSOException
- if ssotoken is invalidpublic boolean isActivated() throws UMException, SSOException
UMException
- if there is an internal error in the AM StoreSSOException
- if the sign on is no longer valid
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |