|
||||||||||
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.MetaEvent
A MetaEvent stores information about how to detect and respond to identity related events that occur in Identity Manager.
Nested Class Summary | |
static class |
MetaEvent.Type
Enumeration class of the event types to detect. |
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
MetaEvent(org.w3c.dom.Element e)
Constructor that takes an Element (required by XmlObject). |
|
MetaEvent(MetaEvent.Type eventType)
Create a MetaEvent for the given type. |
Method Summary | |
void |
addResponse(MetaEventResponse response)
Add a response for this event. |
void |
addSourceResource(ObjectRef source,
ObjectRef detectionRule)
Add a source resource to this event. |
void |
clearSourceResources()
Clear the source resources and their event detection rules. |
boolean |
detectEventNatively(ObjectRef source)
Return whether the event is to be detected natively on the given resource or not. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getElementName()
Return the element name. |
ObjectRef |
getEventDetectionRule(ObjectRef source)
Return the ObjectRef of the event detection rule for the given source resource, or null if the event is detected natively. |
MetaEvent.Type |
getEventType()
|
java.util.List |
getReferences()
Return all ObjectRefs referenced by this attribute. |
java.util.List |
getResponses()
|
java.util.List |
getSourceResources()
Return a List of ObjectRefs of all source resource. |
int |
hashCode()
|
void |
setEventType(MetaEvent.Type eventType)
|
void |
setResponses(java.util.List responses)
Set the responses for this event. |
java.lang.String |
toString()
|
void |
toXml(java.lang.StringBuffer b,
int indent)
Serialize into a buffer with optional indentation. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public MetaEvent(MetaEvent.Type eventType)
eventType
- The non-null event type.public MetaEvent(org.w3c.dom.Element e) throws WavesetException
e
- The Element from which to construct this object.Method Detail |
public java.util.List getReferences()
PersistentObject.getReferences()
public MetaEvent.Type getEventType()
public void setEventType(MetaEvent.Type eventType)
eventType
- The eventType to set.public java.util.List getSourceResources()
public void addSourceResource(ObjectRef source, ObjectRef detectionRule)
source
- The source resource to add.detectionRule
- A possibly null ObjectRef of the Rule to execute
to detect the event on the given resource.public void clearSourceResources()
public ObjectRef getEventDetectionRule(ObjectRef source)
source
- The ObjectRef of the source for which to retrieve the
event detection rule.
public boolean detectEventNatively(ObjectRef source)
source
- The ObjectRef of the source resource on which the event
is to be detected.
public java.util.List getResponses()
public void setResponses(java.util.List responses)
responses
- The responses to set.public void addResponse(MetaEventResponse response) throws WavesetException
response
- The response to add.
WavesetException
- If another response of this type is already
defined for this event.public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
public java.lang.String getElementName()
AbstractXmlObject
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public void toXml(java.lang.StringBuffer b, int indent)
AbstractXmlObject
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |