|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.common.object.ObjectDefinitionImpl
com.metamatrix.common.callback.CallbackImpl
public class CallbackImpl
Implementations of this interface are passed to a CallbackHandler,
allowing underlying services the ability to interact with a calling
application to retrieve specific authentication data such as usernames
and passwords, or to display certain information, such as error and warning messages.
Following the completion of the handle
method on CallbackHandler,
the component that generated the callbacks can then obtain the information
from the callbacks.
Callback implementations do not retrieve or display the information requested by underlying security services. Callback implementations simply provide the means to pass such requests to applications, and for applications, if appropriate, to return requested information back to the underlying security services.
Constructor Summary | |
---|---|
CallbackImpl(java.lang.String name,
java.lang.String displayName,
CallbackChoices choices)
|
|
CallbackImpl(java.lang.String name,
java.lang.String displayName,
CallbackChoices choices,
PropertiedObject propertiedObject,
PropertiedObjectEditor propertiedObjectEditor)
|
|
CallbackImpl(java.lang.String name,
java.lang.String displayName,
CallbackChoices choices,
PropertiedObject propertiedObject,
PropertiedObjectEditor propertiedObjectEditor,
java.util.List propertyDefinitionGroups,
boolean isSequential)
|
Method Summary | |
---|---|
CallbackChoices |
getChoices()
get the choice options that are available for providing this callback's setChoice() method. |
PropertiedObjectEditor |
getEditor()
return the PropertiedObjectEditor that the CallbackHandler should user to edit this Callback's PropertiedObject. |
PropertyDefinitionGroup |
getNextGroup()
return the next PropertyDefinitionGroup. |
PropertyDefinitionGroup |
getPreviousGroup()
return the previous PropertyDefinitionGroup. |
PropertiedObject |
getPropertiedObject()
return a PropertiedObject that the CallbackHandler should use and modify to hold any values in response to this Callback. |
java.util.List |
getPropertyDefinitionGroups()
return the list of PropertyDefinitionGroups contained by this Callback. |
int |
getResponse()
return the response that this callback received from the callback handler. |
boolean |
hasNextGroup()
determine if there is a next PropertyDefinitionGroup. |
boolean |
hasPreviousGroup()
determine if there is a previous PropertyDefinitionGroup. |
boolean |
hasPropertiedObject()
determine if this Callback contains a PropertiedObject that should be modified to provide values for the resource requesting the callback. |
boolean |
hasPropertyDefinitionGroups()
determine if this Callback contains one or more PropertyDefinitionGroups. |
boolean |
isSequential()
determine if the List of PropertyDefinitionGroups contained by this object should be processed one-by-one in order (as in a "wizard"), or all at once (as in a tabbed panel). |
void |
setResponse(int responseIndex)
set the response to this callback from the options provide by this callback's getOptions() method. |
Methods inherited from class com.metamatrix.common.object.ObjectDefinitionImpl |
---|
clone, compareTo, computeDisplayName, computePluralDisplayName, equals, getDisplayName, getName, getPluralDisplayName, getShortDescription, getShortDisplayName, hashCode, setDisplayName, setName, setPluralDisplayName, setShortDescription, setShortDisplayName, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.metamatrix.common.object.ObjectDefinition |
---|
compareTo, equals, getDisplayName, getName, getPluralDisplayName, getShortDescription, getShortDisplayName, toString |
Constructor Detail |
---|
public CallbackImpl(java.lang.String name, java.lang.String displayName, CallbackChoices choices)
public CallbackImpl(java.lang.String name, java.lang.String displayName, CallbackChoices choices, PropertiedObject propertiedObject, PropertiedObjectEditor propertiedObjectEditor)
public CallbackImpl(java.lang.String name, java.lang.String displayName, CallbackChoices choices, PropertiedObject propertiedObject, PropertiedObjectEditor propertiedObjectEditor, java.util.List propertyDefinitionGroups, boolean isSequential)
Method Detail |
---|
public int getResponse()
public CallbackChoices getChoices()
getChoices
in interface Callback
public void setResponse(int responseIndex)
setResponse
in interface Callback
response
- the response value from among the chioce options:
YES, NO, CANCEL, or OK.public boolean hasPropertiedObject()
hasPropertiedObject
in interface Callback
public boolean hasPropertyDefinitionGroups()
hasPropertyDefinitionGroups
in interface Callback
public boolean isSequential()
isSequential
in interface Callback
public PropertiedObjectEditor getEditor()
getEditor
in interface Callback
public PropertiedObject getPropertiedObject()
getPropertiedObject
in interface Callback
public java.util.List getPropertyDefinitionGroups()
getPropertyDefinitionGroups
in interface Callback
public boolean hasNextGroup()
hasNextGroup
in interface Callback
public boolean hasPreviousGroup()
hasPreviousGroup
in interface Callback
public PropertyDefinitionGroup getNextGroup()
getNextGroup
in interface Callback
public PropertyDefinitionGroup getPreviousGroup()
getPreviousGroup
in interface Callback
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |