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) |
String |
getGeneratedUrl(ProjektRessource res) |
org.primefaces.model.StreamedContent |
getMarkedResources()
Generates
StreamedContent from the List of all the marked resources contained within the model. |
protected IEntityListModel<ProjektRessource> |
getNewModel() |
Projekt |
getProject() |
protected void |
openResourceConflictDialog() |
void |
setProject(IEntityViewModel<Projekt> model) |
void |
setProject(Long projectId) |
protected ProjektRessource |
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 Projekt getProject()
public void setProject(IEntityViewModel<Projekt> model)
public void setProject(Long projectId)
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(ProjektRessource res)
getGeneratedUrl
in class ABasicResourceBean<ProjektRessourceDateiData,ProjektRessource>
protected void openResourceConflictDialog()
openResourceConflictDialog
in class ABasicResourceBean<ProjektRessourceDateiData,ProjektRessource>
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.