Package de.xima.fc.gui.bean.plugin
Class ClientPluginBean
- java.lang.Object
-
- de.xima.fc.gui.bean.plugin.BasicPluginBean<ClientPlugin>
-
- de.xima.fc.gui.bean.plugin.ClientPluginBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class ClientPluginBean extends BasicPluginBean<ClientPlugin>
- 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, viewEventBusBean
-
-
Constructor Summary
Constructors Constructor Description ClientPluginBean()
-
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<ClientPlugin> plugin)
This method deletes the internal update message of a plugin.protected boolean
deletePlugin(PluginWrapperModel<ClientPlugin> plugin)
protected boolean
doesPluginKeyExist(String currentPluginKey, String currentPluginFileKey)
By default this method only considers every installedClientPlugin
.protected Set<PluginRuntime>
getAllPluginRuntimes()
protected EEntityKeySelectionType
getKeyType()
org.primefaces.model.StreamedContent
getMarkedPlugins()
protected PluginWrapperModel<ClientPlugin>
getNewPlugin()
protected boolean
save(PluginWrapperModel<ClientPlugin> 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, 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<ClientPlugin>
-
deletePlugin
protected boolean deletePlugin(PluginWrapperModel<ClientPlugin> plugin)
- Specified by:
deletePlugin
in classBasicPluginBean<ClientPlugin>
- Parameters:
plugin
- Plugin to be deleted.- Returns:
true
iff the plugin was deleted.
-
getMarkedPlugins
public org.primefaces.model.StreamedContent getMarkedPlugins()
- Overrides:
getMarkedPlugins
in classBasicPluginBean<ClientPlugin>
-
getNewPlugin
protected PluginWrapperModel<ClientPlugin> getNewPlugin()
- Specified by:
getNewPlugin
in classBasicPluginBean<ClientPlugin>
-
save
protected boolean save(PluginWrapperModel<ClientPlugin> plugin, boolean isUpdate)
- Specified by:
save
in classBasicPluginBean<ClientPlugin>
-
getAllPluginRuntimes
protected Set<PluginRuntime> getAllPluginRuntimes()
- Specified by:
getAllPluginRuntimes
in classBasicPluginBean<ClientPlugin>
-
getKeyType
protected EEntityKeySelectionType getKeyType()
- Specified by:
getKeyType
in classBasicPluginBean<ClientPlugin>
-
doesPluginKeyExist
protected boolean doesPluginKeyExist(String currentPluginKey, String currentPluginFileKey)
By default this method only considers every installedClientPlugin
. This expands considering plugins installed on the system scope as well as if the needed role is present for this client.- Overrides:
doesPluginKeyExist
in classBasicPluginBean<ClientPlugin>
-
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<ClientPlugin>
- Parameters:
runtime
- the plugin runtime to get all dependencies- Returns:
- list of plugin dependencies
-
deleteInternPluginMessages
protected void deleteInternPluginMessages(IEntityContext ec, PluginWrapperModel<ClientPlugin> plugin)
Description copied from class:BasicPluginBean
This method deletes the internal update message of a plugin.- Specified by:
deleteInternPluginMessages
in classBasicPluginBean<ClientPlugin>
plugin
- the plugin for deleting internal message
-
-