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, isPromaDataLoading, localeBean, marked, 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 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, ec, expandPluginDesc, getAll, getAllPluginsByKey, getEntityClassKey, getInternalMessageBean, getMarked, getPluginFile, getPluginKey, getPluginName, getPluginStoreListChecksum, getPluginUpdateStatusMap, getSelected, getSelectedPluginMetadata, getSelectionBean, getSinglePlugin, getStreamedContent, getUpdateStatus, getValidationErrorMessages, getValidationStatus, insertPluginUpdateStates, insertPluginUpdateStatus, isContainsEntityPlugins, isLegacyPlugin, isMarkedContainsEntityPlugins, isPluginDescExpanded, isPluginStoreConnected, isPromaDataLoading, loadInitialSelectedPluginData, markedWithUpdates, onPluginSelected, preparePluginForUpdateCheck, save, selectDefault, setInternalMessageBean, setMarked, setPluginDescExpanded, setPluginKeyFromChecksum, setPluginStoreListChecksum, setPluginUpdateStatusMap, setPropertiesAfterActivation, setSelected, setSelectedFromMarked, 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>
-
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
-
-