|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.object.PersistentObject
com.waveset.object.Principal
com.waveset.object.WSUser
The memory representation for a Waveset user account.
Beyond a set of "special" attributes like id, password, and email address, the user may also have set of arbitrary attributes.
Each user normally has a role which defines a set of resources as well as security options to apply to this user. The role may be changed as time goes on, so we also must maintain a list of the resource accounts that are currently provisioned.
Nested Class Summary | |
static class |
WSUser.Delegate
A class used to hold the set of capabilities and that have been delegated to other users by this user (e.g. |
Nested classes inherited from class com.waveset.object.PersistentObject |
PersistentObject.Comparator, PersistentObject.InitialInstance |
Field Summary | |
static java.lang.String |
ALL_INTERFACES
Value of the loginInterface argument indicating the "All Interfaces" value. |
static java.lang.String |
code_id
|
static java.lang.String |
CORRELATION_KEY
|
static java.lang.String |
PASSWORD_EXPIRATION
|
static java.lang.String |
POLICIES
|
static java.lang.String |
ROLE
|
static java.lang.String |
ROLES
|
Fields inherited from class com.waveset.object.Principal |
_adminGroupRefs, _adminGroups, _adminGroupsRuleRef, _adminRoleRefs, _controlledObjectGroupRefs, _controlledObjectGroups, _controlledObjectGroupsRuleRef, _permissions, _userFormRef, _viewUserFormRef, LAST_LOGIN_LOCALE_PROP, LOCALE_PROP |
Fields inherited from class com.waveset.object.PersistentObject |
_trace, trace |
Constructor Summary | |
WSUser()
Create an empty user object. |
|
WSUser(Administrator admin)
Note that this constructor is to be used strictly for migration/conversion of the old Administrator Type to Users. |
|
WSUser(org.w3c.dom.Element e)
Create a user object by parsing its DOM representation. |
|
WSUser(java.lang.String xml)
Create a user object by parsing its XML representation. |
|
WSUser(java.lang.String name,
java.lang.String noop)
|
|
WSUser(WSUser user)
Create a basic Waveset User from an existing Waveset User. |
Method Summary | |
void |
addAuditPolicyRef(ObjectRef ref)
|
void |
addPasswordToPasswordHistory(byte[] newPassword,
Policy pwdpol)
Add to the new password to the top of the list of previous passwords |
void |
addPasswordToPasswordHistory(byte[] newPassword,
java.lang.String enc,
Policy pwdpol)
|
void |
addPolicyRef(ObjectRef ref)
|
void |
addPrivateService(ObjectRef ref)
Add a private service to the list. |
void |
addPrivateService(Service s)
Add a private service to the list. |
void |
addPrivateServices(java.util.List src)
Add a list of private services. |
void |
addResourceIdentity(ResourceIdentity rid)
Add information about a resource identity. |
void |
addResourceInfo(ResourceInfo info)
Add information about a resource account. |
void |
addRole(ObjectRef ref)
Set the role reference. |
void |
addRole(Role role)
Set the role. |
void |
addRoleRef(ObjectRef ref)
Set the role reference. |
protected void |
addSubclassAttributes(java.lang.StringBuffer buf)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
protected void |
addSubclassElements(java.lang.StringBuffer buf)
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). |
void |
applyAssignmentExclusions(java.util.Collection assignments)
|
static void |
applyAssignmentExclusions(java.util.Collection assignments,
java.util.Collection exclusions)
Static utility method to apply an exclusion list. |
void |
applyExclusions(java.util.Collection resources)
|
static void |
applyExclusions(java.util.Collection resources,
java.util.Collection exclusions)
|
java.util.List |
applyExclusions(java.util.List resources)
Given a flattened list of Resource objects such as that returned by Service.getFlatResources, return a new list filtered to remove any Resources that are on this user's exclusion list. |
static java.util.List |
applyExclusions(java.util.List resources,
java.util.List exclusions)
Static utility method to apply an exclusion list. |
void |
checkManagerAttribute(WSUser changedUser)
|
void |
clearAnswers()
Remove all answers from this user. |
void |
clearAnswers(java.lang.String loginInterface)
Remove all answers for the specified login interface from this user. |
void |
clearResourceIdentities()
Remove all the resource identity objects from the user. |
void |
clearResourceInfo()
Remove all the resource info objects from the user. |
void |
clearWSAttributes()
|
void |
convertAdminInfo(Administrator admin,
java.lang.String option)
|
int |
countProvisionedAccounts()
|
void |
dumpSummary(java.lang.String file)
|
void |
expirePassword()
Sets the password expiration date to yesterday's date to force the next check to see if the password is expired to return true |
void |
filterPrivateServices(Type type)
Filter the service list based on type. |
void |
forceProvisioned(boolean on)
|
void |
fromMap(java.util.Map map,
boolean checkRequiredAttributes)
Assemble a user object from a map of name value pairs. |
boolean |
generateTemporaryIds()
Walk over the ResourceInfo list looking for those that do not have an account id and make sure they have a temporary id. |
java.lang.String |
getAccountId()
Get the account id. |
java.lang.String |
getAccountId(Resource r)
|
java.util.Set |
getAllPrivateResourceAssignments()
|
java.util.List |
getAllPrivateResources()
Get a flat list of resolved resources. |
Answer |
getAnswer(java.lang.String id)
Get the answer object with a given id. |
Answer[] |
getAnswers()
Get the array of authentication answer objects assigned to this user. |
Answer[] |
getAnswers(java.lang.String loginInterface)
|
WSUser.Delegate |
getApproverDelegate()
|
Resource |
getAssignedResource(java.lang.String resNameOrId)
|
java.util.List |
getAssignedResourceList()
Return a flat list of Resource objects for all resources assigned directly or indirectly to this user. |
Resource[] |
getAssignedResources()
Return a flat list of Resource objects assigned to this user. |
java.util.List |
getAssignmentList()
Return a flat list of Resource objects plus any qualifiers for all qualified resources assigned directly or indirectly to this user. |
java.lang.String |
getAttribute(java.lang.String attrId)
Get the value of an account attribute as a string. |
protected WSAttribute |
getAttributeValues(java.lang.String attrName)
|
java.util.List |
getAuditPolicyRefs()
|
java.util.ArrayList |
getAuthReferences()
Return the list of references that should be access checked when changed. |
java.lang.String |
getCorrelationKey()
Get the correlation key. |
java.util.List |
getCurrentServiceRefs()
|
java.util.List |
getDelegateHistory()
|
java.util.List |
getDelegates()
|
protected static int |
getDisabledLevel(WSUser user)
|
java.lang.String |
getEmail()
Get the email address of this user. |
java.util.List |
getEncryptedValues()
|
java.util.List |
getExclusionRefs()
Get the list of resource exclusions. |
java.util.List |
getExclusions()
Get a resolved list of resource exclusions. |
java.util.List |
getExpandedAdminGroupRefs()
|
java.util.List |
getExpandedControlledObjectGroupRefs()
|
boolean |
getExternal()
|
int |
getFailedPasswordLoginAttemptsCount()
|
int |
getFailedQuestionLoginAttemptsCount()
|
WSUser |
getForwardAdmin()
|
ObjectRef |
getForwardAdminRef()
|
WSUser |
getIdmManager()
|
java.lang.String |
getIdmManagerId()
|
java.lang.String |
getIdmManagerName()
|
ObjectRef |
getIdmManagerRef()
|
static Attribute |
getInbuiltAttr(java.lang.String name)
|
static Attribute[] |
getInbuiltAttrs()
|
Keychain |
getKeychain()
Get the SSO keychain. |
java.util.Date |
getLastAuditorScan()
|
long |
getLastPasswordUpdate()
|
java.util.Date |
getLockExpiry()
Get the lock expiration date. |
EncryptedData |
getPassword()
Get the user's password. |
java.util.Date |
getPasswordExpiry()
Get the password expiration date. |
java.util.Date |
getPasswordExpiryWarning()
Get the password expiration warning date. |
java.util.List |
getPasswordHistory()
Get the current list of stored previous passwords |
java.util.List |
getPolicyRefs()
|
java.util.List |
getPrivateApplicationRefs()
Get the list of private application references. |
java.util.List |
getPrivateApplications()
Get a resolved list of private Applications. |
java.util.List |
getPrivateAuditPolicies()
|
java.util.List |
getPrivatePolicies()
|
java.util.List |
getPrivateResourceAssignmentRefs()
|
java.util.List |
getPrivateResourceAssignments()
|
java.util.ArrayList |
getPrivateResourceRefs()
Get the list of private resource references. |
java.util.List |
getPrivateResources()
Get a resolved list of private Resources. |
java.util.ArrayList |
getPrivateServiceRefs()
Get the list of private service references. |
java.util.List |
getPrivateServices()
Get a resolved list of private services. |
java.util.ArrayList |
getReferences()
Return the list of references within this object. |
java.util.List |
getResetHistory()
Get the password reset history. |
ResourceIdentity[] |
getResourceIdentities()
Return the array of resource identity information. |
ResourceIdentity |
getResourceIdentity(Resource res)
Find a resource identity given a Resource object. |
ResourceIdentity |
getResourceIdentity(java.lang.String name)
Find a resource identity given a name or ID (usually a name). |
java.util.List |
getResourceIds(java.util.List refs)
Given a list of references to Resources, normalize it into a list of repository ids or names. |
ResourceInfo[] |
getResourceInfo()
Return the array of resource account information. |
ResourceInfo |
getResourceInfo(Resource res)
Return the information about a specific resource account associated with this user. |
ResourceInfo |
getResourceInfo(ResourceInfo src)
Look for a ResourceInfo on this user whose identity matches that of the supplied ResourceInfo object. |
ResourceInfo |
getResourceInfo(Resource resource,
java.lang.String accountId)
|
ResourceInfo |
getResourceInfo(java.lang.String resName)
Return the information about a specific resource account associated with this user. |
ResourceInfo |
getResourceInfo(java.lang.String resname,
java.lang.String accountId)
Look for a ResourceInfo with the given resource name and id. |
java.util.List |
getResourceInfos(Resource res)
Return a list of ResourceInfo objects associated with the given resource. |
java.util.List |
getResourceInfos(java.lang.String resName)
Return a list of ResourceInfo objects associated with a resource with the given name. |
java.util.List |
getRoleAttributeRefs()
Get all services associated with the user, then get their role attributes. |
java.util.List |
getRoleIds()
Return a List of String ids of roles assigned to this user. |
java.util.List |
getRoleNames()
Return a List of String names of roles assigned to this user. |
java.util.List |
getRoleRefs()
Get the role reference. |
Resource[] |
getRoleResources()
Return an array of all resources assigned through roles to this user. |
java.util.List |
getRoles()
Resolve and return the role object. |
java.util.List |
getRoleServiceRefs()
Return a List of ObjectRefs to all services assigned through roles to this user. |
WSAttributes |
getSummaryAttributes()
|
static Type[] |
getSummaryAttributeTypes()
Types resolved by resolveSummaryAttributes |
Answer[] |
getSuppliedQuestionAnswers()
Utility method to return Answers which have a suppliedQuestion set. |
Answer[] |
getSuppliedQuestionAnswers(java.lang.String loginInterface)
Utility method to return just the answers to user supplied questions for the specified login interface. |
Type |
getType()
Returns the associated Type object. |
WSAttribute |
getWSAttribute(java.lang.String attrId)
Get an account attribute. |
WSAttributes |
getWSAttributes()
Get the collection of all account attributes for this user. |
boolean |
hasAssignedResource(Resource r)
|
static boolean |
hasEncryptedData()
|
boolean |
isDisabled()
Test the account disabled flag. |
boolean |
isExternal()
Test the external account flag. |
static boolean |
isInbuiltAttribute(java.lang.String name)
Returns true if this is the name of one of the built-in Waveset attributes that all user accounts must have. |
boolean |
isLocked()
|
boolean |
isLockExpired()
|
boolean |
isLoggedIn(Subject subject)
|
boolean |
isLoggedInToApp(java.lang.String appName)
|
boolean |
isNullAccountId()
|
boolean |
isPasswordChanged()
Test the password changed flag. |
boolean |
isPasswordExpired()
|
boolean |
isQuestionLocked()
|
java.util.List |
listQueryableAttributes()
|
java.util.List |
listQueryableReferenceAttributes()
|
java.util.List |
listSummaryAttributes()
Returns the complete list of defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each). |
void |
normalizeAssignments(java.util.List assigned)
Normalize the ResourceInfo list given an existing assignment list. |
boolean |
normalizeResourceInfos()
Normalize the resource info list based on assignments currently stored in the user. |
void |
normalizeResourceInfos(java.util.List assigned)
Deprecated. in 6.0SP1, use normalizeResourceInfos() instead. More than just the list of assigned resources is required to normalize. |
protected void |
parseSubclassAttributes(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). |
protected void |
parseSubclassElements(org.w3c.dom.Element e)
Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer). |
void |
prepareForSerialization()
We overload this to flesh out the ResourceInfo list according to our current assignments. |
WSAttribute |
putAttribute(WSAttribute attr)
Set an account attribute, specifying through a WSAttribute object. |
void |
questionUnlock()
|
protected void |
reEncryptSubclassAttributes()
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer). |
Answer |
removeAnswer(java.lang.String id)
Remove one answer from the user, given its question id. |
WSAttribute |
removeAttribute(java.lang.String attrId)
|
boolean |
removePrivateService(ObjectRef ref)
Remove any private service reference that matches the specified service reference. |
boolean |
removePrivateService(Service service)
Remove any private service reference that matches the specified service. |
void |
removeResourceIdentity(ResourceIdentity rid)
Remove the information for one resource. |
void |
removeResourceInfo(ResourceInfo info)
Remove the information for one resource. |
void |
removeResourceInfo(java.lang.String id)
Remove the information for one resource. |
protected void |
resolveObjectReference(ObjectRef ref,
PersistentObject owner,
ObjectCache cache)
|
static void |
resolveSummaryAttributes(ObjectCache cache,
WSAttributes attrs)
Walk the summary attributes, translating the embedded IDs to names. |
void |
setAccountId(java.lang.String s)
Sets the account id. |
void |
setAnswer(java.lang.String id,
EncryptedData answer,
java.lang.String loginInterface)
Add or modify an answer. |
void |
setAnswer(java.lang.String id,
java.lang.String answer,
java.lang.String loginInterface)
Add or modify an answer. |
void |
setAnswers(Answer[] answers)
|
void |
setApproverDelegate(WSUser.Delegate approverDelegate)
|
void |
setAttribute(java.lang.String attrId,
java.lang.String value)
Sets an abstract attribute. |
void |
setAuditPolicyRef(ObjectRef ref)
|
void |
setAuditPolicyRefs(java.util.List auditPolicies)
|
void |
setCorrelationKey(java.lang.String key)
Set the correlation key. |
void |
setDelegateHistory(java.util.List delegateHistory)
|
void |
setDelegates(java.util.List delegates)
|
void |
setDisabled(boolean b)
Set the account disabled flag. |
void |
setEmail(java.lang.String s)
Set the email address of this user. |
void |
setExclusions(java.util.List refs)
Set the list of resource exclusions. |
protected void |
setExpandedAdminGroupRefs(java.util.List expandedAdminGroupRefs)
|
protected void |
setExpandedControlledObjectGroupRefs(java.util.List expandedControlledObjectGroupRefs)
|
void |
setExternal(boolean b)
Set the external account flag. |
void |
setFailedPasswordLoginAttemptsCount(int failedPasswordLoginAttemptsCount)
|
void |
setFailedQuestionLoginAttemptsCount(int failedQuestionLoginAttemptsCount)
|
void |
setForwardAdmin(ObjectRef ref)
|
void |
setForwardAdmin(WSUser admin)
|
void |
setIdmManager(java.lang.Object idmManager)
|
static void |
setInbuiltAttrs(Attribute[] userAttrs)
|
void |
setKeychain(Keychain keys)
Set the SSO keycain. |
void |
setLastAuditorScan(java.util.Date lastScan)
|
void |
setLastPasswordChange(long millis)
|
void |
setLocked(boolean b)
|
void |
setLockExpiry(java.util.Date d)
Set the lock expiration date. |
void |
setLoggedIn(Subject subject,
boolean loggedIn)
|
void |
setNullAccountId(boolean b)
|
void |
setPassword(EncryptedData p)
Set the user's password. |
void |
setPassword(java.lang.String p)
Set the user's password. |
void |
setPasswordChanged(boolean passwordChanged)
|
void |
setPasswordExpiry(java.util.Date d)
Set the password expiration date. |
void |
setPasswordExpiryWarning(java.util.Date d)
Set the password expiration warning date. |
void |
setPolicyRef(ObjectRef ref)
|
void |
setPolicyRefs(java.util.List policies)
|
void |
setPrivateServiceRefs(java.util.List refs)
Set the list of private service references. |
void |
setQuestionLocked(boolean b)
|
void |
setResetHistory(java.util.List hist)
Sets the password reset history. |
void |
setResourceInfo(ResourceInfo[] infos)
Assigned the full ResourceInfo array. |
void |
setRoleRef(ObjectRef ref)
|
void |
setRoleRefs(java.util.List roles)
|
void |
setRoles(java.util.List roles)
set the roles. |
boolean |
setWSAttribute(java.lang.String attrId,
java.lang.Object value)
Sets an account attribute of supported types. |
WSAttribute |
setWSAttribute(WSAttribute attr)
Set an account attribute. |
void |
setWSAttributes(WSAttributes attrs)
Sets all of the account attributes for this user. |
void |
terminateLoggedIn(java.lang.String appName)
|
java.util.HashMap |
toHashMap(boolean convertAttrValuesToStrings)
Converts a WSUser object into a Map of name/value pairs. |
java.lang.String |
toIdentityString()
|
java.lang.String |
toVerboseString()
|
java.lang.String |
toVerboseString(java.lang.String indent)
|
void |
unlock()
|
void |
unlockAll()
|
void |
visit(Visitor v)
Visitor interface. |
static AttributeCondition[] |
withAnyListedResource(java.util.List resoIdList)
|
static AttributeCondition[] |
withResource(Resource r)
|
static WSUser |
xcloneObject(WSUser src)
Make a clone of the object, doing a deep copy where needed to prune ObjectRefs and protect Lists. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
public static final java.lang.String ROLE
public static final java.lang.String ROLES
public static final java.lang.String POLICIES
public static final java.lang.String CORRELATION_KEY
public static final java.lang.String PASSWORD_EXPIRATION
public static final java.lang.String ALL_INTERFACES
Constructor Detail |
public WSUser()
public WSUser(java.lang.String xml) throws WavesetException
public WSUser(org.w3c.dom.Element e) throws WavesetException
public WSUser(WSUser user) throws WavesetException
public WSUser(java.lang.String name, java.lang.String noop)
public WSUser(Administrator admin) throws WavesetException
Method Detail |
public void visit(Visitor v) throws WavesetException
visit
in class PersistentObject
WavesetException
public int countProvisionedAccounts()
public static WSUser xcloneObject(WSUser src) throws WavesetException
WavesetException
public void convertAdminInfo(Administrator admin, java.lang.String option) throws WavesetException
WavesetException
public Type getType()
getType
in class PersistentObject
public java.util.ArrayList getReferences()
getReferences
in class Principal
public java.util.ArrayList getAuthReferences()
getAuthReferences
in class PersistentObject
public void setPolicyRefs(java.util.List policies)
public void setPolicyRef(ObjectRef ref)
public void addPolicyRef(ObjectRef ref)
public java.util.List getPolicyRefs()
public java.util.List getPrivatePolicies() throws WavesetException
WavesetException
public java.util.Date getPasswordExpiry()
public void setPasswordExpiry(java.util.Date d)
public void expirePassword()
public boolean isPasswordExpired()
public java.util.Date getPasswordExpiryWarning()
public void setPasswordExpiryWarning(java.util.Date d)
public java.util.Date getLockExpiry()
public void setLockExpiry(java.util.Date d)
public boolean isLockExpired()
public java.lang.String getCorrelationKey()
public void setCorrelationKey(java.lang.String key)
public boolean isExternal()
public void setExternal(boolean b)
Setting this to true indicates that the ResourceInfo list attached to this user is to be treated as the immutable definition of resource accounts. Reprovisioning operations will obey this list, regardless of what role the user is assigned to.
public boolean getExternal()
public java.util.List getResetHistory()
This is a list of Date objects representing the times at which the password was reset. This is not necessarily the complete list, it may be cleaned periodically by the provisioning engine. Note that the returned list is mutable, you do not need to call setResetHistory to record list modifications.
public void setResetHistory(java.util.List hist)
The provisioning engine will want to add elements to the history list, and may age selected entries out of the list.
public Keychain getKeychain()
public void setKeychain(Keychain keys)
public boolean isDisabled()
public void setDisabled(boolean b)
public boolean isLocked()
public void setLocked(boolean b)
public boolean isQuestionLocked()
public void setQuestionLocked(boolean b)
public void unlock()
public void questionUnlock()
public void unlockAll()
public int getFailedPasswordLoginAttemptsCount()
public void setFailedPasswordLoginAttemptsCount(int failedPasswordLoginAttemptsCount)
public int getFailedQuestionLoginAttemptsCount()
public void setFailedQuestionLoginAttemptsCount(int failedQuestionLoginAttemptsCount)
public boolean isLoggedIn(Subject subject)
public boolean isLoggedInToApp(java.lang.String appName)
public void setLoggedIn(Subject subject, boolean loggedIn)
public void terminateLoggedIn(java.lang.String appName)
public void setNullAccountId(boolean b)
public boolean isNullAccountId()
public long getLastPasswordUpdate()
public void setLastPasswordChange(long millis)
public java.util.List getRoleRefs()
public void addRoleRef(ObjectRef ref)
public void addRole(ObjectRef ref)
public java.util.List getRoles() throws WavesetException
WavesetException
public void addRole(Role role)
public void setRoles(java.util.List roles)
roles
- - List of ObjectRefs to Role objectspublic void setRoleRefs(java.util.List roles)
public void setRoleRef(ObjectRef ref)
public Resource[] getRoleResources() throws WavesetException
WavesetException
public java.util.List getRoleServiceRefs() throws WavesetException
WavesetException
public java.util.List getRoleIds() throws WavesetException
WavesetException
public java.util.List getRoleNames() throws WavesetException
WavesetException
public java.util.ArrayList getPrivateServiceRefs()
public void setPrivateServiceRefs(java.util.List refs)
public java.util.List getPrivateApplicationRefs()
public java.util.ArrayList getPrivateResourceRefs()
public java.util.List getPrivateResourceAssignmentRefs()
public java.util.List getPrivateServices() throws WavesetException
WavesetException
public java.util.List getPrivateResources() throws WavesetException
WavesetException
public java.util.List getPrivateResourceAssignments() throws WavesetException
WavesetException
public java.util.List getPrivateApplications() throws WavesetException
WavesetException
public java.util.List getAllPrivateResources() throws WavesetException
WavesetException
public java.util.Set getAllPrivateResourceAssignments() throws WavesetException
WavesetException
public void addPrivateService(ObjectRef ref)
public void addPrivateService(Service s)
public void addPrivateServices(java.util.List src)
public boolean removePrivateService(ObjectRef ref)
public boolean removePrivateService(Service service)
public void filterPrivateServices(Type type)
public void setExclusions(java.util.List refs)
public java.util.List getExclusionRefs()
public java.util.List getExclusions() throws WavesetException
WavesetException
public java.util.List applyExclusions(java.util.List resources)
public void applyExclusions(java.util.Collection resources)
public void applyAssignmentExclusions(java.util.Collection assignments)
public static java.util.List applyExclusions(java.util.List resources, java.util.List exclusions)
public static void applyExclusions(java.util.Collection resources, java.util.Collection exclusions)
public static void applyAssignmentExclusions(java.util.Collection assignments, java.util.Collection exclusions)
public java.util.List getAssignedResourceList() throws WavesetException
WavesetException
public java.util.List getAssignmentList() throws WavesetException
WavesetException
public Resource[] getAssignedResources() throws WavesetException
WavesetException
public Resource getAssignedResource(java.lang.String resNameOrId) throws WavesetException
WavesetException
public boolean hasAssignedResource(Resource r) throws WavesetException
WavesetException
public void normalizeResourceInfos(java.util.List assigned) throws WavesetException
WavesetException
public void normalizeAssignments(java.util.List assigned) throws WavesetException
WavesetException
public java.util.List getResourceIds(java.util.List refs)
public boolean normalizeResourceInfos() throws WavesetException
WavesetException
public java.util.List getCurrentServiceRefs() throws WavesetException
WavesetException
public java.util.List getRoleAttributeRefs() throws WavesetException
WavesetException
public ObjectRef getForwardAdminRef()
public WSUser getForwardAdmin() throws WavesetException
WavesetException
public void setForwardAdmin(WSUser admin)
public void setForwardAdmin(ObjectRef ref)
public ObjectRef getIdmManagerRef()
public WSUser getIdmManager() throws WavesetException
WavesetException
public java.lang.String getIdmManagerName()
public java.lang.String getIdmManagerId()
public void setIdmManager(java.lang.Object idmManager)
public java.util.List getDelegates()
public WSUser.Delegate getApproverDelegate()
public void setDelegates(java.util.List delegates)
public void setApproverDelegate(WSUser.Delegate approverDelegate)
public java.util.List getDelegateHistory()
public void setDelegateHistory(java.util.List delegateHistory)
public java.lang.String getAttribute(java.lang.String attrId)
A convenience method that hides WSAttribute handling, since most attributes are strings.
getAttribute
in class PersistentObject
public void setAttribute(java.lang.String attrId, java.lang.String value)
A convenience method for string valued attributes that hides the WSAttribute manipulation.
public java.lang.String getAccountId()
This is a convenience method for a standard attribute.
You can also get at it with the getAttribute
method
under the name specified by the ACCOUNT_ID
constant.
NOTE: The account ID is never different than the PersistentObject._name field, so we decided to keep it in the name, and not represent it as a WSAttribute to avoid consistency problems.
public void setAccountId(java.lang.String s)
getAccountId()
public EncryptedData getPassword()
public void setPassword(java.lang.String p)
public void setPassword(EncryptedData p)
public boolean isPasswordChanged()
public void setPasswordChanged(boolean passwordChanged)
public java.util.List getPasswordHistory()
public void addPasswordToPasswordHistory(byte[] newPassword, Policy pwdpol) throws WavesetException
WavesetException
public void addPasswordToPasswordHistory(byte[] newPassword, java.lang.String enc, Policy pwdpol) throws WavesetException
WavesetException
public java.lang.String getEmail()
public void setEmail(java.lang.String s)
public WSAttribute getWSAttribute(java.lang.String attrId)
The attribute is returned as a WSAttribute
object.
You might use this instead of getAttribute if you want to avoid
coercing the attribute value to a string.
Note that the reference to this object is retained by the user so any modifications to the WSAttribute will be reflected in the WSUser. This is NOT the recommended way to modify user attributes. To change the value of an attribute, create a new WSAttribute and use setWSAttribute. In particular note account id isn't represented as a "real" attribute, so we have to fake one up if you ask for it here. Modifying this WSAttribute will have no effect on the name of this object.
public WSAttribute setWSAttribute(WSAttribute attr)
If this attribute is already set, the old value is returned.
public boolean setWSAttribute(java.lang.String attrId, java.lang.Object value) throws WavesetException
WavesetException
public WSAttribute putAttribute(WSAttribute attr)
This was the original interface, but it lacked symetry
with getWSAttribute
and other "set" methods.
This an alias for backward compatibility.
public WSAttributes getWSAttributes()
To keep up the appearances of the account ID being a "real" attribute, we have to add it to the list before returning it.
NOTE: This may result in inconsistencies if the name is changed later since we're still referencing the WSAttributes list. // * I think this should be invisible, since you can't get // * at the WSAttribute copy of the name without causing it to // * be refreshed with the new name. Should consider not // * treating this as an attribute? We might at least want // * to copy the list before returning it. - jsl
public void setWSAttributes(WSAttributes attrs)
The attribute list will be copied, so subsequent modifications to it by the application will have no effect.
Note that the account ID and hence the object name can be set indirectly here, but since that isn't a real attribute we have to convert it.
public void clearWSAttributes()
public WSAttribute removeAttribute(java.lang.String attrId)
public void prepareForSerialization() throws WavesetException
prepareForSerialization
in class PersistentObject
WavesetException
public java.util.List listQueryableAttributes()
listQueryableAttributes
in class Principal
defined attributes
that this type of persistent object exposes as queryable attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listQueryableAttributes()
to ensure that the subclass includes queryable attributes
that are common to all PersistentObjects.
public java.util.List listQueryableReferenceAttributes()
listQueryableReferenceAttributes
in class Principal
defined attributes
that this type of persistent object exposes as queryable attributes
and for which each value is a reference to another persistent object.public java.util.List listSummaryAttributes()
PersistentObject
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
Any subclass that overrides this implementation must also consider the length of the summary string that will be generated from these attributes.
listSummaryAttributes
in class Principal
defined attributes
that this type of persistent object exposes as summary attributes
(regardless of whether this particular object has a value for each).
Any subclass of PersistentObject that overrides this method
should first invoke super.listSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
public WSAttributes getSummaryAttributes()
getSummaryAttributes
in class PersistentObject
attribute values
to be displayed when this object appears in a list.
The WSAttributes
contains
a WSAttribute
for each summary attribute.
Each WSAttribute
may contain multiple values.
Any subclass of PersistentObject that overrides this method
should first invoke super.getSummaryAttributes()
to ensure that the subclass includes summary attributes
that are common to all PersistentObjects.
If a subclass wants to expose a different set of summary attributes,
that subclass should override {@link #listSummaryAttributes}.
In order to supply values for summary attributes
that may not be available in PersistentObject
(e.g., from a field specified to that subclass),
such a subclass may also override {@link #getAttributeValues(Attribute)}.
A subclass should not need to override this method
(except to limit the number of values for a summary attribute).
protected WSAttribute getAttributeValues(java.lang.String attrName)
getAttributeValues
in class Principal
attrName
- - the name of the requested attribute.
WSAttribute
that represents the value (or values)
that this object contains for the specified attribute.
public java.util.List getEncryptedValues()
getEncryptedValues
in class Principal
Any subclass of PersistentObject that overrides this method must first invoke super.getEncryptedValues() to ensure that the list of encrypted values for PersistentObjects are included in the subclasses list.
public static AttributeCondition[] withResource(Resource r)
public static AttributeCondition[] withAnyListedResource(java.util.List resoIdList) throws InvalidArgument
InvalidArgument
protected static int getDisabledLevel(WSUser user)
public static void resolveSummaryAttributes(ObjectCache cache, WSAttributes attrs) throws WavesetException
WavesetException
public static Type[] getSummaryAttributeTypes()
public final void forceProvisioned(boolean on)
public Answer[] getAnswers()
public Answer[] getSuppliedQuestionAnswers()
public void setAnswers(Answer[] answers)
public Answer[] getAnswers(java.lang.String loginInterface)
public Answer[] getSuppliedQuestionAnswers(java.lang.String loginInterface)
loginInterface
-
public void clearAnswers()
public void clearAnswers(java.lang.String loginInterface)
public Answer getAnswer(java.lang.String id)
public void setAnswer(java.lang.String id, java.lang.String answer, java.lang.String loginInterface)
public void setAnswer(java.lang.String id, EncryptedData answer, java.lang.String loginInterface)
public Answer removeAnswer(java.lang.String id)
public ResourceInfo getResourceInfo(ResourceInfo src)
public java.util.List getResourceInfos(java.lang.String resName)
public java.util.List getResourceInfos(Resource res)
public ResourceInfo getResourceInfo(java.lang.String resName)
public ResourceInfo getResourceInfo(Resource res)
public ResourceInfo getResourceInfo(java.lang.String resname, java.lang.String accountId)
public ResourceInfo getResourceInfo(Resource resource, java.lang.String accountId)
public java.lang.String getAccountId(Resource r)
public ResourceInfo[] getResourceInfo()
public void addResourceInfo(ResourceInfo info)
Called by the Provisioner as it provisions or re-provisions.
public void removeResourceInfo(ResourceInfo info)
Called by the Provisioner as it de-provisions resource accounts. // This would be easier if it were a Collection rather than an array.
public void removeResourceInfo(java.lang.String id)
Called by the Provisioner as it de-provisions resource accounts. // This would be easier if it were a Collection rather than an array.
public void setResourceInfo(ResourceInfo[] infos)
public void clearResourceInfo()
This used to be called by Provisioner, but it now calls removeResourceInfo incrementally. Its still called by some of the session tests though.
public boolean generateTemporaryIds()
public ResourceIdentity[] getResourceIdentities()
public void clearResourceIdentities()
public ResourceIdentity getResourceIdentity(java.lang.String name)
public ResourceIdentity getResourceIdentity(Resource res)
public void addResourceIdentity(ResourceIdentity rid)
public void removeResourceIdentity(ResourceIdentity rid)
Called by the Provisioner or Adapter as it creates resource accounts.
public java.util.HashMap toHashMap(boolean convertAttrValuesToStrings) throws WavesetException
WavesetException
public void fromMap(java.util.Map map, boolean checkRequiredAttributes) throws WavesetException
WavesetException
public java.util.List getExpandedControlledObjectGroupRefs()
protected void setExpandedControlledObjectGroupRefs(java.util.List expandedControlledObjectGroupRefs)
public java.util.List getExpandedAdminGroupRefs()
protected void setExpandedAdminGroupRefs(java.util.List expandedAdminGroupRefs)
public java.util.Date getLastAuditorScan()
public void setLastAuditorScan(java.util.Date lastScan)
public void setAuditPolicyRefs(java.util.List auditPolicies)
public void setAuditPolicyRef(ObjectRef ref)
public void addAuditPolicyRef(ObjectRef ref)
public java.util.List getAuditPolicyRefs()
public java.util.List getPrivateAuditPolicies() throws WavesetException
WavesetException
protected void addSubclassAttributes(java.lang.StringBuffer buf)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.
addSubclassAttributes
in class PersistentObject
protected void addSubclassElements(java.lang.StringBuffer buf)
PersistentObject
NOTE: Any subclass that overrides this method must similarly override parseSubclassElements() so that the subclass elements are restored.
addSubclassElements
in class PersistentObject
public static boolean hasEncryptedData()
protected void reEncryptSubclassAttributes() throws WavesetException
PersistentObject
PersistentObject's default implementation is a no-op.
// * @see #parseXml(Element)
reEncryptSubclassAttributes
in class PersistentObject
WavesetException
protected void parseSubclassAttributes(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassAttributes
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
protected void parseSubclassElements(org.w3c.dom.Element e) throws WavesetException
PersistentObject
parseSubclassElements
in class PersistentObject
WavesetException
PersistentObject's default implementation is a no-op.
,
PersistentObject.parseXml(Element)
public static Attribute getInbuiltAttr(java.lang.String name)
public static Attribute[] getInbuiltAttrs()
public static void setInbuiltAttrs(Attribute[] userAttrs)
public static boolean isInbuiltAttribute(java.lang.String name)
Called by the toXml method, but might be of general use. // *
// * Note that this is going to be called a LOT due to way // * we serialize the types differently, I don't really like this, // * can we just keep the waveset attributes on a different list, // * or just as fields? // * jsl
public void dumpSummary(java.lang.String file)
public java.lang.String toIdentityString()
public java.lang.String toVerboseString()
public java.lang.String toVerboseString(java.lang.String indent)
public void checkManagerAttribute(WSUser changedUser) throws WavesetException
WavesetException
protected void resolveObjectReference(ObjectRef ref, PersistentObject owner, ObjectCache cache) throws WavesetException
resolveObjectReference
in class PersistentObject
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |