public abstract class UIBaseNodePresentation extends org.exoplatform.portal.webui.container.UIContainer implements NodePresentation
| Modifier and Type | Class and Description |
|---|---|
static class |
UIBaseNodePresentation.OpenDocInDesktopActionListener |
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 |
|---|
UIBaseNodePresentation() |
| Modifier and Type | Method and Description |
|---|---|
String |
encodeHTML(String text)
Encode html.
|
String |
getActionOpenDocInDesktop() |
List<javax.jcr.Node> |
getAttachments()
Gets the attachments.
|
List<javax.jcr.Node> |
getCategories(javax.jcr.Node node)
Retrieve all categories of a node.
|
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 size)
Gets the icons.
|
String |
getImage(javax.jcr.Node node)
Gets the image.
|
String |
getImageURIInProperty(javax.jcr.Node node,
String propertyName)
Retrieve the image in property value.
|
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.
|
String |
getMediaState()
gets the status of display audio description for accessible media
|
abstract javax.jcr.Node |
getNode()
Gets the node.
|
javax.jcr.Node |
getNodeByUUID(String uuid)
Gets the node by uuid.
|
abstract javax.jcr.Node |
getOriginalNode()
Gets the original node.
|
org.exoplatform.webui.core.UIPopupContainer |
getPopupContainer() |
String |
getPortalName()
Gets the portal name.
|
String |
getPortletPreferenceValue(String preferenceName)
Retrieve the portlet preference value.
|
String[] |
getPortletPreferenceValues(String preferenceName)
Retrieve the portlet preference values.
|
String |
getPostedTimeString(org.exoplatform.webui.core.lifecycle.WebuiBindingContext resourceBundle,
Date postedTime) |
List<javax.jcr.Node> |
getRelations()
Gets the relations.
|
String |
getRepository()
Gets the repository.
|
String |
getRepositoryName()
Gets the repository name.
|
String |
getRssLink()
Gets the rss link.
|
List<javax.jcr.Node> |
getSortedComments() |
List |
getSupportedLocalise()
Gets the supported localise.
|
List<javax.jcr.Node> |
getTags(javax.jcr.Node node)
Retrieve all tags of a node.
|
abstract String |
getTemplatePath()
Gets the template path.
|
String |
getTemplateSkin(String nodeTypeName,
String skinName)
Get the skin of template if it's existing
|
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.
|
long |
getVotingRate(javax.jcr.Node node)
Retrieve the voting rate.
|
String |
getWebDAVServerPrefix()
Gets the web dav server prefix.
|
String |
getWorkspaceName()
Gets the workspace name.
|
boolean |
isDisplayAlternativeText() |
boolean |
isEnableComment()
checks if enable comment
|
boolean |
isEnableVote()
checks if enable vote
|
boolean |
isFastPublishLink()
Checks if allow render fast publish link for the inline editting
|
boolean |
isRssLink()
Checks if is rss link.
|
boolean |
playAudioDescription() |
void |
setEnableComment(boolean value)
Sets enable comment
|
void |
setEnableVote(boolean value)
Sets enable vote
|
void |
setLanguage(String language)
Sets the language.
|
boolean |
switchBackAudioDescription() |
void |
switchMediaState()
switches the status of display audio description for accessible media
|
getDescription, getIcon, getMoveAppsPermissions, getMoveContainersPermissions, getPermissionClasses, getStorageId, hasMoveAppsPermission, hasMoveContainersPermission, setDescription, setIcon, setMoveAppsPermissions, setMoveContainersPermissions, setStorageIdgetAccessPermissions, getFactoryId, getHeight, getName, getTemplate, 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, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, urlclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCommentComponent, getNodeType, getRemoveAttach, getRemoveComment, getUIComponent, isNodeTypeSupported, setNodepublic abstract javax.jcr.Node getNode()
throws Exception
NodePresentationgetNode in interface NodePresentationException - the exceptionpublic abstract String getTemplatePath() throws Exception
NodePresentationgetTemplatePath in interface NodePresentationException - the exceptionpublic abstract javax.jcr.Node getOriginalNode()
throws Exception
NodePresentationgetOriginalNode in interface NodePresentationException - the exceptionpublic String getRepositoryName() throws Exception
Exception - the exceptionpublic String encodeHTML(String text) throws Exception
NodePresentationencodeHTML in interface NodePresentationtext - the textException - the exceptionpublic List<javax.jcr.Node> getAttachments() throws Exception
NodePresentationgetAttachments in interface NodePresentationException - the exceptionpublic String getViewableLink(javax.jcr.Node attNode, org.exoplatform.web.application.Parameter[] params) throws Exception
NodePresentationgetViewableLink in interface NodePresentationException - the exceptionpublic List<javax.jcr.Node> getComments() throws Exception
NodePresentationgetComments in interface NodePresentationException - the exceptionpublic List<javax.jcr.Node> getSortedComments() throws Exception
Exceptionpublic Object getComponentInstanceOfType(String className)
NodePresentationgetComponentInstanceOfType in interface NodePresentationclassName - the class namepublic String getDownloadLink(javax.jcr.Node node) throws Exception
NodePresentationgetDownloadLink in interface NodePresentationnode - the nodeException - the exceptionpublic String getIcons(javax.jcr.Node node, String size) throws Exception
NodePresentationgetIcons in interface NodePresentationnode - the nodesize - the sizeException - the exceptionpublic String getImage(javax.jcr.Node node) throws Exception
NodePresentationgetImage in interface NodePresentationnode - the nodeException - the exceptionpublic String getLanguage()
NodePresentationgetLanguage in interface NodePresentationpublic void setLanguage(String language)
NodePresentationsetLanguage in interface NodePresentationlanguage - the new languagepublic String getPortalName()
NodePresentationgetPortalName in interface NodePresentationpublic List<javax.jcr.Node> getRelations() throws Exception
NodePresentationgetRelations in interface NodePresentationException - the exceptionpublic String getRepository() throws Exception
NodePresentationgetRepository in interface NodePresentationException - the exceptionpublic String getRssLink()
NodePresentationgetRssLink in interface NodePresentationpublic boolean isRssLink()
NodePresentationisRssLink in interface NodePresentationpublic boolean isFastPublishLink()
public List getSupportedLocalise() throws Exception
NodePresentationgetSupportedLocalise in interface NodePresentationException - the exceptionpublic String getViewTemplate(String nodeTypeName, String templateName) throws Exception
NodePresentationgetViewTemplate in interface NodePresentationnodeTypeName - the node type nametemplateName - the template nameException - the exceptionpublic String getWebDAVServerPrefix() throws Exception
NodePresentationgetWebDAVServerPrefix in interface NodePresentationException - the exceptionpublic String getWorkspaceName() throws Exception
NodePresentationgetWorkspaceName in interface NodePresentationException - the exceptionpublic javax.jcr.Node getNodeByUUID(String uuid)
uuid - the uuidpublic List<javax.jcr.Node> getCategories(javax.jcr.Node node) throws Exception
node - the nodeException - the exceptionpublic List<javax.jcr.Node> getTags(javax.jcr.Node node) throws Exception
node - the nodeException - the exceptionpublic long getVotingRate(javax.jcr.Node node)
throws Exception
node - the nodeException - the exceptionpublic String getImageURIInProperty(javax.jcr.Node node, String propertyName) throws Exception
node - the nodepropertyName - the property nameException - the exceptionpublic String getPortletPreferenceValue(String preferenceName)
preferenceName - the preference namepublic String[] getPortletPreferenceValues(String preferenceName)
preferenceName - the preference namepublic String getTemplateSkin(String nodeTypeName, String skinName) throws Exception
NodePresentationgetTemplateSkin in interface NodePresentationnodeTypeName - The node type nameskinName - Skin nameExceptionpublic boolean isEnableComment()
NodePresentationisEnableComment in interface NodePresentationpublic boolean isEnableVote()
NodePresentationisEnableVote in interface NodePresentationpublic void setEnableComment(boolean value)
NodePresentationsetEnableComment in interface NodePresentationvalue - value to setpublic void setEnableVote(boolean value)
NodePresentationsetEnableVote in interface NodePresentationvalue - 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 NodePresentationorgNode - 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 NodePresentationExceptionpublic String getMediaState()
NodePresentationgetMediaState in interface NodePresentationpublic void switchMediaState()
NodePresentationswitchMediaState in interface NodePresentationpublic boolean isDisplayAlternativeText()
isDisplayAlternativeText in interface NodePresentationpublic boolean playAudioDescription()
playAudioDescription in interface NodePresentationpublic boolean switchBackAudioDescription()
switchBackAudioDescription in interface NodePresentationpublic String getActionOpenDocInDesktop() throws Exception
getActionOpenDocInDesktop in interface NodePresentationExceptionpublic org.exoplatform.webui.core.UIPopupContainer getPopupContainer()
throws Exception
getPopupContainer in interface NodePresentationExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.