public class RepositoryAccount extends java.lang.Object implements atg.security.I18nAccount, AccountTypes
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION |
ANY_ACCOUNT, GROUP_ACCOUNT, LOGIN_ACCOUNT, PRIVILEGE_ACCOUNT| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(java.lang.String pNewGroupName)
Makes this account a member of a new group.
|
AccountManager |
getAccountManager()
Returns the account manager associated with this account.
|
java.lang.String |
getAccountName()
Returns the name of the account.
|
int |
getAccountType()
Returns the account type.
|
java.lang.String |
getAttribute(java.lang.String pAttributeName)
Retrieves the string value of a given attribute.
|
java.util.Map |
getAttributes()
Retrieves a mapping of all defined attributes and their values from
the account.
|
java.lang.String |
getDisplayNameForAttribute(java.lang.String pAttributeName)
Returns the display name that should be associated with an attribute.
|
Persona |
getPersona()
Creates a persona object for the account.
|
java.util.Iterator |
listGroups()
Returns an enumeration of the groups that this account is a member of.
|
java.util.Iterator |
listMembers()
If this Account is a group, return the names of the members of the group.
|
void |
removeGroup(java.lang.String pGroupName)
Removes a group from the set of groups that this account is a member
of.
|
void |
setAttribute(java.lang.String pAttributeName,
java.lang.String pNewValue)
Changes the value of a given attribute.
|
void |
setAttributes(java.util.Map pNewAttributes)
Changes the values of a set of account attributes.
|
void |
setGroups(java.lang.String[] newGroups)
Makes this account a member of a set of groups.
|
public static final java.lang.String CLASS_VERSION
public Persona getPersona()
public AccountManager getAccountManager()
getAccountManager in interface Accountpublic java.lang.String getAccountName()
getAccountName in interface Accountpublic int getAccountType()
getAccountType in interface AccountAccountTypespublic java.lang.String getAttribute(java.lang.String pAttributeName)
getAttribute in interface AccountattributeName - The name of the desired attribute.public java.util.Map getAttributes()
getAttributes in interface Accountpublic void setAttribute(java.lang.String pAttributeName,
java.lang.String pNewValue)
throws InvalidAttributeException
setAttribute in interface AccountattributeName - The name of the attribute to change.newValue - The new value to give to the attribute. If this value
is null, the attribute is removed.InvalidAttributeExceptionpublic void setAttributes(java.util.Map pNewAttributes)
throws InvalidAttributeException
setAttributes in interface AccountnewAttributes - The set of attributes to change, and their
associated values.InvalidAttributeExceptionpublic java.util.Iterator listGroups()
listGroups in interface Accountpublic void addGroup(java.lang.String pNewGroupName)
throws NoSuchAccountException,
PermissionDeniedException
addGroup in interface AccountnewGroupName - The name of the group to add membership to.NoSuchAccountException - Indicates that the specified group
does not exist.PermissionDeniedExceptionpublic void setGroups(java.lang.String[] newGroups)
throws NoSuchAccountException,
PermissionDeniedException
setGroups in interface AccountnewGroups - An array of names of groups to remove membership from.NoSuchAccountException - Indicates that a specified group
does not exist.PermissionDeniedExceptionpublic void removeGroup(java.lang.String pGroupName)
throws NoSuchAccountException,
PermissionDeniedException
removeGroup in interface AccountgroupName - The name of the group to remove membership from.NoSuchAccountException - Indicates that the account is not
a member of the group.PermissionDeniedExceptionpublic java.util.Iterator listMembers()
listMembers in interface Accountpublic java.lang.String getDisplayNameForAttribute(java.lang.String pAttributeName)
getDisplayNameForAttribute in interface atg.security.I18nAccount