Package de.xima.fc.gui.bean.plugin
Class SystemPluginBean
- java.lang.Object
-
- de.xima.fc.gui.bean.plugin.BasicPluginBean<SystemPlugin>
-
- de.xima.fc.gui.bean.plugin.SystemPluginBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class SystemPluginBean extends BasicPluginBean<SystemPlugin>
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.plugin.BasicPluginBean
all, dao, internalMessageBean, isDeactivateWithSave, isPromaDataLoading, localeBean, marked, pluginDependencies, pluginDependencyBean, pluginDescExpanded, pluginMetadataMap, pluginStoreListChecksum, pluginUpdateStatusMap, pluginValidationMap, selected, selectedPluginMetadata, selectionBean, userManager, viewContextBean, viewEventBusBean
-
-
Constructor Summary
Constructors Constructor Description SystemPluginBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PluginDependencies>
createPluginDependencies(PluginRuntime runtime)
This method creates a list of plugin dependencies.protected void
deleteInternPluginMessages(IEntityContext ec, PluginWrapperModel<SystemPlugin> plugin)
This method deletes the internal update message of a plugin.protected boolean
deletePlugin(PluginWrapperModel<SystemPlugin> plugin)
protected Set<PluginRuntime>
getAllPluginRuntimes()
protected EEntityKeySelectionType
getKeyType()
org.primefaces.model.StreamedContent
getMarkedPlugins()
protected PluginWrapperModel<SystemPlugin>
getNewPlugin()
protected boolean
save(PluginWrapperModel<SystemPlugin> plugin, boolean isUpdate)
void
updateData()
-
Methods inherited from class de.xima.fc.gui.bean.plugin.BasicPluginBean
activate, addNew, checkForAvailableUpdates, checkMarkedPluginUpdates, checkPluginUpdate, checkPluginUpdate, createStoreItemMetaResources, deactivate, deactivate, delete, deleteMarked, deletePlugins, doesPluginKeyExist, doesPluginKeyExist, ec, expandPluginDesc, getAll, getAllPluginsByKey, getEntityClassKey, getInternalMessageBean, getMarked, getPluginDependencies, getPluginFile, getPluginKey, getPluginName, getPluginsToDelete, getPluginStoreListChecksum, getPluginToDeactivate, getPluginUpdateStatusMap, getSelected, getSelectedOverwriteData, getSelectedPluginMetadata, getSelectionBean, getSinglePlugin, getStreamedContent, getUpdateStatus, getValidationErrorMessages, getValidationStatus, insertPluginUpdateStates, insertPluginUpdateStatus, isContainsEntityPlugins, isDeactivateWithSave, isLegacyPlugin, isMarkedContainsEntityPlugins, isPluginDescExpanded, isPluginStoreConnected, isPromaDataLoading, loadInitialSelectedPluginData, markedWithUpdates, onPluginSelected, openPluginDeactivateDialog, openPluginDeleteDialog, openPluginMarkedDeleteDialog, overwriteSelectedPlugin, preparePluginForUpdateCheck, save, savePlugin, selectDefault, setDeactivateWithSave, setInternalMessageBean, setMarked, setPluginDescExpanded, setPluginKeyFromChecksum, setPluginsToDelete, setPluginStoreListChecksum, setPluginToDeactivate, setPluginUpdateStatusMap, setPropertiesAfterActivation, setSelected, setSelectedFromMarked, setSelectedOverwriteData, setSelectedPluginMetadata, setSelectionBean, setTempRuntimeFile, showUpdateAvailabilityMsg, sortAllByPluginName, update, updateAssignedPlugin, updateMarkedPlugins, updatePlugin, updatePluginStatus, updateSelectedPlugin, upload, uploadAndPersist, uploadUpdatedPlugin
-
-
-
-
Method Detail
-
updateData
public void updateData()
- Specified by:
updateData
in classBasicPluginBean<SystemPlugin>
-
deletePlugin
protected boolean deletePlugin(PluginWrapperModel<SystemPlugin> plugin)
- Specified by:
deletePlugin
in classBasicPluginBean<SystemPlugin>
- Parameters:
plugin
- Plugin to be deleted.- Returns:
true
iff the plugin was deleted.
-
getMarkedPlugins
public org.primefaces.model.StreamedContent getMarkedPlugins()
- Overrides:
getMarkedPlugins
in classBasicPluginBean<SystemPlugin>
-
getNewPlugin
protected PluginWrapperModel<SystemPlugin> getNewPlugin()
- Specified by:
getNewPlugin
in classBasicPluginBean<SystemPlugin>
-
save
protected boolean save(PluginWrapperModel<SystemPlugin> plugin, boolean isUpdate)
- Specified by:
save
in classBasicPluginBean<SystemPlugin>
-
getAllPluginRuntimes
protected Set<PluginRuntime> getAllPluginRuntimes()
- Specified by:
getAllPluginRuntimes
in classBasicPluginBean<SystemPlugin>
-
getKeyType
protected EEntityKeySelectionType getKeyType()
- Specified by:
getKeyType
in classBasicPluginBean<SystemPlugin>
-
createPluginDependencies
public List<PluginDependencies> createPluginDependencies(PluginRuntime runtime)
Description copied from class:BasicPluginBean
This method creates a list of plugin dependencies. Dependencies are workflow actions and trigger, client dashboards and authenticators.- Specified by:
createPluginDependencies
in classBasicPluginBean<SystemPlugin>
- Parameters:
runtime
- the plugin runtime to get all dependencies- Returns:
- list of plugin dependencies
-
deleteInternPluginMessages
protected void deleteInternPluginMessages(IEntityContext ec, PluginWrapperModel<SystemPlugin> plugin)
Description copied from class:BasicPluginBean
This method deletes the internal update message of a plugin.- Specified by:
deleteInternPluginMessages
in classBasicPluginBean<SystemPlugin>
plugin
- the plugin for deleting internal message
-
-