public class MetacardTransformerActionProvider extends AbstractMetacardActionProvider
| Constructor and Description |
|---|
MetacardTransformerActionProvider(String actionProviderId,
String metacardTransformerId)
Constructor to instantiate this Metacard
ActionProvider |
MetacardTransformerActionProvider(String actionProviderId,
String metacardTransformerId,
String attributeName)
Constructor to instantiate this Metacard
ActionProvider |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canHandleMetacard(Metacard metacard)
Determines if this
ActionProvider can handle this Metacard. |
protected Action |
createMetacardAction(String actionProviderId,
String title,
String description,
URL url)
Factory method that creates the proper
Action object from the information provided. |
protected URL |
getMetacardActionUrl(String metacardSource,
Metacard metacard)
|
canHandle, getAction, getId, getMetacardAction, toStringpublic MetacardTransformerActionProvider(String actionProviderId, String metacardTransformerId)
ActionProvideractionProviderId - metacardTransformerId - public MetacardTransformerActionProvider(String actionProviderId, String metacardTransformerId, String attributeName)
ActionProvideractionProviderId - metacardTransformerId - attributeName - protected URL getMetacardActionUrl(String metacardSource, Metacard metacard) throws Exception
AbstractMetacardActionProvidergetMetacardActionUrl in class AbstractMetacardActionProvidermetacardSource - source ID of the Metacardmetacard - Metacard for which a URL needs to be createdURL that will be used to create the ActionException - thrown if the URL couldn't be createdprotected boolean canHandleMetacard(Metacard metacard)
AbstractMetacardActionProviderActionProvider can handle this Metacard. Returns true by default. Should be overwritten if more complex verification is needed.canHandleMetacard in class AbstractMetacardActionProvidermetacard - metacard to which this ActionProvider could applytrue if this ActionProvider applies to the Metacardprotected Action createMetacardAction(String actionProviderId, String title, String description, URL url)
AbstractMetacardActionProviderAction object from the information provided.
Must be implemented by sub-classes.createMetacardAction in class AbstractMetacardActionProvideractionProviderId - Action IDtitle - Action titledescription - Action descriptionurl - Action urlAction object. Cannot be null.This work is licensed under a Creative Commons Attribution 4.0 International License.