public abstract class BasicPluginBean<E extends IPluginEntity<?,?,?>> extends FCContextBean
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
Modifier and Type | Field and Description |
---|---|
protected List<PluginWrapperModel<E>> |
all |
protected IGenericDao<E> |
dao |
protected List<PluginWrapperModel<E>> |
marked |
protected PluginWrapperModel<E> |
selected |
systemUC
Constructor and Description |
---|
BasicPluginBean(IGenericDao<E> dao) |
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
ec, isDetached, isHasDB
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findCurrentView, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
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
protected IGenericDao<E extends IPluginEntity<?,?,?>> dao
protected List<PluginWrapperModel<E extends IPluginEntity<?,?,?>>> all
protected PluginWrapperModel<E extends IPluginEntity<?,?,?>> selected
protected List<PluginWrapperModel<E extends IPluginEntity<?,?,?>>> marked
public BasicPluginBean(IGenericDao<E> dao)
public abstract void updateData()
protected abstract boolean deletePlugin(PluginWrapperModel<E> plugin)
plugin
- Plugin to be deleted.true
iff the plugin was deleted.protected abstract PluginWrapperModel<E> getNewPlugin()
protected abstract boolean save(PluginWrapperModel<E> plugin)
protected abstract Set<PluginRuntime> getAllPluginRuntimes()
protected abstract EEntityKeySelectionType getKeyType()
public List<PluginWrapperModel<E>> getAll()
public PluginWrapperModel<E> getSelected()
public void setSelected(PluginWrapperModel<E> selected)
public List<PluginWrapperModel<E>> getMarked()
public void setMarked(List<PluginWrapperModel<E>> marked)
public void setSelectedFromMarked()
public boolean isMarkedContainsEntityPlugins()
true
if the marked plugins containing an entity-based onepublic boolean isContainsEntityPlugins()
public String getEntityClassKey()
public void upload(org.primefaces.event.FileUploadEvent evt)
public void uploadAndPersist(org.primefaces.event.FileUploadEvent evt)
public org.primefaces.model.StreamedContent getMarkedPlugins()
public org.primefaces.model.StreamedContent getSinglePlugin(PluginWrapperModel<E> plugin)
public void addNew()
public void save()
public void delete(PluginWrapperModel<E> plugin)
public void deleteMarked()
public void deactivate()
public void deactivate(PluginWrapperModel<?> plugin)
public void activate()
public void activate(PluginWrapperModel<?> plugin)
protected void selectDefault()
protected org.primefaces.model.StreamedContent getStreamedContent(List<PluginWrapperModel<E>> plugins, String zipFileName)
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.