Package de.xima.fc.gui.bean.resource
Class ClientResourceBean
- java.lang.Object
-
- de.xima.fc.gui.common.utils.msg.I18nUtils
-
- de.xima.fc.gui.common.utils.msg.MessageUtils
-
- de.xima.fc.gui.common.utils.msg.AMessaging
-
- de.xima.fc.gui.common.utils.msg.AJSFContext
-
- de.xima.fc.gui.bean.ABackendJSFContext
-
- de.xima.fc.gui.bean.FCContextBean
-
- de.xima.fc.gui.bean.resource.ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
- de.xima.fc.gui.bean.resource.ClientResourceBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class ClientResourceBean extends ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ClientResourceBean.EntityListModelImpl
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.resource.ABasicResourceBean
FILENAME_RESOURCES_SUFFIX, FILENAME_RESOURCES_ZIP, forceTextEdit, model, resourceContentBean, userManager
-
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 ClientResourceBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkResourceNameExist(String name)
protected boolean
checkResourceNameExist(String name, MandantRessource item)
protected MandantRessource
createResource(String fileName, byte[] data, String userName)
String
getGeneratedUrl(MandantRessource res)
org.primefaces.model.StreamedContent
getMarkedResources()
GeneratesStreamedContent
from the List of all the marked resources contained within the model.protected IEntityListModel<MandantRessource>
getNewModel()
protected void
openResourceConflictDialog()
protected MandantRessource
updateResource(String fileName, byte[] data, String userName)
-
Methods inherited from class de.xima.fc.gui.bean.resource.ABasicResourceBean
checkResourceUploads, cleanup, getFileConflicts, getGeneratedUrl, getModel, getPreviewType, getStreamedContent, hasResourceData, isForceTextEdit, isImageResource, isPreviewResource, isReaderResource, isShowImagePreview, isShowPreview, isShowReaderPreview, isShowTextPreview, isShowTextPreviewBinary, isSourceCodeResource, isTextPreviewSizeExceeded, isTextResource, onConflictsDialogClose, preCreate, preUpdate, resolveConflicts, resolveConflicts, setForceTextEdit, setModel, updateModel, upload, uploadAndPersist
-
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, 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, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
-
-
-
Method Detail
-
getMarkedResources
public org.primefaces.model.StreamedContent getMarkedResources()
Description copied from class:ABasicResourceBean
GeneratesStreamedContent
from the List of all the marked resources contained within the model. If this list contains only a single entry theStreamedContent
for this resource will be returned. If the list contains more than one entry the resources will be packed into a zip file and the generatedStreamedContent
of the zip file will be returned.- Overrides:
getMarkedResources
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
- Returns:
- the
StreamedContent
of all the marked model resources
-
getGeneratedUrl
public String getGeneratedUrl(MandantRessource res)
- Specified by:
getGeneratedUrl
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
getNewModel
protected IEntityListModel<MandantRessource> getNewModel()
- Specified by:
getNewModel
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
createResource
protected MandantRessource createResource(String fileName, byte[] data, String userName)
- Specified by:
createResource
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
updateResource
protected MandantRessource updateResource(String fileName, byte[] data, String userName)
- Specified by:
updateResource
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
checkResourceNameExist
protected boolean checkResourceNameExist(String name)
- Specified by:
checkResourceNameExist
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
checkResourceNameExist
protected boolean checkResourceNameExist(String name, MandantRessource item)
- Specified by:
checkResourceNameExist
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
openResourceConflictDialog
protected void openResourceConflictDialog()
- Specified by:
openResourceConflictDialog
in classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
-