org.nuxeo.ecm.platform.ui.web.component.document
Class RestDocumentLink
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIOutput
javax.faces.component.html.HtmlOutputLink
org.nuxeo.ecm.platform.ui.web.component.document.RestDocumentLink
- All Implemented Interfaces:
- StateHolder, ValueHolder
public class RestDocumentLink
- extends HtmlOutputLink
Component that gives generates a Restful link given a document.
- Author:
- Anahide Tchertchian
Methods inherited from class javax.faces.component.html.HtmlOutputLink |
getAccesskey, getCharset, getCoords, getDir, getHreflang, getLang, getOnblur, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRel, getRev, getShape, getStyle, getStyleClass, getTabindex, getTarget, getTitle, getType, isDisabled, setAccesskey, setCharset, setCoords, setDir, setDisabled, setHreflang, setLang, setOnblur, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRel, setRev, setShape, setStyle, setStyleClass, setTabindex, setTarget, setTitle, setType |
Methods inherited from class javax.faces.component.UIComponentBase |
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
COMPONENT_TYPE
public static final String COMPONENT_TYPE
COMPONENT_FAMILY
public static final String COMPONENT_FAMILY
DEFAULT_VIEW_ID
public static final String DEFAULT_VIEW_ID
- See Also:
- Constant Field Values
RestDocumentLink
public RestDocumentLink()
getFamily
public String getFamily()
- Overrides:
getFamily
in class UIOutput
getValue
public Object getValue()
- Override to build the URL thanks to other tag attributes information.
The document view service is queried to build it, and the tag attribute
named "value" is ignored.
- Specified by:
getValue
in interface ValueHolder
- Overrides:
getValue
in class UIOutput
getPattern
public String getPattern()
setPattern
public void setPattern(String codec)
getDocument
public DocumentModel getDocument()
setDocument
public void setDocument(DocumentModel document)
getDocumentIdRef
public DocumentRef getDocumentIdRef()
setDocumentIdRef
public void setDocumentIdRef(DocumentRef documentIdRef)
getNewConversation
public Boolean getNewConversation()
- Returns true if URL must link to a page in a new conversation.
Defaults to false.
setNewConversation
public void setNewConversation(Boolean newConversation)
getSubTab
public String getSubTab()
setSubTab
public void setSubTab(String subTab)
getTab
public String getTab()
setTab
public void setTab(String tab)
getView
public String getView()
setView
public void setView(String view)
getAddTabInfo
public Boolean getAddTabInfo()
setAddTabInfo
public void setAddTabInfo(Boolean addTabInfo)
getTabs
public String getTabs()
setTabs
public void setTabs(String tabs)
saveState
public Object saveState(FacesContext context)
- Specified by:
saveState
in interface StateHolder
- Overrides:
saveState
in class HtmlOutputLink
restoreState
public void restoreState(FacesContext context,
Object state)
- Specified by:
restoreState
in interface StateHolder
- Overrides:
restoreState
in class HtmlOutputLink
Copyright © 2011 Nuxeo SAS. All Rights Reserved.