Class WebdavShowDocumentVersionEdit
java.lang.Object
io.jmix.ui.screen.Screen
io.jmix.ui.screen.StandardEditor<WebdavDocument>
io.jmix.webdavui.screen.webdavdocumentversion.WebdavShowDocumentVersionEdit
- All Implemented Interfaces:
ChangeTracker
,EditorScreen<WebdavDocument>
,FrameOwner
,ReadOnlyAwareScreen
@UiController("webdav_WebdavDocumentVersion.edit")
@UiDescriptor("webdav-show-document-version-edit.xml")
public class WebdavShowDocumentVersionEdit
extends StandardEditor<WebdavDocument>
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.screen.StandardEditor
StandardEditor.AfterCommitChangesEvent, StandardEditor.BeforeCommitChangesEvent, StandardEditor.InitEntityEvent<E>, StandardEditor.ValidationEvent
Nested classes/interfaces inherited from class io.jmix.ui.screen.Screen
Screen.AfterCloseEvent, Screen.AfterDetachEvent, Screen.AfterInitEvent, Screen.AfterShowEvent, Screen.BeforeCloseEvent, Screen.BeforeShowEvent, Screen.InitEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Long
protected Action
protected Action
protected Action
protected Downloader
protected Boolean
protected Consumer<List<WebdavDocumentVersion>>
protected List<WebdavDocumentVersion>
protected Action
protected Boolean
Fields inherited from class io.jmix.ui.screen.StandardEditor
commitActionPerformed, showEnableEditingBtn, showSaveNotification
Fields inherited from interface io.jmix.ui.screen.EditorScreen
ENABLE_EDITING, WINDOW_CLOSE, WINDOW_COMMIT, WINDOW_COMMIT_AND_CLOSE
Fields inherited from interface io.jmix.ui.screen.FrameOwner
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addNewVersion
(WebdavDocumentVersion newVersion) void
generateLinkCell
(WebdavDocumentVersion documentVersion) generateVersion
(WebdavDocumentVersion documentVersion) protected MergePolicy<WebdavDocumentVersion>
void
protected void
lock()
protected void
protected org.apache.commons.compress.archivers.ArchiveEntry
newStoredEntry
(String name, byte[] data) void
void
void
onInit
(Screen.InitEvent event) void
onLockBtnClick
(Button.ClickEvent event) void
void
void
onRefreshClick
(Button.ClickEvent event) protected WebdavDocument
void
setListener
(Consumer<List<WebdavDocumentVersion>> listener) void
setReadOnly
(Boolean readOnly) void
protected void
unlock()
protected void
void
updateDsAndClearNewVersionList
(boolean applyListener) Methods inherited from class io.jmix.ui.screen.StandardEditor
addAfterCommitChangesListener, addBeforeCommitChangesListener, addDefaultCloseAction, addDefaultCommitAction, addDefaultCommitAndCloseAction, addDefaultEnableEditingAction, addInitEntityListener, addValidationEventListener, cancel, closeWithCommit, closeWithDiscard, commit, commitAndClose, commitChanges, disableCommitActions, doNotReloadEditedEntity, enableEditing, getEditedEntity, getEditedEntityContainer, getEditedEntityLoader, getSaveNotificationCaption, getWindowActionOptional, hasUnsavedChanges, initActions, isCrossFieldValidate, isEntityModifiedInParentContext, isEntityModifiedRecursive, isLocked, isModifiedAfterOpen, isReadOnly, isReadOnlyDueToLock, isShowSaveNotification, isUiListComponentsValidationEnabled, onChangeEvent, onPostCommitEvent, preventUnsavedChanges, releaseLock, setCrossFieldValidate, setEntityToEdit, setModifiedAfterOpen, setReadOnly, setShowSaveNotification, setupEntityToEdit, setupLock, setupModifiedTracking, showSaveNotification, validateAdditionalRules, validateScreen, validateUiComponents
Methods inherited from class io.jmix.ui.screen.Screen
addAfterCloseListener, addAfterDetachListener, addAfterInitListener, addAfterShowListener, addBeforeCloseListener, addBeforeShowListener, addInitListener, addUrlParamsChangeListener, close, close, closeWithDefaultAction, fireEvent, getApplicationContext, getEventHub, getExtensions, getId, getScreenData, getUiEventListeners, getWindow, isMultipleOpen, isSameScreen, setApplicationContext, setExtensions, setId, setScreenData, setUiEventListeners, setWindow, show
-
Field Details
-
downloader
-
newVersions
-
baseVersion
-
isDocumentLockedByUser
-
listener
-
readOnly
-
downloadAction
-
createNewVersionOnExistingAction
-
downloadAsZipAction
-
openDocumentAction
-
-
Constructor Details
-
WebdavShowDocumentVersionEdit
public WebdavShowDocumentVersionEdit()
-
-
Method Details
-
newStoredEntry
protected org.apache.commons.compress.archivers.ArchiveEntry newStoredEntry(String name, byte[] data) -
onInit
-
initActions
public void initActions() -
onBeforeShow
-
onPreCommit
-
onPostCommit
-
onAfterClose
-
addNewVersion
-
getDefaultMergePolicy
-
sortTableByNaturalVersionId
public void sortTableByNaturalVersionId() -
updateDsAndClearNewVersionList
public void updateDsAndClearNewVersionList(boolean applyListener) -
generateVersion
-
generateLinkCell
-
setReadOnly
-
setListener
-
applyListener
public void applyListener() -
onLockBtnClick
-
lock
protected void lock() -
unlock
protected void unlock() -
lockDocument
protected void lockDocument() -
unlockDocument
protected void unlockDocument() -
reloadedDocument
-
onRefreshClick
-