Class PreviewActionProvider
java.lang.Object
org.codice.ddf.catalog.actions.AbstractMetacardActionProvider
org.codice.ddf.transformer.preview.actions.PreviewActionProvider
- All Implemented Interfaces:
ddf.action.ActionProvider
-
Constructor Summary
ConstructorsModifierConstructorDescriptionPreviewActionProvider(String actionProviderId) protectedPreviewActionProvider(String actionProviderId, String title, String description) Constructor that accepts the values to be used when a newActionis created by thisActionProvider. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanHandleMetacard(ddf.catalog.data.Metacard metacard) protected ddf.action.ActioncreateMetacardAction(String actionProviderId, String title, String description, URL url) protected URLgetMetacardActionUrl(String metacardSource, ddf.catalog.data.Metacard metacard) voidsetPreviewFromMetadata(Boolean previewFromMetadata) Methods inherited from class org.codice.ddf.catalog.actions.AbstractMetacardActionProvider
canHandle, getAction, getId, getMetacardAction, toString
-
Constructor Details
-
PreviewActionProvider
Constructor that accepts the values to be used when a newActionis created by thisActionProvider.- Parameters:
actionProviderId- ID that will be assigned to theActionthat will be created. Cannot be empty or blank.title- title that will be used when thisActionProvidercreates a newActiondescription- description that will be used when thisActionProvidercreates a newAction
-
PreviewActionProvider
-
-
Method Details
-
canHandleMetacard
protected boolean canHandleMetacard(ddf.catalog.data.Metacard metacard) - Overrides:
canHandleMetacardin classAbstractMetacardActionProvider
-
createMetacardAction
protected ddf.action.Action createMetacardAction(String actionProviderId, String title, String description, URL url) - Specified by:
createMetacardActionin classAbstractMetacardActionProvider
-
getMetacardActionUrl
protected URL getMetacardActionUrl(String metacardSource, ddf.catalog.data.Metacard metacard) throws MalformedURLException, URISyntaxException, UnsupportedEncodingException - Specified by:
getMetacardActionUrlin classAbstractMetacardActionProvider- Throws:
MalformedURLExceptionURISyntaxExceptionUnsupportedEncodingException
-
getPreviewFromMetadata
-
setPreviewFromMetadata
-