com.waveset.object
Class ComplianceViolation

java.lang.Object
  extended bycom.waveset.object.PersistentObject
      extended bycom.waveset.object.ComplianceViolation
All Implemented Interfaces:
java.lang.Comparable, javax.naming.Referenceable, XmlObject

public class ComplianceViolation
extends PersistentObject

A class used to represent Audit policies.


Nested Class Summary
 
Nested classes inherited from class com.waveset.object.PersistentObject
PersistentObject.Comparator, PersistentObject.InitialInstance
 
Field Summary
static java.lang.String code_id
           
 
Fields inherited from class com.waveset.object.PersistentObject
_trace, trace
 
Constructor Summary
ComplianceViolation()
          Create an empty policy ready for filling.
ComplianceViolation(org.w3c.dom.Element e)
          Flesh out policy object by parsing its XML representation.
 
Method Summary
protected  void addSubclassAttributes(java.lang.StringBuffer b)
          Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist).
protected  void addSubclassElements(java.lang.StringBuffer b)
          Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist).
protected  WSAttribute getAttributeValues(java.lang.String attrName)
           
 ObjectRef getAuditPolicyRef()
           
 java.lang.String getComment()
           
 java.lang.String getDescription()
           
 java.util.Date getExpirationDate()
           
 java.lang.Object getExtendedResult(java.lang.String key)
           
 java.util.Map getExtendedResults()
           
 java.util.Date getRemediationDate()
           
 ObjectRef getRemediatorRef()
           
 ObjectRef getResourceRef()
           
 ObjectRef getRuleRef()
           
 java.lang.String getTrackingId()
          Get the optional tracking id.
 Type getType()
          Returns the associated Type object.
 java.lang.String getUserEntitlementId()
          Get the ID for the related UserEntitlement record.
 ObjectRef getUserRef()
           
 int getViolationCount()
           
 java.lang.String getViolationState()
           
 java.util.List listQueryableAttributes()
           
 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).
protected  void parseSubclassAttributes(org.w3c.dom.Element e)
          Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer).
protected  void parseSubclassElements(org.w3c.dom.Element e)
          Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer).
 void setAuditPolicyRef(ObjectRef ref)
           
 void setComment(java.lang.String comment)
           
 void setDescription(java.lang.String description)
           
 void setExpirationDate(java.util.Date expiration)
           
 void setExtendedResults(java.util.Map results)
           
 void setRemediationDate(java.util.Date remediationDate)
           
 void setRemediatorRef(ObjectRef ref)
           
 void setResourceRef(ObjectRef ref)
           
 void setRuleRef(ObjectRef ref)
           
 void setTrackingId(java.lang.String id)
          Set an optional tracking ID.
 void setUserEntitlementId(java.lang.String id)
          Set the ID for the related UserEntitlement record.
 void setUserRef(ObjectRef ref)
           
 void setViolationCount(int count)
           
 void setViolationState(java.lang.String violationState)
           
 
Methods inherited from class com.waveset.object.PersistentObject
addCommonElements, addEndTag, addMemberObjectGroup, addMemberObjectGroup, addPersistentAttributes, addStartTag, addSummaryAttributes, addXmlHeader, attributesMatch, attributesMatch, attributesMatch, checkReference, checkReferences, clearId, cloneAs, cloneObject, compareTo, create, create, create, create, createLastModItem, createLastModItem, createLastModItemList, directObjectGroupMember, dump, dumpFile, equals, fakeId, getAttribute, getAttributeValues, getAuthReferences, getAuthType, getBasicAttributes, getBasicAttributes, getBasicAttributes, getCache, getCounterValue, getCreateDate, getCreator, getDisplayableName, getDisplayName, getElementName, getEncryptedValues, getId, getIdOrName, getInitialInstances, getLastMod, getLastModDate, getLastModifier, getLastModItemId, getLockInfo, getMemberObjectGroupRefs, getMemberObjectGroupRefsUpTo, getMemberObjectGroups, getName, getNameOrId, getProperties, getProperty, getPropertyAsString, getPropertyList, getQueryableAttributes, getReference, getReferences, getRuleDrivenMemberObjectGroupRefs, getRuleDrivenMemberObjectGroupRefsUpTo, getRuleDrivenMemberObjectGroups, getSubtype, getSummaryAttributes, getSummaryString, hasEncryptedData, hashCode, identityEquals, isAlias, isHidden, isId, isProtected, isProtectedFromDelete, isReferencedIn, listOperationalAttributes, listQueryableReferenceAttributes, objectGroupMember, objectGroupMemberRef, parseCommonElement, parseCommonElements, parsePersistentAttributes, parseXml, parseXml, prepareForSerialization, prepareToSerialize, println, reEncrypt, reEncryptSubclassAttributes, removeMemberObjectGroup, removeProperty, resolve, resolve, resolve, resolveArray, resolveArrayByFetching, resolveObjectReference, resolveObjectReferences, resolveReference, resolveSummaryAttributes, resolveSummaryAttributes, ruleDrivenObjectGroupMemberRef, setAuthType, setAuthType, setCache, setCreateDate, setCreator, setDisplayName, setDisplayName, setHidden, setIsAlias, setLastMod, setLastMod, setLastModDate, setLastModifier, setMemberObjectGroupRef, setMemberObjectGroupRefs, setMemberObjectGroups, setName, setProperties, setProperty, setPropertyList, setProtected, setProtectedFromDelete, setRuleDrivenMembersCache, setSubtype, setTrace, toString, toXml, toXml, toXml, toXmlFile, visit
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

