|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.security.RemoteAccountImpl
public class RemoteAccountImpl
An object that wraps an Account
object and makes it
RMI-accessible. Normally this is not used directly by the client;
rather it is wrapped on the client side by a ClientAccount
.
Note that Iterator
types returned by Account
methods are iterated and converted to Set
types that are
cached on the client side. This improves performance noticably.
Note that password attribute values are write-only through this interface; you may set them, but you may never retrieve the true value.
Account
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
|
Fields inherited from interface atg.security.AccountTypes |
---|
ANY_ACCOUNT, GROUP_ACCOUNT, LOGIN_ACCOUNT, PRIVILEGE_ACCOUNT |
Method Summary | |
---|---|
void |
addGroup(java.lang.String pNewGroupName)
Makes this account a member of a new group. |
static RemoteAccount |
createProxy(Account pAccount)
Creates a session-based proxy to remotely access an 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 dictionary of all defined attributes and their values from the account. |
java.util.Map |
getDisplayNamesForAttributes()
Returns a mapping of attribute names to display names that can be used in an attribute editor. |
java.util.Set |
getGroups()
Returns a set of of the groups that this account is a member of. |
java.util.Set |
getMembers()
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[] pNewGroups)
Makes this account a member of a set of groups. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Method Detail |
---|
public static RemoteAccount createProxy(Account pAccount) throws java.rmi.RemoteException
java.rmi.RemoteException
public java.lang.String getAccountName()
getAccountName
in interface RemoteAccount
public int getAccountType()
getAccountType
in interface RemoteAccount
AccountTypes
public java.lang.String getAttribute(java.lang.String pAttributeName)
Note that this will not return the correct value for the password attribute, for security reasons.
getAttribute
in interface RemoteAccount
pAttributeName
- The name of the desired attribute.public java.util.Map getAttributes()
Note that this will not return the correct value for the password attribute, for security reasons.
getAttributes
in interface RemoteAccount
public void setAttribute(java.lang.String pAttributeName, java.lang.String pNewValue) throws InvalidAttributeException
setAttribute
in interface RemoteAccount
pAttributeName
- The name of the attribute to change.pNewValue
- The new value to give to the attribute. If this value
is null
, the attribute is removed.
InvalidAttributeException
public void setAttributes(java.util.Map pNewAttributes) throws InvalidAttributeException
setAttributes
in interface RemoteAccount
pNewAttributes
- The set of attributes to change, and their
associated values.
InvalidAttributeException
public java.util.Set getGroups()
getGroups
in interface RemoteAccount
public void addGroup(java.lang.String pNewGroupName) throws NoSuchAccountException, PermissionDeniedException
addGroup
in interface RemoteAccount
pNewGroupName
- The name of the group to add membership to.
NoSuchAccountException
- Indicates that the specified group
does not exist.
PermissionDeniedException
public void setGroups(java.lang.String[] pNewGroups) throws NoSuchAccountException, PermissionDeniedException
setGroups
in interface RemoteAccount
pNewGroups
- An array of names of groups to remove membership from.
NoSuchAccountException
- Indicates that a specified group
does not exist.
PermissionDeniedException
public void removeGroup(java.lang.String pGroupName) throws NoSuchAccountException, PermissionDeniedException
removeGroup
in interface RemoteAccount
pGroupName
- The name of the group to remove membership from.
NoSuchAccountException
- Indicates that the account is not
a member of the group.
PermissionDeniedException
public java.util.Set getMembers()
getMembers
in interface RemoteAccount
public java.util.Map getDisplayNamesForAttributes()
getDisplayNamesForAttributes
in interface RemoteAccount
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |