Package io.jmix.webdavui.component.impl
Class WebdavDocumentLinkImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractComponent<WebdavCssLayout>
io.jmix.webdavui.component.impl.WebdavDocumentLinkImpl
- All Implemented Interfaces:
AttachNotifier
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,HasValueSource<WebdavDocument>
,HasContextHelp
,HasDebugId
,HasHtmlCaption
,HasHtmlDescription
,HasHtmlSanitizer
,WebdavDocumentLink
,org.springframework.beans.factory.InitializingBean
public class WebdavDocumentLinkImpl
extends AbstractComponent<WebdavCssLayout>
implements WebdavDocumentLink, org.springframework.beans.factory.InitializingBean
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.HasContextHelp
HasContextHelp.ContextHelpIconClickEvent
-
Field Summary
Modifier and TypeFieldDescriptionprotected Consumer<List<WebdavDocumentVersion>>
protected WebdavDocument
protected Link
protected WebdavDocumentsManagementService
protected String
protected FetchPlanRepository
protected Subscription
protected boolean
protected BooleanSupplier
protected Messages
protected MetaProperty
protected MetaPropertyPath
protected WebdavRawLinksManagementService
protected UiComponents
protected Subscription
protected ValueSource<WebdavDocument>
static final String
protected LinkButton
protected WebdavActionTools
protected WebdavDocument
protected UUID
protected WebdavPreconditions
protected WebdavSecurityTools
protected WebdavTools
Fields inherited from class io.jmix.ui.component.impl.AbstractComponent
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.webdavui.component.WebdavDocumentLink
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
protected Link
protected LinkButton
boolean
boolean
void
void
protected WebdavDocument
void
refresh()
void
setAfterVersionEditCloseHandler
(Consumer<FileRef> afterVersionEditCloseHandler) void
setDocumentsService
(WebdavDocumentsManagementService documentsService) void
setFetchPlanRepository
(FetchPlanRepository fetchPlanRepository) void
setIsShowVersion
(boolean isShowVersion) void
setIsVersionModifiable
(boolean isVersionModifiable) void
setIsWebdavEnabledSupplier
(BooleanSupplier isWebdavEnabledSupplier) void
setMessages
(Messages messages) void
setRawLinksService
(WebdavRawLinksManagementService rawLinksService) void
setUiComponents
(UiComponents uiComponents) void
setValueSource
(ValueSource<WebdavDocument> valueSource) Sets value source for component.void
setWactions
(WebdavActionTools wactions) void
setWebdavDocument
(WebdavDocument webdavDocument) void
setWebdavDocumentId
(UUID webdavDocumentId) void
setWprecond
(WebdavPreconditions wprecond) void
setWsec
(WebdavSecurityTools wsec) void
setWtools
(WebdavTools wtools) protected void
withIsVersionModifiable
(boolean isVersionModifiable) withStyleName
(String styleName) withVisible
(boolean visible) withWebdavDocument
(WebdavDocument webdavDocument) withWebdavDocumentId
(UUID webdavDocumentId) Methods inherited from class io.jmix.ui.component.impl.AbstractComponent
addAttachListener, addDetachListener, addStyleName, assignDebugId, attached, detached, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getStyleName, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescription, setDescriptionAsHtml, setEnabled, setFrame, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setStyleName, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.Component
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
Methods inherited from interface io.jmix.ui.component.Component.BelongToFrame
getFrame, setFrame
Methods inherited from interface io.jmix.ui.component.Component.HasCaption
getCaption, setCaption
Methods inherited from interface io.jmix.ui.component.Component.HasDescription
getDescription, setDescription
Methods inherited from interface io.jmix.ui.component.Component.HasIcon
getIcon, setIcon, setIconFromSet
Methods inherited from interface io.jmix.ui.component.Component.HasXmlDescriptor
getXmlDescriptor, setXmlDescriptor
Methods inherited from interface io.jmix.ui.component.Component.Wrapper
getComponent, getComposition
-
Field Details
-
VERSION_PREFIX
- See Also:
-
fetchPlanName
-
documentLink
-
versionLink
-
-
webdavDocument
-
webdavDocumentId
-
isVersionModifiable
protected boolean isVersionModifiable -
valueSource
-
metaProperty
-
metaPropertyPath
-
documentsService
-
rawLinksService
-
wprecond
-
wsec
-
wactions
-
wtools
-
uiComponents
-
messages
-
fetchPlanRepository
-
isWebdavEnabledSupplier
-
valueChangeSubscription
-
instanceChangeSubscription
-
afterVersionEditCloseHandler
-
closeListener
-
-
Constructor Details
-
WebdavDocumentLinkImpl
public WebdavDocumentLinkImpl()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setDocumentsService
-
setRawLinksService
-
setWprecond
-
setWsec
-
setWactions
-
setWtools
-
setUiComponents
-
setMessages
-
setFetchPlanRepository
-
initComponent
public void initComponent() -
initLinks
public void initLinks() -
createLinkButton
-
createLink
-
refresh
public void refresh()- Specified by:
refresh
in interfaceWebdavDocumentLink
-
loadContent
-
getWebdavDocumentId
- Specified by:
getWebdavDocumentId
in interfaceWebdavDocumentLink
-
setWebdavDocumentId
- Specified by:
setWebdavDocumentId
in interfaceWebdavDocumentLink
-
setWebdavDocument
- Specified by:
setWebdavDocument
in interfaceWebdavDocumentLink
-
getWebdavDocument
- Specified by:
getWebdavDocument
in interfaceWebdavDocumentLink
-
setIsShowVersion
public void setIsShowVersion(boolean isShowVersion) - Specified by:
setIsShowVersion
in interfaceWebdavDocumentLink
-
getIsShowVersion
public boolean getIsShowVersion()- Specified by:
getIsShowVersion
in interfaceWebdavDocumentLink
-
setIsVersionModifiable
public void setIsVersionModifiable(boolean isVersionModifiable) - Specified by:
setIsVersionModifiable
in interfaceWebdavDocumentLink
-
getIsVersionModifiable
public boolean getIsVersionModifiable()- Specified by:
getIsVersionModifiable
in interfaceWebdavDocumentLink
-
withIsVersionModifiable
- Specified by:
withIsVersionModifiable
in interfaceWebdavDocumentLink
-
withStyleName
- Specified by:
withStyleName
in interfaceWebdavDocumentLink
-
withVisible
- Specified by:
withVisible
in interfaceWebdavDocumentLink
-
withWebdavDocument
- Specified by:
withWebdavDocument
in interfaceWebdavDocumentLink
-
withWebdavDocumentId
- Specified by:
withWebdavDocumentId
in interfaceWebdavDocumentLink
-
getContent
- Specified by:
getContent
in interfaceWebdavDocumentLink
-
getMetaProperty
- Specified by:
getMetaProperty
in interfaceWebdavDocumentLink
-
getMetaPropertyPath
- Specified by:
getMetaPropertyPath
in interfaceWebdavDocumentLink
-
getIsWebdavEnabledSupplier
- Specified by:
getIsWebdavEnabledSupplier
in interfaceWebdavDocumentLink
-
setIsWebdavEnabledSupplier
- Specified by:
setIsWebdavEnabledSupplier
in interfaceWebdavDocumentLink
-
getValueSource
- Specified by:
getValueSource
in interfaceHasValueSource<WebdavDocument>
- Returns:
- currently bound value source
-
setValueSource
Description copied from interface:HasValueSource
Sets value source for component.- Specified by:
setValueSource
in interfaceHasValueSource<WebdavDocument>
- Parameters:
valueSource
- value source
-
unbindValueSourceEvents
protected void unbindValueSourceEvents() -
bindValueSourceEvents
protected void bindValueSourceEvents() -
setAfterVersionEditCloseHandler
- Specified by:
setAfterVersionEditCloseHandler
in interfaceWebdavDocumentLink
-
getAfterVersionEditCloseHandler
- Specified by:
getAfterVersionEditCloseHandler
in interfaceWebdavDocumentLink
-