Package de.xima.fc.gui.bean.plugin
Class BasicPluginBean<E extends IPluginEntity<?,?,?>>
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientPluginBean
,SystemPluginBean
public abstract class BasicPluginBean<E extends IPluginEntity<?,?,?>> extends FCContextBean
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
Fields Modifier and Type Field Description protected List<PluginWrapperModel<E>>
all
protected IGenericDao<E>
dao
protected List<PluginWrapperModel<E>>
marked
protected PluginWrapperModel<E>
selected
-
Fields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUC
-
Fields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean
-
-
Constructor Summary
Constructors Constructor Description BasicPluginBean(IGenericDao<E> dao)
-
Method Summary
-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
-
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Field Detail
-
dao
protected IGenericDao<E extends IPluginEntity<?,?,?>> dao
-
all
protected List<PluginWrapperModel<E extends IPluginEntity<?,?,?>>> all
-
selected
protected PluginWrapperModel<E extends IPluginEntity<?,?,?>> selected
-
marked
protected List<PluginWrapperModel<E extends IPluginEntity<?,?,?>>> marked
-
-
Constructor Detail
-
BasicPluginBean
public BasicPluginBean(IGenericDao<E> dao)
-
-
Method Detail
-
getSelectionBean
public SelectionBean getSelectionBean()
-
setSelectionBean
public void setSelectionBean(SelectionBean selectionBean)
-
updateData
public abstract void updateData()
-
deletePlugin
protected abstract boolean deletePlugin(PluginWrapperModel<E> plugin)
- Parameters:
plugin
- Plugin to be deleted.- Returns:
true
iff the plugin was deleted.
-
getNewPlugin
protected abstract PluginWrapperModel<E> getNewPlugin()
-
save
protected abstract boolean save(PluginWrapperModel<E> plugin)
-
getAllPluginRuntimes
protected abstract Set<PluginRuntime> getAllPluginRuntimes()
-
getKeyType
protected abstract EEntityKeySelectionType getKeyType()
-
getAll
public List<PluginWrapperModel<E>> getAll()
-
getSelected
public PluginWrapperModel<E> getSelected()
-
setSelected
public void setSelected(PluginWrapperModel<E> selected)
-
getMarked
public List<PluginWrapperModel<E>> getMarked()
-
setMarked
public void setMarked(List<PluginWrapperModel<E>> marked)
-
setSelectedFromMarked
public void setSelectedFromMarked()
-
isMarkedContainsEntityPlugins
public boolean isMarkedContainsEntityPlugins()
- Returns:
true
if the marked plugins containing an entity-based one
-
isContainsEntityPlugins
public boolean isContainsEntityPlugins()
-
getEntityClassKey
public String getEntityClassKey()
-
upload
public void upload(org.primefaces.event.FileUploadEvent evt)
-
uploadAndPersist
public void uploadAndPersist(org.primefaces.event.FileUploadEvent evt)
-
getMarkedPlugins
public org.primefaces.model.StreamedContent getMarkedPlugins()
-
getSinglePlugin
public org.primefaces.model.StreamedContent getSinglePlugin(PluginWrapperModel<E> plugin)
-
addNew
public void addNew()
-
save
public void save()
-
delete
public void delete(PluginWrapperModel<E> plugin)
-
deleteMarked
public void deleteMarked()
-
deactivate
public void deactivate()
-
deactivate
public void deactivate(PluginWrapperModel<?> plugin)
-
activate
public void activate()
-
activate
public void activate(PluginWrapperModel<?> plugin)
-
selectDefault
protected void selectDefault()
-
getStreamedContent
protected org.primefaces.model.StreamedContent getStreamedContent(List<PluginWrapperModel<E>> plugins, String zipFileName)
-
-