|
||||||||
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
public class 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 which defines the type, to whom, and start/end dates for delegating future workitems |
Nested classes/interfaces 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 |
---|
LAST_LOGIN_LOCALE_PROP, LOCALE_PROP, USER_FORM_NAME, VIEW_USER_FORM_NAME |
Fields inherited from class com.waveset.object.PersistentObject |
---|
INITIAL_OBJECT_VERSION |
Constructor Summary | |
---|---|
WSUser()
Create an empty user object. |
|
WSUser(com.waveset.object.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(com.waveset.object.ObjectRef ref)
|
void |
addPasswordToPasswordHistory(byte[] newPassword,
com.waveset.object.Policy pwdpol)
Add to the new password to the top of the list of previous passwords |
void |
addPasswordToPasswordHistory(byte[] newPassword,
java.lang.String enc,
com.waveset.object.Policy pwdpol)
|
void |
addPolicyRef(com.waveset.object.ObjectRef ref)
|
void |
addPrivateService(com.waveset.object.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(com.waveset.object.ResourceIdentity rid)
Add information about a resource identity. |
void |
addResourceInfo(ResourceInfo info)
Add information about a resource account. |
void |
addRole(com.waveset.object.ObjectRef ref)
Set the role reference. |
void |
addRole(Role role)
Set the role. |
void |
addRoleInfo(com.waveset.object.RoleInfo roleInfo)
|
void |
addRoleInfoDirect(com.waveset.object.RoleInfo roleInfo)
|
void |
addRoleRef(com.waveset.object.ObjectRef ref)
Set the role reference. |
void |
addWorkItemDelegate(WSUser.Delegate workItemDelegate)
Adds the specified Delegate object to this user's set of work item delegate objects. |
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 |
clearAnswers()
Remove all answers from this user. |
void |
clearAnswers(java.lang.String loginInterface)
Remove all answers for the specified login interface from this user. |
static void |
clearExtendedAttributes()
Deprecated as of 8.0. |
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(com.waveset.object.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(com.waveset.object.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(com.waveset.object.Resource r)
|
java.util.Set |
getAllPrivateResourceAssignments()
|
java.util.List |
getAllPrivateResources()
Get a flat list of resolved resources. |
com.waveset.object.Answer |
getAnswer(java.lang.String id)
Get the answer object with a given id. |
com.waveset.object.Answer[] |
getAnswers()
Get the array of authentication answer objects assigned to this user. |
com.waveset.object.Answer[] |
getAnswers(java.lang.String loginInterface)
|
com.waveset.object.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. |
com.waveset.object.Resource[] |
getAssignedResources()
Return a flat list of Resource objects assigned to this user. |
java.util.List<java.lang.String> |
getAssignedRoleIds()
|
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. |
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.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 |
getFailedPasswordLoginAttemptsSinceLastGoodLogin()
|
int |
getFailedQuestionLoginAttemptsCount()
|
int |
getFailedQuestionLoginAttemptsSinceLastGoodLogin()
|
WSUser |
getForwardAdmin()
|
com.waveset.object.ObjectRef |
getForwardAdminRef()
|
WSUser |
getIdmManager()
|
java.lang.String |
getIdmManagerId()
|
java.lang.String |
getIdmManagerName()
|
com.waveset.object.ObjectRef |
getIdmManagerRef()
|
static com.waveset.object.Attribute |
getInbuiltAttr(java.lang.String name)
|
static com.waveset.object.Attribute[] |
getInbuiltAttrs()
|
com.waveset.object.Keychain |
getKeychain()
Get the SSO keychain. |
java.util.Date |
getLastAuditorScan()
|
long |
getLastPasswordUpdate()
|
java.util.Date |
getLockExpiry()
Get the lock expiration date. |
com.waveset.util.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()
|
com.sun.idm.object.IDMObjectClass |
getPrimaryObjectClass()
|
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.Date |
getQuestionLockExpiry()
Get the lock expiration date. |
java.util.ArrayList |
getReferences()
Return the list of references within this object. |
java.util.List |
getResetHistory()
Get the password reset history. |
com.waveset.object.ResourceIdentity[] |
getResourceIdentities()
Return the array of resource identity information. |
com.waveset.object.ResourceIdentity |
getResourceIdentity(com.waveset.object.Resource res)
Find a resource identity given a Resource object. |
com.waveset.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(com.waveset.object.Resource res)
Return the information about a specific resource account associated with this user. |
ResourceInfo |
getResourceInfo(ResourceInfo src)
|
ResourceInfo |
getResourceInfo(ResourceInfo src,
boolean caseInsensitive)
Look for a ResourceInfo on this user whose identity matches that of the supplied ResourceInfo object. |
ResourceInfo |
getResourceInfo(com.waveset.object.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<ResourceInfo> |
getResourceInfos()
Utility to retrieve the resource infos as a List. |
java.util.List |
getResourceInfos(com.waveset.object.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 |
getRoleIds()
Return a List of String ids of roles assigned to this user. |
java.util.List |
getRoleInfoRefs(java.lang.String type)
Get all, direct, or indirect role info references |
java.util.List<com.waveset.object.RoleInfo> |
getRoleInfos()
|
java.util.List<com.waveset.object.RoleInfo> |
getRoleInfos(java.lang.String state)
|
java.util.List |
getRoleNames()
Return a List of String names of roles assigned to this user. |
java.util.List<com.waveset.object.ObjectRef> |
getRoleRefs()
Get the role references. |
com.waveset.object.Resource[] |
getRoleResources()
Return an array of all resources assigned through roles to this user. |
java.util.List |
getRoles()
Resolve and return the role objects. |
java.util.List |
getRoleServiceRefs()
Return a List of ObjectRefs to all services assigned through roles to this user. |
WSAttributes |
getSummaryAttributes()
|
static com.waveset.object.Type[] |
getSummaryAttributeTypes()
Types resolved by resolveSummaryAttributes |
com.waveset.object.Answer[] |
getSuppliedQuestionAnswers()
Utility method to return Answers which have a suppliedQuestion set. |
com.waveset.object.Answer[] |
getSuppliedQuestionAnswers(java.lang.String loginInterface)
Utility method to return just the answers to user supplied questions for the specified login interface. |
com.waveset.object.Type |
getType()
Returns the associated Type object. |
WSUser.Delegate |
getWorkItemDelegate(java.lang.String workItemType)
Returns a Delegate object whose workItemType matches the one specified. |
java.util.List |
getWorkItemDelegateHistory()
Gets this user's list of Delegate History objects |
java.util.Map |
getWorkItemDelegates()
|
WSAttribute |
getWSAttribute(java.lang.String attrId)
Get an account attribute. |
WSAttributes |
getWSAttributes()
Get the collection of all account attributes for this user. |
boolean |
hasAssignedResource(com.waveset.object.Resource r)
|
static boolean |
hasEncryptedData()
|
int |
incrementFailedPasswordLoginAttemptsCount()
|
int |
incrementFailedQuestionLoginAttemptsCount()
|
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()
|
boolean |
isQuestionLockExpired()
|
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 |
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()
|
com.waveset.object.Answer |
removeAnswer(java.lang.String id)
Remove one answer from the user, given its question id. |
WSAttribute |
removeAttribute(java.lang.String attrId)
|
boolean |
removePrivateService(com.waveset.object.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(com.waveset.object.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. |
void |
removeRoleInfo(com.waveset.object.RoleInfo roleInfo)
|
void |
removeWorkItemDelegate(java.lang.String workItemType)
Removes the specified workItemType from the set of work item delegate objects. |
static void |
resolveSummaryAttributes(com.waveset.object.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,
com.waveset.util.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(com.waveset.object.Answer[] answers)
|
void |
setAttribute(java.lang.String attrId,
java.lang.String value)
Sets an abstract attribute. |
void |
setAuditPolicyRef(com.waveset.object.ObjectRef ref)
|
void |
setAuditPolicyRefs(java.util.List auditPolicies)
|
void |
setCorrelationKey(java.lang.String key)
Set the correlation key. |
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. |
void |
setExternal(boolean b)
Set the external account flag. |
void |
setFailedPasswordLoginAttemptsCount(int failedPasswordLoginAttemptsCount)
|
void |
setFailedPasswordLoginAttemptsSinceLastGoodLogin(int failedPasswordLoginAttemptsSinceLastGoodLogin)
|
void |
setFailedQuestionLoginAttemptsCount(int failedQuestionLoginAttemptsCount)
|
void |
setFailedQuestionLoginAttemptsSinceLastGoodLogin(int failedQuestionLoginAttemptsSinceLastGoodLogin)
|
void |
setForwardAdmin(com.waveset.object.ObjectRef ref)
|
void |
setForwardAdmin(WSUser admin)
|
void |
setIdmManager(java.lang.Object idmManager)
|
static void |
setInbuiltAttrs(com.waveset.object.Attribute[] userAttrs)
|
void |
setKeychain(com.waveset.object.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(com.waveset.util.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(com.waveset.object.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 |
setQuestionLockExpiry(java.util.Date d)
Set the lock expiration date. |
void |
setResetHistory(java.util.List hist)
Sets the password reset history. |
void |
setResourceInfo(ResourceInfo[] infos)
Assigned the full ResourceInfo array. |
void |
setRoleInfos(java.util.List<com.waveset.object.RoleInfo> roleInfos)
|
void |
setRoleRef(com.waveset.object.ObjectRef ref)
|
void |
setRoleRefs(java.util.List roles)
|
void |
setRoles(java.util.List roles)
set the roles. |
void |
setWorkItemDelegateHistory(java.util.List workItemDelegateHistory)
Sets this user's list of Delegate History objects |
void |
setWorkItemDelegates(java.util.Map workItemDelegates)
Sets the set of work item delegate objects for this user. |
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(com.waveset.object.Visitor v)
Visitor interface. |
static AttributeCondition[] |
withAnyListedResource(java.util.List resoIdList)
|
static AttributeCondition[] |
withResource(com.waveset.object.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 |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ALL_INTERFACES
public static final java.lang.String code_id
public static final java.lang.String CORRELATION_KEY
public static final java.lang.String PASSWORD_EXPIRATION
public static final java.lang.String POLICIES
public static final java.lang.String ROLE
public static final java.lang.String ROLES
Constructor Detail |
---|
public WSUser()
public WSUser(com.waveset.object.Administrator admin) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public WSUser(org.w3c.dom.Element e) throws com.waveset.util.WavesetException
e
- xml element
com.waveset.util.WavesetException
- if e can't be parsed.public WSUser(java.lang.String xml) throws com.waveset.util.WavesetException
xml
- string to parse
com.waveset.util.WavesetException
- if xml can'tbe parsed.public WSUser(java.lang.String name, java.lang.String noop)
public WSUser(WSUser user) throws com.waveset.util.WavesetException
user
- Prototype user from which to create a new user.
com.waveset.util.WavesetException
- if user can't be cloned.Method Detail |
---|
public void addAuditPolicyRef(com.waveset.object.ObjectRef ref)
public void addPasswordToPasswordHistory(byte[] newPassword, com.waveset.object.Policy pwdpol) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void addPasswordToPasswordHistory(byte[] newPassword, java.lang.String enc, com.waveset.object.Policy pwdpol) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void addPolicyRef(com.waveset.object.ObjectRef ref)
public void addPrivateService(com.waveset.object.ObjectRef ref)
public void addPrivateService(Service s)
public void addPrivateServices(java.util.List src)
public void addResourceIdentity(com.waveset.object.ResourceIdentity rid)
public void addResourceInfo(ResourceInfo info)
Called by the Provisioner as it provisions or re-provisions.
public void addRole(com.waveset.object.ObjectRef ref)
public void addRole(Role role)
public void addRoleInfo(com.waveset.object.RoleInfo roleInfo)
public void addRoleInfoDirect(com.waveset.object.RoleInfo roleInfo)
public void addRoleRef(com.waveset.object.ObjectRef ref)
public void addWorkItemDelegate(WSUser.Delegate workItemDelegate)
workItemDelegate
- public void applyAssignmentExclusions(java.util.Collection assignments)
public static void applyAssignmentExclusions(java.util.Collection assignments, java.util.Collection exclusions)
public void applyExclusions(java.util.Collection resources)
public static void applyExclusions(java.util.Collection resources, java.util.Collection exclusions)
public java.util.List applyExclusions(java.util.List resources)
public static java.util.List applyExclusions(java.util.List resources, java.util.List exclusions)
public void clearAnswers()
public void clearAnswers(java.lang.String loginInterface)
public static void clearExtendedAttributes()
public void clearResourceIdentities()
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 void clearWSAttributes()
public void convertAdminInfo(com.waveset.object.Administrator admin, java.lang.String option) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public int countProvisionedAccounts()
public void dumpSummary(java.lang.String file)
public void expirePassword()
public void filterPrivateServices(com.waveset.object.Type type)
public final void forceProvisioned(boolean on)
public void fromMap(java.util.Map map, boolean checkRequiredAttributes) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public boolean generateTemporaryIds()
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 java.lang.String getAccountId(com.waveset.object.Resource r)
public java.util.Set getAllPrivateResourceAssignments() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getAllPrivateResources() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public com.waveset.object.Answer getAnswer(java.lang.String id)
public com.waveset.object.Answer[] getAnswers()
public com.waveset.object.Answer[] getAnswers(java.lang.String loginInterface)
public com.waveset.object.Resource getAssignedResource(java.lang.String resNameOrId) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getAssignedResourceList() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public com.waveset.object.Resource[] getAssignedResources() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List<java.lang.String> getAssignedRoleIds()
public java.util.List getAssignmentList() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
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 java.util.List getAuditPolicyRefs()
public java.util.ArrayList getAuthReferences()
getAuthReferences
in class PersistentObject
public java.lang.String getCorrelationKey()
public java.lang.String getEmail()
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 java.util.List getExclusionRefs()
public java.util.List getExclusions() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getExpandedAdminGroupRefs()
public java.util.List getExpandedControlledObjectGroupRefs()
public boolean getExternal()
public int getFailedPasswordLoginAttemptsCount()
public int getFailedPasswordLoginAttemptsSinceLastGoodLogin()
public int getFailedQuestionLoginAttemptsCount()
public int getFailedQuestionLoginAttemptsSinceLastGoodLogin()
public WSUser getForwardAdmin() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public com.waveset.object.ObjectRef getForwardAdminRef()
public WSUser getIdmManager() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.lang.String getIdmManagerId()
public java.lang.String getIdmManagerName()
public com.waveset.object.ObjectRef getIdmManagerRef()
public static com.waveset.object.Attribute getInbuiltAttr(java.lang.String name)
public static com.waveset.object.Attribute[] getInbuiltAttrs()
public com.waveset.object.Keychain getKeychain()
public java.util.Date getLastAuditorScan()
public long getLastPasswordUpdate()
public java.util.Date getLockExpiry()
public com.waveset.util.EncryptedData getPassword()
public java.util.Date getPasswordExpiry()
public java.util.Date getPasswordExpiryWarning()
public java.util.List getPasswordHistory()
public java.util.List getPolicyRefs()
public com.sun.idm.object.IDMObjectClass getPrimaryObjectClass()
getPrimaryObjectClass
in class PersistentObject
public java.util.List getPrivateApplicationRefs()
public java.util.List getPrivateApplications() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getPrivateAuditPolicies() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getPrivatePolicies() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getPrivateResourceAssignmentRefs()
public java.util.List getPrivateResourceAssignments() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.ArrayList getPrivateResourceRefs()
public java.util.List getPrivateResources() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.ArrayList getPrivateServiceRefs()
public java.util.List getPrivateServices() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.Date getQuestionLockExpiry()
public java.util.ArrayList getReferences()
getReferences
in class Principal
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 com.waveset.object.ResourceIdentity[] getResourceIdentities()
public com.waveset.object.ResourceIdentity getResourceIdentity(com.waveset.object.Resource res)
public com.waveset.object.ResourceIdentity getResourceIdentity(java.lang.String name)
public java.util.List getResourceIds(java.util.List refs)
public ResourceInfo[] getResourceInfo()
public ResourceInfo getResourceInfo(com.waveset.object.Resource res)
public ResourceInfo getResourceInfo(ResourceInfo src)
public ResourceInfo getResourceInfo(ResourceInfo src, boolean caseInsensitive)
public ResourceInfo getResourceInfo(com.waveset.object.Resource resource, java.lang.String accountId)
public ResourceInfo getResourceInfo(java.lang.String resName)
public ResourceInfo getResourceInfo(java.lang.String resname, java.lang.String accountId)
public java.util.List<ResourceInfo> getResourceInfos()
public java.util.List getResourceInfos(com.waveset.object.Resource res)
public java.util.List getResourceInfos(java.lang.String resName)
public java.util.List getRoleIds() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getRoleInfoRefs(java.lang.String type)
public java.util.List<com.waveset.object.RoleInfo> getRoleInfos()
public java.util.List<com.waveset.object.RoleInfo> getRoleInfos(java.lang.String state)
public java.util.List getRoleNames() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List<com.waveset.object.ObjectRef> getRoleRefs()
public com.waveset.object.Resource[] getRoleResources() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getRoles() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getRoleServiceRefs() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
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(String)}.
A subclass should not need to override this method
(except to limit the number of values for a summary attribute).
public static com.waveset.object.Type[] getSummaryAttributeTypes()
public com.waveset.object.Answer[] getSuppliedQuestionAnswers()
public com.waveset.object.Answer[] getSuppliedQuestionAnswers(java.lang.String loginInterface)
loginInterface
-
public com.waveset.object.Type getType()
getType
in class PersistentObject
public WSUser.Delegate getWorkItemDelegate(java.lang.String workItemType)
workItemType
- public java.util.List getWorkItemDelegateHistory()
public java.util.Map getWorkItemDelegates()
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 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 boolean hasAssignedResource(com.waveset.object.Resource r) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static boolean hasEncryptedData()
public int incrementFailedPasswordLoginAttemptsCount()
public int incrementFailedQuestionLoginAttemptsCount()
public boolean isDisabled()
public boolean isExternal()
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 boolean isLocked()
public boolean isLockExpired()
public boolean isLoggedIn(Subject subject)
public boolean isLoggedInToApp(java.lang.String appName)
public boolean isNullAccountId()
public boolean isPasswordChanged()
public boolean isPasswordExpired()
public boolean isQuestionLocked()
public boolean isQuestionLockExpired()
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.Constants.MAX_SUMMARY_STRING_LENGTH
,
PersistentObject.getSummaryString()
public void normalizeAssignments(java.util.List assigned) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public boolean normalizeResourceInfos() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void prepareForSerialization() throws com.waveset.util.WavesetException
prepareForSerialization
in class PersistentObject
com.waveset.util.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 void questionUnlock()
public com.waveset.object.Answer removeAnswer(java.lang.String id)
public WSAttribute removeAttribute(java.lang.String attrId)
public boolean removePrivateService(com.waveset.object.ObjectRef ref)
public boolean removePrivateService(Service service)
public void removeResourceIdentity(com.waveset.object.ResourceIdentity rid)
Called by the Provisioner or Adapter as it creates resource accounts.
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 removeRoleInfo(com.waveset.object.RoleInfo roleInfo)
public void removeWorkItemDelegate(java.lang.String workItemType)
workItemType
- public static void resolveSummaryAttributes(com.waveset.object.ObjectCache cache, WSAttributes attrs) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void setAccountId(java.lang.String s)
getAccountId()
public void setAnswer(java.lang.String id, com.waveset.util.EncryptedData answer, java.lang.String loginInterface)
public void setAnswer(java.lang.String id, java.lang.String answer, java.lang.String loginInterface)
public void setAnswers(com.waveset.object.Answer[] answers)
public void setAttribute(java.lang.String attrId, java.lang.String value)
A convenience method for string valued attributes that hides the WSAttribute manipulation.
public void setAuditPolicyRef(com.waveset.object.ObjectRef ref)
public void setAuditPolicyRefs(java.util.List auditPolicies)
public void setCorrelationKey(java.lang.String key)
public void setDisabled(boolean b)
public void setEmail(java.lang.String s)
public void setExclusions(java.util.List refs)
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 void setFailedPasswordLoginAttemptsCount(int failedPasswordLoginAttemptsCount)
public void setFailedPasswordLoginAttemptsSinceLastGoodLogin(int failedPasswordLoginAttemptsSinceLastGoodLogin)
public void setFailedQuestionLoginAttemptsCount(int failedQuestionLoginAttemptsCount)
public void setFailedQuestionLoginAttemptsSinceLastGoodLogin(int failedQuestionLoginAttemptsSinceLastGoodLogin)
public void setForwardAdmin(com.waveset.object.ObjectRef ref)
public void setForwardAdmin(WSUser admin)
public void setIdmManager(java.lang.Object idmManager)
public static void setInbuiltAttrs(com.waveset.object.Attribute[] userAttrs)
public void setKeychain(com.waveset.object.Keychain keys)
public void setLastAuditorScan(java.util.Date lastScan)
public void setLastPasswordChange(long millis)
public void setLocked(boolean b)
public void setLockExpiry(java.util.Date d)
public void setLoggedIn(Subject subject, boolean loggedIn)
public void setNullAccountId(boolean b)
public void setPassword(com.waveset.util.EncryptedData p)
public void setPassword(java.lang.String p)
public void setPasswordChanged(boolean passwordChanged)
public void setPasswordExpiry(java.util.Date d)
public void setPasswordExpiryWarning(java.util.Date d)
public void setPolicyRef(com.waveset.object.ObjectRef ref)
public void setPolicyRefs(java.util.List policies)
public void setPrivateServiceRefs(java.util.List refs)
public void setQuestionLocked(boolean b)
public void setQuestionLockExpiry(java.util.Date d)
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 void setResourceInfo(ResourceInfo[] infos)
public void setRoleInfos(java.util.List<com.waveset.object.RoleInfo> roleInfos)
public void setRoleRef(com.waveset.object.ObjectRef ref)
ref
- public void setRoleRefs(java.util.List roles)
roles
- public void setRoles(java.util.List roles)
roles
- - List of ObjectRefs to Role objectspublic void setWorkItemDelegateHistory(java.util.List workItemDelegateHistory)
workItemDelegateHistory
- public void setWorkItemDelegates(java.util.Map workItemDelegates)
workItemDelegates
- public boolean setWSAttribute(java.lang.String attrId, java.lang.Object value) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public WSAttribute setWSAttribute(WSAttribute attr)
If this attribute is already set, the old value is returned.
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 terminateLoggedIn(java.lang.String appName)
public java.util.HashMap toHashMap(boolean convertAttrValuesToStrings) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.lang.String toIdentityString()
public java.lang.String toVerboseString()
public java.lang.String toVerboseString(java.lang.String indent)
public void unlock()
public void unlockAll()
public void visit(com.waveset.object.Visitor v) throws com.waveset.util.WavesetException
visit
in class PersistentObject
v
- Visitor for this persistent object.
com.waveset.util.WavesetException
- if there's a problem from visitPersistentObjectpublic static AttributeCondition[] withAnyListedResource(java.util.List resoIdList) throws com.waveset.util.InvalidArgument
com.waveset.util.InvalidArgument
public static AttributeCondition[] withResource(com.waveset.object.Resource r)
public static WSUser xcloneObject(WSUser src) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |