com.waveset.object
Class ResourceInfo

java.lang.Object
  extended by com.waveset.util.AbstractXmlObject
      extended by com.waveset.object.ResourceInfo
All Implemented Interfaces:
com.waveset.object.AttributeBag, XmlObject, javax.naming.Referenceable

public class ResourceInfo
extends AbstractXmlObject
implements com.waveset.object.AttributeBag

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

ATT_ACCOUNT_DISPLAY_NAME

public static final java.lang.String ATT_ACCOUNT_DISPLAY_NAME
See Also:
Constant Field Values

ATT_ACCOUNT_GUID

public static final java.lang.String ATT_ACCOUNT_GUID
See Also:
Constant Field Values

ATT_ACCOUNT_TYPE

public static final java.lang.String ATT_ACCOUNT_TYPE
See Also:
Constant Field Values

ATT_ACCOUNTID

public static final java.lang.String ATT_ACCOUNTID
See Also:
Constant Field Values

ATT_ASCII

public static final java.lang.String ATT_ASCII
See Also:
Constant Field Values

ATT_CREATED

public static final java.lang.String ATT_CREATED
See Also:
Constant Field Values

ATT_DELETE

public static final java.lang.String ATT_DELETE
See Also:
Constant Field Values

ATT_DEPENDENT

public static final java.lang.String ATT_DEPENDENT
See Also:
Constant Field Values

ATT_DISABLED

public static final java.lang.String ATT_DISABLED
See Also:
Constant Field Values

ATT_INSTANCEID

public static final java.lang.String ATT_INSTANCEID
See Also:
Constant Field Values

ATT_LAST_PASSWORD_CHANGE

public static final java.lang.String ATT_LAST_PASSWORD_CHANGE
See Also:
Constant Field Values

ATT_PASSWORD

public static final java.lang.String ATT_PASSWORD
See Also:
Constant Field Values

ATT_PASSWORD_RESET

public static final java.lang.String ATT_PASSWORD_RESET
See Also:
Constant Field Values

ATT_PENDING

public static final java.lang.String ATT_PENDING
See Also:
Constant Field Values

ATT_PENDING_MANUAL_ACTION

public static final java.lang.String ATT_PENDING_MANUAL_ACTION
See Also:
Constant Field Values

ATT_PRIMARY

public static final java.lang.String ATT_PRIMARY
See Also:
Constant Field Values

ATT_PRIVATE

public static final java.lang.String ATT_PRIVATE
See Also:
Constant Field Values

ATT_PROTECTED

public static final java.lang.String ATT_PROTECTED
See Also:
Constant Field Values

ATT_REJECTOR

public static final java.lang.String ATT_REJECTOR
See Also:
Constant Field Values

ATT_TEMPID

public static final java.lang.String ATT_TEMPID
See Also:
Constant Field Values

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

COMPARE_RESOURCE_NAME_AND_ACCOUNT_ID

public static java.util.Comparator COMPARE_RESOURCE_NAME_AND_ACCOUNT_ID

DELIMITER

public static final java.lang.String DELIMITER
See Also:
Constant Field Values

DOT

public static final java.lang.String DOT
See Also:
Constant Field Values

EL_ACCOUNT_ATTS

public static final java.lang.String EL_ACCOUNT_ATTS
See Also:
Constant Field Values

EL_DEFERRED_ATTRIBUTES

public static final java.lang.String EL_DEFERRED_ATTRIBUTES
See Also:
Constant Field Values

EL_PASSWORD_HISTORY

public static final java.lang.String EL_PASSWORD_HISTORY
See Also:
Constant Field Values

EL_RESOURCE_ATTS

public static final java.lang.String EL_RESOURCE_ATTS
See Also:
Constant Field Values

EL_RESOURCE_PARAMS

public static final java.lang.String EL_RESOURCE_PARAMS
See Also:
Constant Field Values

EL_RESOURCE_PROPS

public static final java.lang.String EL_RESOURCE_PROPS
See Also:
Constant Field Values

ELEMENT

public static final java.lang.String ELEMENT
See Also:
Constant Field Values

EQUALS

public static final java.lang.String EQUALS
See Also:
Constant Field Values

LEFT_BRACKET

public static final java.lang.String LEFT_BRACKET
See Also:
Constant Field Values

RA_PENDING_CHANGES

public static final 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. // * Kludgey, but avoids having to have // * yet another "change" map in the ResourceInfo. We don't really need // * to worry about filtering out just the changes, here, its enough // * to know that anything changed.

See Also:
Constant Field Values

RIGHT_BRACKET

public static final java.lang.String RIGHT_BRACKET
See Also:
Constant Field Values
Constructor Detail

ResourceInfo

public ResourceInfo()
Create an empty resource info object.


ResourceInfo

public ResourceInfo(org.w3c.dom.Element e)
             throws com.waveset.util.WavesetException
Create a resource info object and initialize it by parsing its DOM representation.

Throws:
com.waveset.util.WavesetException

ResourceInfo

public ResourceInfo(java.lang.String qname)
New constructor for parsing a "qualified name" string and building a ResourceInfo containing the parsed fields. Currently the qualified name will contain the Resource name and accountId, but may need to extend to include the GUID.

Method Detail

addDeferredAttribute

public void addDeferredAttribute(com.waveset.object.AttributeRef ref)

addPasswordToPasswordHistory

public void addPasswordToPasswordHistory(byte[] newPassword)
                                  throws com.waveset.util.WavesetException
Add to the new password to the top of the list of previous passwords

Throws:
com.waveset.util.WavesetException

addPasswordToPasswordHistory

public void addPasswordToPasswordHistory(byte[] newPassword,
                                         java.lang.String enc)
                                  throws com.waveset.util.WavesetException
Add to the new password to the top of the list of previous passwords

Throws:
com.waveset.util.WavesetException

dumpSummary

public void dumpSummary(java.lang.String file)

generateTempId

public boolean generateTempId()
Generate a temporary id if we need one. Return true if one was generated. This may be used as a signal that newly generated ids need to be stored back into the repository so be sure to return true only if the tempid changed.


getAccountDisplayName

public java.lang.String getAccountDisplayName()
Get the account display name


getAccountGUID

public java.lang.String getAccountGUID()
Returns:
the account GUID. Should only be used by the resource adapters

getAccountId

public java.lang.String getAccountId()
Returns:
the accountId.

getAccountID

public java.lang.String getAccountID()
Get the account ID. This is usually the same as the WSUser name.


getAccountIdAttribute

public java.lang.String getAccountIdAttribute()

getAccountType

public java.lang.String getAccountType()
Get the type of account for the account this represents.

Returns:
the name of the account type on the resource.

getAttributes

public java.util.Map getAttributes()
Get the account attribute map.


getAttributeUpdates

public java.util.Map getAttributeUpdates()

getAttributeValues

public WSAttribute getAttributeValues(com.sun.idm.object.IDMObjectClassAttribute attrDef)
Specified by:
getAttributeValues in interface com.waveset.object.AttributeBag

getCurrentAttributes

public java.util.Map getCurrentAttributes()
Get the current attribute map.


getDeferredAttributes

public java.util.List getDeferredAttributes()
Get the deferred attributes list.


getDependentResourceId

public java.lang.String getDependentResourceId()
Get the dependent resource ID.


getElementName

public java.lang.String getElementName()
Return the XmlObject name

Specified by:
getElementName in interface XmlObject
Specified by:
getElementName in class AbstractXmlObject
Returns:
the element name

getFullName

public java.lang.String getFullName()
Return the "qualified" name of this account. This will be a combination of the resource name and the accountId. Used to identify unique accounts when there is more than one account for a given resource.


getLastPasswordUpdate

public long getLastPasswordUpdate()

getName

public java.lang.String getName()

getOwner

public PersistentObject getOwner()
Get the owning object.


getPassword

public com.waveset.util.EncryptedData getPassword()
Get the password. This is usually the same as the WSUser password, but it may be different if reprovisioning failed. It may be null if this account was discovered during bulk loading, and we don't know what the password was.


getPasswordHistory

public java.util.List getPasswordHistory()
Get all previous passwords stored for this resource info for this user


getPendingManualAction

public java.lang.String getPendingManualAction()
Get the pending manual action


getProperties

public java.util.Map getProperties()
Get the resource properties


getQualifiedName

public java.lang.String getQualifiedName()
Get the fully qualified name for this account. This is a combination of the resource name and the account id, the syntax must adhere to that recognized by the QualifiedName class.


getRejector

public java.lang.String getRejector()
Get the rejecting administrator.


getResource

public com.waveset.object.Resource getResource()
                                        throws com.waveset.util.WavesetException
Resolve the resource reference, and return the resource object. This may return null if the resource was deleted after the account was provisioned. It has been common to delete Resource objects after provisioning has been performed, then put them back. Since the delete visitor doesn't want to iterate over all user objects, its hard to prevent this from happening. So, we'll handle resolution a bit differently here. If the reference fails to resolve, we'll try to resolve by name only, under the assumption that the resource may have been restored, but it will have a different repository id.

Throws:
com.waveset.util.WavesetException

getResourceAttributeChanges

public 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. Avoids having to have another field.


getResourceAttributes

public java.util.Map getResourceAttributes()
Get the resource attribute map.


getResourceDisplayName

public java.lang.String getResourceDisplayName()
Get the associated Resource name.


getResourceInstanceDisplayName

public java.lang.String getResourceInstanceDisplayName()

getResourceInstanceName

public java.lang.String getResourceInstanceName()

getResourceName

public java.lang.String getResourceName()
Get the associated Resource name.


getResourceRef

public com.waveset.object.ObjectRef getResourceRef()
Get the resource reference.


getResult

public WavesetResult getResult()
Get fetch results


getResultAttributes

public java.util.Map getResultAttributes()
Get the return attribute map.


getTempId

public java.lang.String getTempId()

getTemplateParameters

public java.util.Map getTemplateParameters()

getViewName

public java.lang.String getViewName()

isAccountCreated

public boolean isAccountCreated()
Test to see if the account was created.


isDelete

public boolean isDelete()

isDisabled

public boolean isDisabled()
Test to see if the account is disabled.


isDiscovered

public boolean isDiscovered()

isIdentityEqual

public boolean isIdentityEqual(ResourceInfo info)
Returns true if two ResourceInfos identify the same account. This returns an exact match, it cannot be used for "target" validation. See isTarget below. // NOTE: do not overload equals() that always gets you into trouble.


isPasswordReset

public boolean isPasswordReset()
Tests the password reset flag.


isPendingApproval

public boolean isPendingApproval()
Test the pending approval flag.


isPendingManualAction

public boolean isPendingManualAction()
Test the pending manual action flag


isPrimary

public boolean isPrimary()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()
Test to see if the account is protected.


isProvisioningError

public boolean isProvisioningError()

isReferenced

public boolean isReferenced()
Test to see if the referenced flag is on.


isResourceEqual

public boolean isResourceEqual(ResourceInfo info)
Return true if the Resource identified by one ResourceInfo is equal to another.


isTarget

public 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. This differs from identityEquals in that the "identity" ResourceInfo may be less specific. For example if the identity ResourceInfo does not have a GUID or accountId or tempId, any target ResourceInfo that references the same resource is considered a target. Note, if this resource info is pending a manual provisioning, then it can't be a target until that manual provisioning is complete.


parseQualifiedName

public void parseQualifiedName(java.lang.String qname)
Called by the ResourceInfo(String) constructor. Given a string that may or may not have a qualified name, parse it and assign the associated ResourceInfo fields.


parseXml

public void parseXml(org.w3c.dom.Element e)
              throws com.waveset.util.WavesetException
Parse the DOM representation of an info object, and set the corresponding fields.

Throws:
com.waveset.util.WavesetException

parseXmlArray

public static ResourceInfo[] parseXmlArray(org.w3c.dom.Element e,
                                           PersistentObject owner)
                                    throws com.waveset.util.WavesetException
Parse the DOM representatino for a list of ResourceInfo objects, and return them in an array. The given element is assumed to be a wrapper element around the list.

Throws:
com.waveset.util.WavesetException

setAccountCreated

public void setAccountCreated(boolean e)
Set the account created flag.


setAccountDisplayName

public void setAccountDisplayName(java.lang.String name)
Set the account display name.


setAccountGUID

public void setAccountGUID(java.lang.String accountGUID)
Set the account GUID. Should only be used by resource adapters


setAccountId

public void setAccountId(java.lang.String accountId)
Set the account id. Clear related fields (e.g., fullname) if accountId changes.


setAccountID

public void setAccountID(java.lang.String id)
Set the account id.


setAccountId

public void setAccountId(java.lang.String accountId,
                         boolean clearRelatedFields)
Set the accountId.

Parameters:
clearRelatedFields - if true, indicates that this method should clear related fields (e.g., fullname).

setAccountIdAttribute

public void setAccountIdAttribute(java.lang.String s)

setAccountType

public void setAccountType(java.lang.String accountType)
Set the type of account for the account this represents.


setAttributes

public void setAttributes(java.util.Map atts)
Set the account attribute map.


setAttributeUpdates

public void setAttributeUpdates(java.util.Map updates)

setCurrentAttributes

public void setCurrentAttributes(java.util.Map map)
Set the current attribute map.


setDeferredAttributes

public void setDeferredAttributes(java.util.List atts)
Set the deferred attributes list.


setDelete

public void setDelete(boolean b)

setDependentResourceId

public void setDependentResourceId(java.lang.String id)
Set the dependent resource ID.


setDisabled

public void setDisabled(boolean e)
Set the account disabled flag.


setDiscovered

public void setDiscovered(boolean b)

setLastPasswordChange

public void setLastPasswordChange(long millis)

setOwner

public void setOwner(PersistentObject owner)
Set the owning user object.


setPassword

public void setPassword(com.waveset.util.EncryptedData p)
Set the password.


setPassword

public void setPassword(java.lang.String p)
Set the password.


setPasswordReset

public void setPasswordReset(boolean passwordReset)
Sets the password reset flag.


setPendingApproval

public void setPendingApproval(boolean b)
Set the pending approval flag.


setPendingManualAction

public void setPendingManualAction(java.lang.String name)
Set the pending manual action


setPrimary

public void setPrimary(boolean b)

setPrivate

public void setPrivate(boolean b)

setProperties

public void setProperties(java.util.Map properties)
Set the resource properties.


setProtected

public void setProtected(boolean p)
Set the protected flag. This may be set by an application to control whether reprovisioning will propagate chanages to this resource.


setProvisioningError

public void setProvisioningError(boolean b)
This is used in some older adapters, but it has no effect.


setReferenced

public void setReferenced(boolean b)
Sets the referenced flag. This is a runtime only flag used by the provisioner, it isn't stored.


setRejector

public void setRejector(java.lang.String name)
Set the rejecting administrator.


setResource

public void setResource(com.waveset.object.Resource r)
Set the resource. This will be converted into a resource reference internally.


setResourceAttributeChanges

public 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. Avoids having to have another field.


setResourceAttributes

public void setResourceAttributes(java.util.Map atts)
Set the resource attribute map.


setResourceName

public void setResourceName(java.lang.String name)

setResourceRef

public void setResourceRef(com.waveset.object.ObjectRef ref)
Set the resource reference.


setResult

public void setResult(WavesetResult result)
Set fetch results.


setResultAttributes

public void setResultAttributes(java.util.Map map)
Set the return attribute map.


setTempId

public 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.


setTemplateParameters

public void setTemplateParameters(java.util.Map params)

setViewName

public void setViewName(java.lang.String name)
A transient unique identifier used during the user view conversion process. It is not stored and has no meaning outside of view conversion.


toIdentityString

public java.lang.String toIdentityString()
Overrides:
toIdentityString in class AbstractXmlObject

toString

public java.lang.String toString()
Overrides java.lang.Object.

Overrides:
toString in class java.lang.Object

toVerboseString

public java.lang.String toVerboseString()
Overrides:
toVerboseString in class AbstractXmlObject

toVerboseString

public java.lang.String toVerboseString(java.lang.String linePrefix)
Overrides:
toVerboseString in class AbstractXmlObject

toXml

public void toXml(java.lang.StringBuffer b,
                  int indent)
Serialize the resource info object to an XML string buffer.

Specified by:
toXml in interface XmlObject
Specified by:
toXml in class AbstractXmlObject
Parameters:
b - StringBuffer in which to write the generated xml
indent - Number of spaces to indent the generated xml block