code_id

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

ComplianceViolation

public ComplianceViolation()
Create an empty policy ready for filling.


ComplianceViolation

public ComplianceViolation(org.w3c.dom.Element e)
                    throws WavesetException
Flesh out policy object by parsing its XML representation.

Method Detail

getType

public Type getType()
Returns the associated Type object.

Specified by:
getType in class PersistentObject

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

getResourceRef

public ObjectRef getResourceRef()

setResourceRef

public void setResourceRef(ObjectRef ref)

getUserRef

public ObjectRef getUserRef()

setUserRef

public void setUserRef(ObjectRef ref)

getViolationState

public java.lang.String getViolationState()

setViolationState

public void setViolationState(java.lang.String violationState)

getRemediatorRef

public ObjectRef getRemediatorRef()

setRemediatorRef

public void setRemediatorRef(ObjectRef ref)

getAuditPolicyRef

public ObjectRef getAuditPolicyRef()

setAuditPolicyRef

public void setAuditPolicyRef(ObjectRef ref)

getExpirationDate

public java.util.Date getExpirationDate()

setExpirationDate

public void setExpirationDate(java.util.Date expiration)

getRemediationDate

public java.util.Date getRemediationDate()

setRemediationDate

public void setRemediationDate(java.util.Date remediationDate)

getRuleRef

public ObjectRef getRuleRef()

setRuleRef

public void setRuleRef(ObjectRef ref)

getViolationCount

public int getViolationCount()

setViolationCount

public void setViolationCount(int count)

getExtendedResults

public java.util.Map getExtendedResults()

getExtendedResult

public java.lang.Object getExtendedResult(java.lang.String key)

setTrackingId

public void setTrackingId(java.lang.String id)
Set an optional tracking ID. This ID is one of the inline parameters and can be used in queries to find related WorkItems.


getTrackingId

public java.lang.String getTrackingId()
Get the optional tracking id. This ID is one of the inline parameters and can be used in queries to find related WorkItems.


setUserEntitlementId

public void setUserEntitlementId(java.lang.String id)
Set the ID for the related UserEntitlement record.


getUserEntitlementId

public java.lang.String getUserEntitlementId()
Get the ID for the related UserEntitlement record. This will be non-null only if the CV was created as part of an access review.


setExtendedResults

public void setExtendedResults(java.util.Map results)

listQueryableAttributes

public java.util.List listQueryableAttributes()
Overrides:
listQueryableAttributes in class PersistentObject
Returns:
the complete list of 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.


listSummaryAttributes

public java.util.List listSummaryAttributes()
Description copied from class: PersistentObject
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).

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.

Overrides:
listSummaryAttributes in class PersistentObject
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).

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.

See Also:
Constants.MAX_SUMMARY_STRING_LENGTH, PersistentObject.getSummaryString()

getAttributeValues

protected WSAttribute getAttributeValues(java.lang.String attrName)
Overrides:
getAttributeValues in class PersistentObject
Parameters:
attrName - - the name of the attribute for which to return values.
Returns:
a WSAttribute that represents the value (or values) that this object contains for the specified attribute.


addSubclassAttributes

protected void addSubclassAttributes(java.lang.StringBuffer b)
Description copied from class: PersistentObject
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). PersistentObject's default implementation is a no-op.

NOTE: Any subclass that overrides this method must similarly override parseSubclassAttributes() so that the subclass attributes are restored.

Overrides:
addSubclassAttributes in class PersistentObject
See Also:


addSubclassElements

protected void addSubclassElements(java.lang.StringBuffer b)
Description copied from class: PersistentObject
Each concrete subclass may append to the buffer an XML representation of any fields it adds to PersistentObject (if those field values must persist). PersistentObject's default implementation is a no-op.

NOTE: Any subclass that overrides this method must similarly override parseSubclassElements() so that the subclass elements are restored.

Overrides:
addSubclassElements in class PersistentObject
See Also:


parseSubclassAttributes

protected void parseSubclassAttributes(org.w3c.dom.Element e)
                                throws WavesetException
Description copied from class: PersistentObject
Each concrete subclass should parse from the XML buffer any persisted subclass-specific fields (generally, the same ones that it writes into the buffer).

Overrides:
parseSubclassAttributes in class PersistentObject
Throws:
WavesetException
See Also:

PersistentObject's default implementation is a no-op.

, PersistentObject.parseXml(Element)

parseSubclassElements

protected void parseSubclassElements(org.w3c.dom.Element e)
                              throws WavesetException
Description copied from class: PersistentObject
Each concrete subclass should parse from the XML buffer any persisted subclass-specific elements (generally, the same ones that it writes into the buffer).

Overrides:
parseSubclassElements in class PersistentObject
Throws:
WavesetException
See Also:

PersistentObject's default implementation is a no-op.

, PersistentObject.parseXml(Element)