public class UIViewVersion extends UIBaseNodePresentation
| Modifier and Type | Class and Description |
|---|---|
static class |
UIViewVersion.ChangeLanguageActionListener |
static class |
UIViewVersion.ChangeNodeActionListener |
static class |
UIViewVersion.DownloadActionListener |
UIBaseNodePresentation.OpenDocInDesktopActionListener| Modifier and Type | Field and Description |
|---|---|
protected NodeLocation |
originalNode_ |
description, icon, moveAppsPermissions, moveContainersPermissions, TABLE_COLUMN_CONTAINERCOMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparentMEDIA_STATE_DISPLAY, MEDIA_STATE_NONE| Constructor and Description |
|---|
UIViewVersion() |
| Modifier and Type | Method and Description |
|---|---|
String |
encodeHTML(String text)
Encode html.
|
List<javax.jcr.Node> |
getAttachments()
Gets the attachments.
|
org.exoplatform.webui.core.UIComponent |
getCommentComponent()
Get UIComponent for comment
|
List<javax.jcr.Node> |
getComments()
Gets the comments.
|
Object |
getComponentInstanceOfType(String className)
Gets the component instance of type.
|
String |
getDownloadLink(javax.jcr.Node node)
Gets the download link.
|
String |
getIcons(javax.jcr.Node node,
String type)
Gets the icons.
|
String |
getImage(javax.jcr.Node node)
Gets the image.
|
String |
getInlineEditingField(javax.jcr.Node orgNode,
String propertyName) |
String |
getInlineEditingField(javax.jcr.Node orgNode,
String propertyName,
String defaultValue,
String inputType,
String idGenerator,
String cssClass,
boolean isGenericProperty,
String... arguments) |
String |
getLanguage()
Gets the language.
|
javax.jcr.Node |
getNode()
Gets the node.
|
javax.jcr.Node |
getNodeByUUID(String uuid)
Gets the node by uuid.
|
String |
getNodeType()
Gets the node type.
|
javax.jcr.Node |
getOriginalNode()
Gets the original node.
|
String |
getPortalName()
Gets the portal name.
|
List<javax.jcr.Node> |
getRelations()
Gets the relations.
|
org.exoplatform.webui.core.UIComponent |
getRemoveAttach()
Get UIComponent to remove attachment in document
|
org.exoplatform.webui.core.UIComponent |
getRemoveComment()
Get UIComponent to remove comment in document
|
String |
getRepository()
Gets the repository.
|
String |
getRssLink()
Gets the rss link.
|
List<String> |
getSupportedLocalise()
Gets the supported localise.
|
String |
getTemplate() |
String |
getTemplatePath()
Gets the template path.
|
org.exoplatform.resolver.ResourceResolver |
getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context,
String template) |
String |
getTemplateSkin(String nodeTypeName,
String skinName)
Get the skin of template if it's existing
|
org.exoplatform.webui.core.UIComponent |
getUIComponent(String mimeType)
Get the UIComponent which to display file
|
String |
getViewableLink(javax.jcr.Node attNode,
org.exoplatform.web.application.Parameter[] params)
Gets the viewable link.
|
String |
getViewTemplate(String nodeTypeName,
String templateName)
Gets the view template.
|
String |
getWebDAVServerPrefix()
Gets the web dav server prefix.
|
String |
getWorkspaceName()
Gets the workspace name.
|
boolean |
hasPropertyContent(javax.jcr.Node node,
String property) |
boolean |
isEnableComment()
checks if enable comment
|
boolean |
isEnableVote()
checks if enable vote
|
boolean |
isNodeTypeSupported()
Checks if is node type supported.
|
boolean |
isNodeTypeSupported(javax.jcr.Node node) |
boolean |
isRssLink()
Checks if is rss link.
|
void |
setEnableComment(boolean value)
Sets enable comment
|
void |
setEnableVote(boolean value)
Sets enable vote
|
void |
setLanguage(String language)
Sets the language.
|
void |
setNode(javax.jcr.Node node)
Sets the node.
|
void |
update() |
getActionOpenDocInDesktop, getCategories, getImageURIInProperty, getMediaState, getPopupContainer, getPortletPreferenceValue, getPortletPreferenceValues, getPostedTimeString, getRepositoryName, getSortedComments, getTags, getVotingRate, isDisplayAlternativeText, isFastPublishLink, playAudioDescription, switchBackAudioDescription, switchMediaStategetDescription, getIcon, getMoveAppsPermissions, getMoveContainersPermissions, getPermissionClasses, getStorageId, hasMoveAppsPermission, hasMoveContainersPermission, setDescription, setIcon, setMoveAppsPermissions, setMoveContainersPermissions, setStorageIdgetAccessPermissions, getFactoryId, getHeight, getName, getTitle, getWidth, hasAccessPermission, hasPermission, isModifiable, setAccessPermissions, setFactoryId, setHeight, setModifiable, setName, setTemplate, setTitle, setWidthaddChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypesbroadcast, buildModelObject, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, urlprotected NodeLocation originalNode_
public String getTemplate()
getTemplate in class org.exoplatform.portal.webui.portal.UIPortalComponentpublic org.exoplatform.webui.core.UIComponent getCommentComponent()
NodePresentationpublic org.exoplatform.webui.core.UIComponent getRemoveAttach()
throws Exception
NodePresentationExceptionpublic org.exoplatform.webui.core.UIComponent getRemoveComment()
throws Exception
NodePresentationExceptionpublic org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context,
String template)
getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponentpublic boolean isNodeTypeSupported(javax.jcr.Node node)
public javax.jcr.Node getNode()
throws javax.jcr.RepositoryException
NodePresentationgetNode in interface NodePresentationgetNode in class UIBaseNodePresentationjavax.jcr.RepositoryExceptionpublic javax.jcr.Node getOriginalNode()
throws Exception
NodePresentationgetOriginalNode in interface NodePresentationgetOriginalNode in class UIBaseNodePresentationException - the exceptionpublic void setNode(javax.jcr.Node node)
NodePresentationnode - the new nodepublic javax.jcr.Node getNodeByUUID(String uuid)
UIBaseNodePresentationgetNodeByUUID in class UIBaseNodePresentationuuid - the uuidpublic List<javax.jcr.Node> getRelations() throws Exception
NodePresentationgetRelations in interface NodePresentationgetRelations in class UIBaseNodePresentationException - the exceptionpublic List<javax.jcr.Node> getAttachments() throws Exception
NodePresentationgetAttachments in interface NodePresentationgetAttachments in class UIBaseNodePresentationException - the exceptionpublic String getViewableLink(javax.jcr.Node attNode, org.exoplatform.web.application.Parameter[] params) throws Exception
NodePresentationgetViewableLink in interface NodePresentationgetViewableLink in class UIBaseNodePresentationException - the exceptionpublic String getIcons(javax.jcr.Node node, String type) throws Exception
NodePresentationgetIcons in interface NodePresentationgetIcons in class UIBaseNodePresentationnode - the nodetype - the sizeException - the exceptionpublic boolean hasPropertyContent(javax.jcr.Node node,
String property)
public boolean isRssLink()
NodePresentationisRssLink in interface NodePresentationisRssLink in class UIBaseNodePresentationpublic String getRssLink()
NodePresentationgetRssLink in interface NodePresentationgetRssLink in class UIBaseNodePresentationpublic List<javax.jcr.Node> getComments() throws Exception
NodePresentationgetComments in interface NodePresentationgetComments in class UIBaseNodePresentationException - the exceptionpublic Object getComponentInstanceOfType(String className)
NodePresentationgetComponentInstanceOfType in interface NodePresentationgetComponentInstanceOfType in class UIBaseNodePresentationclassName - the class namepublic String getDownloadLink(javax.jcr.Node node) throws Exception
NodePresentationgetDownloadLink in interface NodePresentationgetDownloadLink in class UIBaseNodePresentationnode - the nodeException - the exceptionpublic String getImage(javax.jcr.Node node) throws Exception
NodePresentationgetImage in interface NodePresentationgetImage in class UIBaseNodePresentationnode - the nodeException - the exceptionpublic void setLanguage(String language)
NodePresentationsetLanguage in interface NodePresentationsetLanguage in class UIBaseNodePresentationlanguage - the new languagepublic String getLanguage()
NodePresentationgetLanguage in interface NodePresentationgetLanguage in class UIBaseNodePresentationpublic String getNodeType() throws Exception
NodePresentationException - the exceptionpublic String getPortalName()
NodePresentationgetPortalName in interface NodePresentationgetPortalName in class UIBaseNodePresentationpublic List<String> getSupportedLocalise() throws Exception
NodePresentationgetSupportedLocalise in interface NodePresentationgetSupportedLocalise in class UIBaseNodePresentationException - the exceptionpublic String getTemplatePath() throws Exception
NodePresentationgetTemplatePath in interface NodePresentationgetTemplatePath in class UIBaseNodePresentationException - the exceptionpublic String getViewTemplate(String nodeTypeName, String templateName) throws Exception
NodePresentationgetViewTemplate in interface NodePresentationgetViewTemplate in class UIBaseNodePresentationnodeTypeName - the node type nametemplateName - the template nameException - the exceptionpublic String getTemplateSkin(String nodeTypeName, String skinName) throws Exception
NodePresentationgetTemplateSkin in interface NodePresentationgetTemplateSkin in class UIBaseNodePresentationnodeTypeName - The node type nameskinName - Skin nameExceptionpublic String getWebDAVServerPrefix() throws Exception
NodePresentationgetWebDAVServerPrefix in interface NodePresentationgetWebDAVServerPrefix in class UIBaseNodePresentationException - the exceptionpublic String getWorkspaceName() throws Exception
NodePresentationgetWorkspaceName in interface NodePresentationgetWorkspaceName in class UIBaseNodePresentationException - the exceptionpublic boolean isNodeTypeSupported()
NodePresentationpublic String getRepository() throws Exception
NodePresentationgetRepository in interface NodePresentationgetRepository in class UIBaseNodePresentationException - the exceptionpublic String encodeHTML(String text) throws Exception
NodePresentationencodeHTML in interface NodePresentationencodeHTML in class UIBaseNodePresentationtext - the textException - the exceptionpublic org.exoplatform.webui.core.UIComponent getUIComponent(String mimeType) throws Exception
NodePresentationExceptionpublic boolean isEnableComment()
NodePresentationisEnableComment in interface NodePresentationisEnableComment in class UIBaseNodePresentationpublic boolean isEnableVote()
NodePresentationisEnableVote in interface NodePresentationisEnableVote in class UIBaseNodePresentationpublic void setEnableComment(boolean value)
NodePresentationsetEnableComment in interface NodePresentationsetEnableComment in class UIBaseNodePresentationvalue - value to setpublic void setEnableVote(boolean value)
NodePresentationsetEnableVote in interface NodePresentationsetEnableVote in class UIBaseNodePresentationvalue - value to setpublic String getInlineEditingField(javax.jcr.Node orgNode, String propertyName, String defaultValue, String inputType, String idGenerator, String cssClass, boolean isGenericProperty, String... arguments) throws Exception
getInlineEditingField in interface NodePresentationgetInlineEditingField in class UIBaseNodePresentationorgNode - Processed nodepropertyName - which property used for editinginputType - input type for editing: TEXT, TEXTAREA, WYSIWYGcssClass - class name for CSS, should implement: cssClass, [cssClass]Title
Edit[cssClass] as relative css
Should create the function: InlineEditor.presentationRequestChange[cssClass]
to request the rest-serviceisGenericProperty - set as true to use generic javascript function, other wise, must create
the correctspond function InlineEditor.presentationRequestChange[cssClass]arguments - Extra parameter for Input component (toolbar, width, height,.. for CKEditor/TextArea)Exceptionpublic String getInlineEditingField(javax.jcr.Node orgNode, String propertyName) throws Exception
getInlineEditingField in interface NodePresentationgetInlineEditingField in class UIBaseNodePresentationExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.