com.waveset.object
Class MetaEventResponse.EnableDisable
java.lang.Object
com.waveset.util.AbstractXmlObject
com.waveset.object.MetaEventResponse
com.waveset.object.MetaEventResponse.EnableDisable
- All Implemented Interfaces:
- javax.naming.Referenceable, XmlObject
- Direct Known Subclasses:
- MetaEventResponse.Disable, MetaEventResponse.Enable
- Enclosing class:
- MetaEventResponse
- public abstract static class MetaEventResponse.EnableDisable
- extends MetaEventResponse
An abstract base class used for enable and disable responses.
Method Summary |
boolean |
equals(java.lang.Object o)
|
protected Message |
getDescription(java.lang.String userAndResourcesKey,
java.lang.String allResourcesKey,
java.lang.String userAndSomeResourcesKey,
java.lang.String userKey,
java.lang.String someResourcesKey)
|
java.util.List |
getReferences()
Return a possibly-null list of ObjectRefs referenced by this response. |
java.util.List |
getResourceTargets()
|
int |
hashCode()
|
boolean |
isGlobal()
|
boolean |
isIdmUserTarget()
|
protected void |
parseXml(org.w3c.dom.Element e)
Parse the given XML into a EnableDisable response. |
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, getElementName, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MetaEventResponse.EnableDisable
public MetaEventResponse.EnableDisable()
- Default constructor.
MetaEventResponse.EnableDisable
public MetaEventResponse.EnableDisable(boolean idmUserTarget,
boolean global,
java.util.List resourceTargets)
throws WavesetException
- Constructor.
getDescription
protected Message getDescription(java.lang.String userAndResourcesKey,
java.lang.String allResourcesKey,
java.lang.String userAndSomeResourcesKey,
java.lang.String userKey,
java.lang.String someResourcesKey)
getReferences
public java.util.List getReferences()
- Description copied from class:
MetaEventResponse
- Return a possibly-null list of ObjectRefs referenced by this response.
- Specified by:
getReferences
in class MetaEventResponse
- Returns:
- A possibly-null list of ObjectRefs referenced by this response.
isGlobal
public boolean isGlobal()
- Returns:
- Returns whether the enablement/disablement should be applied
globally to all resource accounts.
isIdmUserTarget
public boolean isIdmUserTarget()
- Returns:
- Returns whether the enablement/disablement should be applied
to the IDM user.
getResourceTargets
public java.util.List getResourceTargets()
- Returns:
- Returns a list of ObjectRefs for the resources on which the
enablement/disablement should occur. This is ignored if
isGlobal() returns true.
equals
public boolean equals(java.lang.Object o)
hashCode
public int hashCode()
toXml
public void toXml(java.lang.StringBuffer b,
int indent)
- Description copied from class:
AbstractXmlObject
- Serialize into a buffer with optional indentation.
This must be implemented by the subclass.
- Specified by:
toXml
in interface XmlObject
- Specified by:
toXml
in class AbstractXmlObject
parseXml
protected void parseXml(org.w3c.dom.Element e)
throws WavesetException
- Parse the given XML into a EnableDisable response.
- Parameters:
e
- The XML element to parse.
- Throws:
WavesetException