Class AbstractApplicationPlugin
java.lang.Object
org.codice.ddf.admin.application.plugin.AbstractApplicationPlugin
- All Implemented Interfaces:
ApplicationPlugin
Handles the basic work for an AbstractApplicationPlugin.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringthe display name.protected URIthe location of the iframe.Fields inherited from interface org.codice.ddf.admin.application.plugin.ApplicationPlugin
ALL_ASSOCATION_KEY, APPLICATION_ASSOCIATION_KEY, DISPLAY_NAME_KEY, ID_KEY, IFRAME_LOCATION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAssocations(List<String> applicationAssociations) Adds an application assocation list to the existing list.voidaddAssociations(String applicationAssocation) Adds a single application association to this plugin.Returns a list of applications that this plugin should be associated with.Returns the display name.getID()Returns the id of this plugin.Returns the iframe location.booleanmatchesAssocationName(String appName) Handles figuring out if this plugin is matching to the app name sent in.voidsetAssociations(List<String> applicationAssociations) Sets the application assocations to the inputted values.protected voidsetDisplayName(String displayName) protected voidsetIframeLocation(URI iframeLocation) toJSON()Utility method that will handle the conversion of this object to something jolokia can convert to json.
-
Field Details
-
displayName
the display name. Protected so implementers can set this. -
iframeLocation
the location of the iframe. Protected so implementers can set this.
-
-
Constructor Details
-
AbstractApplicationPlugin
public AbstractApplicationPlugin()Constructor.
-
-
Method Details
-
getAssocations
Returns a list of applications that this plugin should be associated with..- Specified by:
getAssocationsin interfaceApplicationPlugin- Returns:
- a list of applications that this plugin should be associated with.
-
getDisplayName
Returns the display name. This is the value that will be display to the user..- Specified by:
getDisplayNamein interfaceApplicationPlugin- Returns:
- the display name.
-
getIframeLocation
Returns the iframe location. Can be null..- Specified by:
getIframeLocationin interfaceApplicationPlugin- Returns:
- the iframe location.
-
toJSON
Utility method that will handle the conversion of this object to something jolokia can convert to json..- Specified by:
toJSONin interfaceApplicationPlugin- Returns:
- a constructed map that jolokia can convert to json.
-
matchesAssocationName
Handles figuring out if this plugin is matching to the app name sent in. This will handle the case where a plugin should be used for all..- Specified by:
matchesAssocationNamein interfaceApplicationPlugin- Returns:
- yes if the application matches, or should be applied to all applications, false if it doesn't.
-
getID
Returns the id of this plugin. This is an unique identifier for the front end javascript..- Specified by:
getIDin interfaceApplicationPlugin- Returns:
- a unique identifier for this plugin as a uuid.
-
setAssociations
Sets the application assocations to the inputted values. This will overwrite all previous values..- Specified by:
setAssociationsin interfaceApplicationPlugin
-
addAssociations
Adds a single application association to this plugin. If the application is already there, then nothing will happen..- Specified by:
addAssociationsin interfaceApplicationPlugin
-
addAssocations
Adds an application assocation list to the existing list. This does not overwrite the previous values, and if there is an existing value it wont add it..- Specified by:
addAssocationsin interfaceApplicationPlugin
-
setIframeLocation
-
setDisplayName
-