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 classClientResourceBean.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, upload, uploadFileName, uploadFileSize, 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 booleancheckResourceNameExist(String name)protected booleancheckResourceNameExist(String name, MandantRessource item)protected MandantRessourcecreateResource(String resourceName, String description, String fileName, byte[] data, String userName)StringgetGeneratedUrl(MandantRessource res)org.primefaces.model.StreamedContentgetMarkedResources()GeneratesStreamedContentfrom the List of all the marked resources contained within the model.protected IEntityListModel<MandantRessource>getNewModel()protected voidopenResourceConflictDialog()protected MandantRessourceupdateResource(String resourceName, String newResourceName, String description, String fileName, byte[] data, String userName)-
Methods inherited from class de.xima.fc.gui.bean.resource.ABasicResourceBean
checkResourceUploads, cleanup, getFileConflicts, getGeneratedUrl, getModel, getPreviewType, getResourceContentBean, getResourceName, getStreamedContent, getUploadFileName, getUploadFileSize, hasResourceData, isForceTextEdit, isImageResource, isPreviewResource, isReaderResource, isShowImagePreview, isShowPreview, isShowReaderPreview, isShowTextPreview, isShowTextPreviewBinary, isSourceCodeResource, isTextPreviewSizeExceeded, isTextResource, onConflictsDialogClose, resetUploadValues, resolveConflicts, resolveConflicts, setForceTextEdit, setModel, setResourceContentBean, setResourceName, updateModel, updateResource, 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
-
-
-
-
Method Detail
-
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
-
getNewModel
protected IEntityListModel<MandantRessource> getNewModel()
- Specified by:
getNewModelin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
createResource
protected MandantRessource createResource(String resourceName, String description, String fileName, byte[] data, String userName) throws Exception
- Specified by:
createResourcein classABasicResourceBean<MandantRessourceDateiData,MandantRessource>- Throws:
Exception
-
updateResource
protected MandantRessource updateResource(String resourceName, String newResourceName, String description, String fileName, byte[] data, String userName) throws Exception
- Specified by:
updateResourcein classABasicResourceBean<MandantRessourceDateiData,MandantRessource>- Throws:
Exception
-
checkResourceNameExist
protected boolean checkResourceNameExist(String name)
- Specified by:
checkResourceNameExistin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
checkResourceNameExist
protected boolean checkResourceNameExist(String name, MandantRessource item)
- Specified by:
checkResourceNameExistin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
getGeneratedUrl
public String getGeneratedUrl(MandantRessource res)
- Specified by:
getGeneratedUrlin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
openResourceConflictDialog
protected void openResourceConflictDialog()
- Specified by:
openResourceConflictDialogin classABasicResourceBean<MandantRessourceDateiData,MandantRessource>
-
-