public class ActionDescriptor extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
ActionDescriptor.Action
The action to perform.
|
Constructor and Description |
---|
ActionDescriptor(String name,
String description,
ActionDescriptor.Action action)
Constructor to create a new ActionDescriptor.
|
ActionDescriptor(String name,
String description,
String contentType,
String filename,
ActionDescriptor.Action action)
Constructor to create a new ActionDescriptor that represents a download action from the GUI.
|
Modifier and Type | Method and Description |
---|---|
ActionDescriptor.Action |
getAction()
Gets the actual
ActionDescriptor.Action implementations associated with this ActionDescriptor. |
String |
getDescription()
Gets the description of this action.
|
String |
getDownloadContentType()
Gets the content type of this download action.
|
String |
getDownloadFilename()
Get the download filename of this download action.
|
String |
getName()
Gets the name of this action.
|
boolean |
isDownload()
Returns whether or not the action result should be downloaded instead of displayed.
|
public ActionDescriptor(String name, String description, ActionDescriptor.Action action)
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.public ActionDescriptor(String name, String description, String contentType, String filename, ActionDescriptor.Action action)
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 invokedpublic String getName()
public String getDescription()
public ActionDescriptor.Action getAction()
ActionDescriptor.Action
implementations associated with this ActionDescriptor.public boolean isDownload()
public String getDownloadContentType()
public String getDownloadFilename()
Copyright 2019 Ping Identity Corp. All rights reserved.