public class ProjectResourceBean extends ABasicResourceBean<ProjektRessourceDateiData,ProjektRessource>
Modifier and Type | Class and Description |
---|---|
class |
ProjectResourceBean.EntityListModelImpl |
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
FILENAME_RESOURCES_SUFFIX, FILENAME_RESOURCES_ZIP, forceTextEdit, model, upload, uploadFileName, uploadFileSize
systemUC
Constructor and Description |
---|
ProjectResourceBean() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkResourceNameExist(String name) |
protected ProjektRessource |
createResource(String resourceName,
String description,
String fileName,
byte[] data,
String userName) |
CurrentProjectBean |
getCurrentProjectBean() |
String |
getGeneratedUrl() |
org.primefaces.model.StreamedContent |
getMarkedResources()
Generates
StreamedContent from the List of all the marked resources contained within the model. |
protected IEntityListModel<ProjektRessource> |
getNewModel() |
void |
setCurrentProjectBean(CurrentProjectBean currentProjectBean) |
protected ProjektRessource |
updateResource(String resourceName,
String newResourceName,
String description,
String fileName,
byte[] data,
String userName) |
cleanup, getModel, getPreviewType, getResourceContentBean, getResourceName, getStreamedContent, getUploadFileName, getUploadFileSize, hasResourceData, isForceTextEdit, isImageResource, isPreviewResource, isReaderResource, isShowImagePreview, isShowPreview, isShowReaderPreview, isShowTextPreview, isShowTextPreviewBinary, isSourceCodeResource, isTextPreviewSizeExceeded, isTextResource, resetUploadValues, setForceTextEdit, setModel, setResourceContentBean, setResourceName, updateModel, updateResource, updateResourceDependentConditions, upload, uploadAndPersist
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
ec, isDetached, isHasDB
destroySessionBean, encodeURL, 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
public CurrentProjectBean getCurrentProjectBean()
public void setCurrentProjectBean(CurrentProjectBean currentProjectBean)
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<ProjektRessourceDateiData,ProjektRessource>
StreamedContent
of all the marked model resourcesprotected IEntityListModel<ProjektRessource> getNewModel()
getNewModel
in class ABasicResourceBean<ProjektRessourceDateiData,ProjektRessource>
protected ProjektRessource createResource(String resourceName, String description, String fileName, byte[] data, String userName) throws Exception
createResource
in class ABasicResourceBean<ProjektRessourceDateiData,ProjektRessource>
Exception
protected ProjektRessource updateResource(String resourceName, String newResourceName, String description, String fileName, byte[] data, String userName) throws Exception
updateResource
in class ABasicResourceBean<ProjektRessourceDateiData,ProjektRessource>
Exception
protected boolean checkResourceNameExist(String name)
checkResourceNameExist
in class ABasicResourceBean<ProjektRessourceDateiData,ProjektRessource>
public String getGeneratedUrl()
Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.