|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.ResourceInfo
public class ResourceInfo
A class that records information about a specific resource account provisioned for this user.
A list of these may be found on each WSUser object, it will be maintained by the provisioning engine, the bulk loader, and the reconciliation system.
Nested Class Summary | |
---|---|
static class |
ResourceInfo.CompareResourceNameAndAccountId
Implement the Comparator interface to sort ResourceInfo instances by resource name, accountId, "exists" and accountGUID. |
Field Summary | |
---|---|
static java.lang.String |
ATT_ACCOUNT_DISPLAY_NAME
|
static java.lang.String |
ATT_ACCOUNT_GUID
|
static java.lang.String |
ATT_ACCOUNT_TYPE
|
static java.lang.String |
ATT_ACCOUNTID
|
static java.lang.String |
ATT_ASCII
|
static java.lang.String |
ATT_CREATED
|
static java.lang.String |
ATT_DELETE
|
static java.lang.String |
ATT_DEPENDENT
|
static java.lang.String |
ATT_DISABLED
|
static java.lang.String |
ATT_INSTANCEID
|
static java.lang.String |
ATT_LAST_PASSWORD_CHANGE
|
static java.lang.String |
ATT_PASSWORD
|
static java.lang.String |
ATT_PASSWORD_RESET
|
static java.lang.String |
ATT_PENDING
|
static java.lang.String |
ATT_PENDING_MANUAL_ACTION
|
static java.lang.String |
ATT_PRIMARY
|
static java.lang.String |
ATT_PRIVATE
|
static java.lang.String |
ATT_PROTECTED
|
static java.lang.String |
ATT_REJECTOR
|
static java.lang.String |
ATT_TEMPID
|
static java.lang.String |
code_id
|
static java.util.Comparator |
COMPARE_RESOURCE_NAME_AND_ACCOUNT_ID
|
static java.lang.String |
DELIMITER
|
static java.lang.String |
DOT
|
static java.lang.String |
EL_ACCOUNT_ATTS
|
static java.lang.String |
EL_DEFERRED_ATTRIBUTES
|
static java.lang.String |
EL_PASSWORD_HISTORY
|
static java.lang.String |
EL_RESOURCE_ATTS
|
static java.lang.String |
EL_RESOURCE_PARAMS
|
static java.lang.String |
EL_RESOURCE_PROPS
|
static java.lang.String |
ELEMENT
|
static java.lang.String |
EQUALS
|
static java.lang.String |
LEFT_BRACKET
|
static java.lang.String |
RA_PENDING_CHANGES
The name of an attribute that may show up under the ResourceInfo._resourceAttributes to indicate that were changes that need to be propagated. |
static java.lang.String |
RIGHT_BRACKET
|
Constructor Summary | |
---|---|
ResourceInfo()
Create an empty resource info object. |
|
ResourceInfo(org.w3c.dom.Element e)
Create a resource info object and initialize it by parsing its DOM representation. |
|
ResourceInfo(java.lang.String qname)
New constructor for parsing a "qualified name" string and building a ResourceInfo containing the parsed fields. |
Method Summary | |
---|---|
void |
addDeferredAttribute(com.waveset.object.AttributeRef ref)
|
void |
addPasswordToPasswordHistory(byte[] newPassword)
Add to the new password to the top of the list of previous passwords |
void |
addPasswordToPasswordHistory(byte[] newPassword,
java.lang.String enc)
Add to the new password to the top of the list of previous passwords |
void |
dumpSummary(java.lang.String file)
|
boolean |
generateTempId()
Generate a temporary id if we need one. |
java.lang.String |
getAccountDisplayName()
Get the account display name |
java.lang.String |
getAccountGUID()
|
java.lang.String |
getAccountId()
|
java.lang.String |
getAccountID()
Get the account ID. |
java.lang.String |
getAccountIdAttribute()
|
java.lang.String |
getAccountType()
Get the type of account for the account this represents. |
java.util.Map |
getAttributes()
Get the account attribute map. |
java.util.Map |
getAttributeUpdates()
|
WSAttribute |
getAttributeValues(com.sun.idm.object.IDMObjectClassAttribute attrDef)
|
java.util.Map |
getCurrentAttributes()
Get the current attribute map. |
java.util.List |
getDeferredAttributes()
Get the deferred attributes list. |
java.lang.String |
getDependentResourceId()
Get the dependent resource ID. |
java.lang.String |
getElementName()
Return the XmlObject name |
java.lang.String |
getFullName()
Return the "qualified" name of this account. |
long |
getLastPasswordUpdate()
|
java.lang.String |
getName()
|
PersistentObject |
getOwner()
Get the owning object. |
com.waveset.util.EncryptedData |
getPassword()
Get the password. |
java.util.List |
getPasswordHistory()
Get all previous passwords stored for this resource info for this user |
java.lang.String |
getPendingManualAction()
Get the pending manual action |
java.util.Map |
getProperties()
Get the resource properties |
java.lang.String |
getQualifiedName()
Get the fully qualified name for this account. |
java.lang.String |
getRejector()
Get the rejecting administrator. |
com.waveset.object.Resource |
getResource()
Resolve the resource reference, and return the resource object. |
java.util.List |
getResourceAttributeChanges()
Dig out a list of resource attributes that are considered to have changed since the last time this account was pushed. |
java.util.Map |
getResourceAttributes()
Get the resource attribute map. |
java.lang.String |
getResourceDisplayName()
Get the associated Resource name. |
java.lang.String |
getResourceInstanceDisplayName()
|
java.lang.String |
getResourceInstanceName()
|
java.lang.String |
getResourceName()
Get the associated Resource name. |
com.waveset.object.ObjectRef |
getResourceRef()
Get the resource reference. |
WavesetResult |
getResult()
Get fetch results |
java.util.Map |
getResultAttributes()
Get the return attribute map. |
java.lang.String |
getTempId()
|
java.util.Map |
getTemplateParameters()
|
java.lang.String |
getViewName()
|
boolean |
isAccountCreated()
Test to see if the account was created. |
boolean |
isDelete()
|
boolean |
isDisabled()
Test to see if the account is disabled. |
boolean |
isDiscovered()
|
boolean |
isIdentityEqual(ResourceInfo info)
Returns true if two ResourceInfos identify the same account. |
boolean |
isPasswordReset()
Tests the password reset flag. |
boolean |
isPendingApproval()
Test the pending approval flag. |
boolean |
isPendingManualAction()
Test the pending manual action flag |
boolean |
isPrimary()
|
boolean |
isPrivate()
|
boolean |
isProtected()
Test to see if the account is protected. |
boolean |
isProvisioningError()
|
boolean |
isReferenced()
Test to see if the referenced flag is on. |
boolean |
isResourceEqual(ResourceInfo info)
Return true if the Resource identified by one ResourceInfo is equal to another. |
boolean |
isTarget(ResourceInfo identity)
Returns true if "this" object is to be considered a provisioning target based on the identity found in another ResourceInfo object. |
void |
parseQualifiedName(java.lang.String qname)
Called by the ResourceInfo(String) constructor. |
void |
parseXml(org.w3c.dom.Element e)
Parse the DOM representation of an info object, and set the corresponding fields. |
static ResourceInfo[] |
parseXmlArray(org.w3c.dom.Element e,
PersistentObject owner)
Parse the DOM representatino for a list of ResourceInfo objects, and return them in an array. |
void |
setAccountCreated(boolean e)
Set the account created flag. |
void |
setAccountDisplayName(java.lang.String name)
Set the account display name. |
void |
setAccountGUID(java.lang.String accountGUID)
Set the account GUID. |
void |
setAccountId(java.lang.String accountId)
Set the account id. |
void |
setAccountID(java.lang.String id)
Set the account id. |
void |
setAccountId(java.lang.String accountId,
boolean clearRelatedFields)
Set the accountId. |
void |
setAccountIdAttribute(java.lang.String s)
|
void |
setAccountType(java.lang.String accountType)
Set the type of account for the account this represents. |
void |
setAttributes(java.util.Map atts)
Set the account attribute map. |
void |
setAttributeUpdates(java.util.Map updates)
|
void |
setCurrentAttributes(java.util.Map map)
Set the current attribute map. |
void |
setDeferredAttributes(java.util.List atts)
Set the deferred attributes list. |
void |
setDelete(boolean b)
|
void |
setDependentResourceId(java.lang.String id)
Set the dependent resource ID. |
void |
setDisabled(boolean e)
Set the account disabled flag. |
void |
setDiscovered(boolean b)
|
void |
setLastPasswordChange(long millis)
|
void |
setOwner(PersistentObject owner)
Set the owning user object. |
void |
setPassword(com.waveset.util.EncryptedData p)
Set the password. |
void |
setPassword(java.lang.String p)
Set the password. |
void |
setPasswordReset(boolean passwordReset)
Sets the password reset flag. |
void |
setPendingApproval(boolean b)
Set the pending approval flag. |
void |
setPendingManualAction(java.lang.String name)
Set the pending manual action |
void |
setPrimary(boolean b)
|
void |
setPrivate(boolean b)
|
void |
setProperties(java.util.Map properties)
Set the resource properties. |
void |
setProtected(boolean p)
Set the protected flag. |
void |
setProvisioningError(boolean b)
This is used in some older adapters, but it has no effect. |
void |
setReferenced(boolean b)
Sets the referenced flag. |
void |
setRejector(java.lang.String name)
Set the rejecting administrator. |
void |
setResource(com.waveset.object.Resource r)
Set the resource. |
void |
setResourceAttributeChanges(java.util.List changes)
Dig out a list of resource attributes that are considered to have changed since the last time this account was pushed. |
void |
setResourceAttributes(java.util.Map atts)
Set the resource attribute map. |
void |
setResourceName(java.lang.String name)
|
void |
setResourceRef(com.waveset.object.ObjectRef ref)
Set the resource reference. |
void |
setResult(WavesetResult result)
Set fetch results. |
void |
setResultAttributes(java.util.Map map)
Set the return attribute map. |
void |
setTempId(java.lang.String s)
A temporary (but persistent) identifier that can be used to identify ResourceInfo objects that do not have an accountId. |
void |
setTemplateParameters(java.util.Map params)
|
void |
setViewName(java.lang.String name)
A transient unique identifier used during the user view conversion process. |
java.lang.String |
toIdentityString()
|
java.lang.String |
toString()
Overrides java.lang.Object . |
java.lang.String |
toVerboseString()
|
java.lang.String |
toVerboseString(java.lang.String linePrefix)
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize the resource info object to an XML string buffer. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
---|
addXmlHeader, cloneObject, dump, dumpFile, getReference, setTrace, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ATT_ACCOUNT_DISPLAY_NAME
public static final java.lang.String ATT_ACCOUNT_GUID
public static final java.lang.String ATT_ACCOUNT_TYPE
public static final java.lang.String ATT_ACCOUNTID
public static final java.lang.String ATT_ASCII
public static final java.lang.String ATT_CREATED
public static final java.lang.String ATT_DELETE
public static final java.lang.String ATT_DEPENDENT
public static final java.lang.String ATT_DISABLED
public static final java.lang.String ATT_INSTANCEID
public static final java.lang.String ATT_LAST_PASSWORD_CHANGE
public static final java.lang.String ATT_PASSWORD
public static final java.lang.String ATT_PASSWORD_RESET
public static final java.lang.String ATT_PENDING
public static final java.lang.String ATT_PENDING_MANUAL_ACTION
public static final java.lang.String ATT_PRIMARY
public static final java.lang.String ATT_PRIVATE
public static final java.lang.String ATT_PROTECTED
public static final java.lang.String ATT_REJECTOR
public static final java.lang.String ATT_TEMPID
public static final java.lang.String code_id
public static java.util.Comparator COMPARE_RESOURCE_NAME_AND_ACCOUNT_ID
public static final java.lang.String DELIMITER
public static final java.lang.String DOT
public static final java.lang.String EL_ACCOUNT_ATTS
public static final java.lang.String EL_DEFERRED_ATTRIBUTES
public static final java.lang.String EL_PASSWORD_HISTORY
public static final java.lang.String EL_RESOURCE_ATTS
public static final java.lang.String EL_RESOURCE_PARAMS
public static final java.lang.String EL_RESOURCE_PROPS
public static final java.lang.String ELEMENT
public static final java.lang.String EQUALS
public static final java.lang.String LEFT_BRACKET
public static final java.lang.String RA_PENDING_CHANGES
public static final java.lang.String RIGHT_BRACKET
Constructor Detail |
---|
public ResourceInfo()
public ResourceInfo(org.w3c.dom.Element e) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public ResourceInfo(java.lang.String qname)
Method Detail |
---|
public void addDeferredAttribute(com.waveset.object.AttributeRef ref)
public void addPasswordToPasswordHistory(byte[] newPassword) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void addPasswordToPasswordHistory(byte[] newPassword, java.lang.String enc) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void dumpSummary(java.lang.String file)
public boolean generateTempId()
public java.lang.String getAccountDisplayName()
public java.lang.String getAccountGUID()
public java.lang.String getAccountId()
public java.lang.String getAccountID()
public java.lang.String getAccountIdAttribute()
public java.lang.String getAccountType()
public java.util.Map getAttributes()
public java.util.Map getAttributeUpdates()
public WSAttribute getAttributeValues(com.sun.idm.object.IDMObjectClassAttribute attrDef)
getAttributeValues
in interface com.waveset.object.AttributeBag
public java.util.Map getCurrentAttributes()
public java.util.List getDeferredAttributes()
public java.lang.String getDependentResourceId()
public java.lang.String getElementName()
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public java.lang.String getFullName()
public long getLastPasswordUpdate()
public java.lang.String getName()
public PersistentObject getOwner()
public com.waveset.util.EncryptedData getPassword()
public java.util.List getPasswordHistory()
public java.lang.String getPendingManualAction()
public java.util.Map getProperties()
public java.lang.String getQualifiedName()
public java.lang.String getRejector()
public com.waveset.object.Resource getResource() throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public java.util.List getResourceAttributeChanges()
public java.util.Map getResourceAttributes()
public java.lang.String getResourceDisplayName()
public java.lang.String getResourceInstanceDisplayName()
public java.lang.String getResourceInstanceName()
public java.lang.String getResourceName()
public com.waveset.object.ObjectRef getResourceRef()
public WavesetResult getResult()
public java.util.Map getResultAttributes()
public java.lang.String getTempId()
public java.util.Map getTemplateParameters()
public java.lang.String getViewName()
public boolean isAccountCreated()
public boolean isDelete()
public boolean isDisabled()
public boolean isDiscovered()
public boolean isIdentityEqual(ResourceInfo info)
public boolean isPasswordReset()
public boolean isPendingApproval()
public boolean isPendingManualAction()
public boolean isPrimary()
public boolean isPrivate()
public boolean isProtected()
public boolean isProvisioningError()
public boolean isReferenced()
public boolean isResourceEqual(ResourceInfo info)
public boolean isTarget(ResourceInfo identity)
public void parseQualifiedName(java.lang.String qname)
public void parseXml(org.w3c.dom.Element e) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public static ResourceInfo[] parseXmlArray(org.w3c.dom.Element e, PersistentObject owner) throws com.waveset.util.WavesetException
com.waveset.util.WavesetException
public void setAccountCreated(boolean e)
public void setAccountDisplayName(java.lang.String name)
public void setAccountGUID(java.lang.String accountGUID)
public void setAccountId(java.lang.String accountId)
public void setAccountID(java.lang.String id)
public void setAccountId(java.lang.String accountId, boolean clearRelatedFields)
clearRelatedFields
- if true, indicates that this method should
clear related fields (e.g., fullname).public void setAccountIdAttribute(java.lang.String s)
public void setAccountType(java.lang.String accountType)
public void setAttributes(java.util.Map atts)
public void setAttributeUpdates(java.util.Map updates)
public void setCurrentAttributes(java.util.Map map)
public void setDeferredAttributes(java.util.List atts)
public void setDelete(boolean b)
public void setDependentResourceId(java.lang.String id)
public void setDisabled(boolean e)
public void setDiscovered(boolean b)
public void setLastPasswordChange(long millis)
public void setOwner(PersistentObject owner)
public void setPassword(com.waveset.util.EncryptedData p)
public void setPassword(java.lang.String p)
public void setPasswordReset(boolean passwordReset)
public void setPendingApproval(boolean b)
public void setPendingManualAction(java.lang.String name)
public void setPrimary(boolean b)
public void setPrivate(boolean b)
public void setProperties(java.util.Map properties)
public void setProtected(boolean p)
public void setProvisioningError(boolean b)
public void setReferenced(boolean b)
public void setRejector(java.lang.String name)
public void setResource(com.waveset.object.Resource r)
public void setResourceAttributeChanges(java.util.List changes)
public void setResourceAttributes(java.util.Map atts)
public void setResourceName(java.lang.String name)
public void setResourceRef(com.waveset.object.ObjectRef ref)
public void setResult(WavesetResult result)
public void setResultAttributes(java.util.Map map)
public void setTempId(java.lang.String s)
public void setTemplateParameters(java.util.Map params)
public void setViewName(java.lang.String name)
public java.lang.String toIdentityString()
toIdentityString
in class AbstractXmlObject
public java.lang.String toString()
java.lang.Object
.
toString
in class java.lang.Object
public java.lang.String toVerboseString()
toVerboseString
in class AbstractXmlObject
public java.lang.String toVerboseString(java.lang.String linePrefix)
toVerboseString
in class AbstractXmlObject
public void toXml(java.lang.StringBuffer b, int indent)
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
b
- StringBuffer in which to write the generated xmlindent
- Number of spaces to indent the generated xml block
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |