public class ImpactReason
extends java.lang.Object
implements java.io.Serializable
There are three types of impacts in the ImpactType enumeration:
For EXPLICITLY_REJECTED_BY_USER there are not supporting objects included. For IMPLIED_BY_ACCOUNT_REJECTION, the relevant Account object is included. For IMPLIED_BY_ROLE_REJECTION, the relevant Role objects are included as supporting data.
| Modifier and Type | Class and Description |
|---|---|
static class |
ImpactReason.ImpactType |
| Constructor and Description |
|---|
ImpactReason(ImpactReason.ImpactType type)
Constructs an ImpactReason with the specified ImpactType,
and no supporting data objects.
|
ImpactReason(ImpactReason.ImpactType type,
java.util.List supportingObjects)
Constructs an ImpactReason with the specified ImpactType
and List of supporting data objects.
|
ImpactReason(ImpactReason.ImpactType type,
java.lang.Object supportingObject)
Constructs an ImpactReason with the specified ImpactType
and a single supporting data object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the values in the reason.
|
java.util.List |
getSupportingObjects()
Returns the List of supporting data Objects
for this object.
|
ImpactReason.ImpactType |
getType()
Returns the ImpactType for this object.
|
int |
hashCode()
Returns the hash code for this object.
|
public ImpactReason(ImpactReason.ImpactType type)
type - the ImpactTypepublic ImpactReason(ImpactReason.ImpactType type, java.util.List supportingObjects)
type - the ImpactTypesupportingObjects - the List of supporting Objectspublic ImpactReason(ImpactReason.ImpactType type, java.lang.Object supportingObject)
type - the ImpactTypesupportingObject - the supporting Objectpublic ImpactReason.ImpactType getType()
public java.util.List getSupportingObjects()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the ImpactReason to compare to this one