Package de.xima.fc.gui.bean.resource
Class ClientResourceBean
java.lang.Object
- All Implemented Interfaces:
Serializable
@Named
@ViewScoped
public class ClientResourceBean
extends ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkResourceNameExist
(String name) protected boolean
checkResourceNameExist
(String name, MandantRessource item) protected MandantRessource
createResource
(String fileName, byte[] data, String userName) org.primefaces.model.StreamedContent
GeneratesStreamedContent
from the List of all the marked resources contained within the model.protected IEntityListModel<MandantRessource>
protected void
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
-
Constructor Details
-
ClientResourceBean
public ClientResourceBean()
-
-
Method Details
-
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
- Specified by:
getGeneratedUrl
in classABasicResourceBean<MandantRessourceDateiData,
MandantRessource>
-
getNewModel
- Specified by:
getNewModel
in classABasicResourceBean<MandantRessourceDateiData,
MandantRessource>
-
createResource
- Specified by:
createResource
in classABasicResourceBean<MandantRessourceDateiData,
MandantRessource>
-
updateResource
- Specified by:
updateResource
in classABasicResourceBean<MandantRessourceDateiData,
MandantRessource>
-
checkResourceNameExist
- Specified by:
checkResourceNameExist
in classABasicResourceBean<MandantRessourceDateiData,
MandantRessource>
-
checkResourceNameExist
- Specified by:
checkResourceNameExist
in classABasicResourceBean<MandantRessourceDateiData,
MandantRessource>
-
openResourceConflictDialog
protected void openResourceConflictDialog()- Specified by:
openResourceConflictDialog
in classABasicResourceBean<MandantRessourceDateiData,
MandantRessource>
-