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, userManagerFields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUCFields inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
localeBean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckResourceNameExist(String name) protected booleancheckResourceNameExist(String name, MandantRessource item) protected MandantRessourcecreateResource(String fileName, byte[] data, String userName) org.primefaces.model.StreamedContentGeneratesStreamedContentfrom the List of all the marked resources contained within the model.protected IEntityListModel<MandantRessource>protected voidprotected MandantRessourceupdateResource(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, uploadAndPersistMethods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubViewMethods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDBMethods 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, ucMethods 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, msgMethods 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:ABasicResourceBeanGeneratesStreamedContentfrom the List of all the marked resources contained within the model. If this list contains only a single entry theStreamedContentfor this resource will be returned. If the list contains more than one entry the resources will be packed into a zip file and the generatedStreamedContentof the zip file will be returned.- Overrides:
getMarkedResourcesin classABasicResourceBean<MandantRessourceDateiData,MandantRessource> - Returns:
- the
StreamedContentof all the marked model resources
-
getGeneratedUrl
- Specified by:
getGeneratedUrlin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
getNewModel
- Specified by:
getNewModelin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
createResource
- Specified by:
createResourcein classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
updateResource
- Specified by:
updateResourcein classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
checkResourceNameExist
- Specified by:
checkResourceNameExistin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
checkResourceNameExist
- Specified by:
checkResourceNameExistin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
openResourceConflictDialog
protected void openResourceConflictDialog()- Specified by:
openResourceConflictDialogin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-