org.sourceid.saml20.adapter.gui
Class ActionDescriptor
java.lang.Object
org.sourceid.saml20.adapter.gui.ActionDescriptor
- All Implemented Interfaces:
- java.io.Serializable
public class ActionDescriptor
- extends java.lang.Object
- implements java.io.Serializable
An ActionDescriptor can be used to invoke arbitrary actions on an adapter via the GUI.
- Author:
- Brian Campbell
- See Also:
AdapterConfigurationGuiDescriptor.addAction(ActionDescriptor)
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ActionDescriptor
public ActionDescriptor(java.lang.String name,
java.lang.String description,
ActionDescriptor.Action action)
- Parameters:
name
- the name of the actiondescription
- a description of the actionaction
- an implementation of the Action interface that will be invoked when the
user selects this action in the GUI.
ActionDescriptor
public ActionDescriptor(java.lang.String name,
java.lang.String description,
java.lang.String contentType,
java.lang.String filename,
ActionDescriptor.Action action)
- Parameters:
name
- the name of the actiondescription
- a description of the actioncontentType
- the content-type that should be used when downloading the result of the actionfilename
- the default filename that should be used when downloading the result of the actionaction
- an implementation of the Action interface that will be invoked
getName
public java.lang.String getName()
- Returns:
- the name of this action.
getDescription
public java.lang.String getDescription()
- Returns:
- the description of this action.
getAction
public ActionDescriptor.Action getAction()
- Returns:
- the action implementation.
isDownload
public boolean isDownload()
- Returns:
- a boolean indicating if the action result should be downloaded instead of displayed
getDownloadContentType
public java.lang.String getDownloadContentType()
- Returns:
- content type string of action result
getDownloadFilename
public java.lang.String getDownloadFilename()
- Returns:
- default filename used when downloading action result
Copyright 2007 Ping Identity Corp. All rights reserved.