public class ClientResourceBean extends ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
Modifier and Type | Class and Description |
---|---|
class |
ClientResourceBean.EntityListModelImpl |
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
FILENAME_RESOURCES_SUFFIX, FILENAME_RESOURCES_ZIP, forceTextEdit, model, upload, uploadFileName, uploadFileSize
systemUC
Constructor and Description |
---|
ClientResourceBean() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkResourceNameExist(String name) |
protected MandantRessource |
createResource(String resourceName,
String description,
String fileName,
byte[] data,
String userName) |
String |
getGeneratedUrl(MandantRessource res) |
org.primefaces.model.StreamedContent |
getMarkedResources()
Generates
StreamedContent from the List of all the marked resources contained within the model. |
protected IEntityListModel<MandantRessource> |
getNewModel() |
protected void |
openResourceConflictDialog() |
protected MandantRessource |
updateResource(String resourceName,
String newResourceName,
String description,
String fileName,
byte[] data,
String userName) |
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
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
ec, isDetached, isHasDB
destroySessionBean, encodeURL, findBean, findBean, findBean, 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, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
public org.primefaces.model.StreamedContent getMarkedResources()
ABasicResourceBean
StreamedContent
from the List of all the marked resources contained within the model. If
this list contains only a single entry the StreamedContent
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 generated StreamedContent
of the zip file will be returned.getMarkedResources
in class ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
StreamedContent
of all the marked model resourcesprotected IEntityListModel<MandantRessource> getNewModel()
getNewModel
in class ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
protected MandantRessource createResource(String resourceName, String description, String fileName, byte[] data, String userName) throws Exception
createResource
in class ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
Exception
protected MandantRessource updateResource(String resourceName, String newResourceName, String description, String fileName, byte[] data, String userName) throws Exception
updateResource
in class ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
Exception
protected boolean checkResourceNameExist(String name)
checkResourceNameExist
in class ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
public String getGeneratedUrl(MandantRessource res)
getGeneratedUrl
in class ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
protected void openResourceConflictDialog()
openResourceConflictDialog
in class ABasicResourceBean<MandantRessourceDateiData,MandantRessource>
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.