public class RestDocumentLink extends javax.faces.component.html.HtmlOutputLink
Modifier and Type | Field and Description |
---|---|
protected Boolean |
addTabInfo |
protected String |
baseURL |
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static String |
DEFAULT_VIEW_ID |
protected DocumentModel |
document |
protected DocumentRef |
documentIdRef |
protected DocumentRef |
documentPathRef |
protected static com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.Param[] |
EMPTY_PARAMS |
protected Boolean |
newConversation |
protected String |
pattern |
protected String |
repositoryName |
protected Boolean |
resolveOnly |
protected String |
subTab |
protected String |
tab |
protected String |
tabs |
protected String |
var |
protected String |
view |
Constructor and Description |
---|
RestDocumentLink() |
Modifier and Type | Method and Description |
---|---|
protected void |
afterRender(Object origVarValue)
Restored the original value exposed as param to the request, and remove current variable value.
|
protected Object |
beforeRender()
Saves the current value exposed as param to the request, and put new variable value instead.
|
void |
broadcast(javax.faces.event.FacesEvent event) |
void |
encodeBegin(javax.faces.context.FacesContext context) |
void |
encodeChildren(javax.faces.context.FacesContext context) |
void |
encodeEnd(javax.faces.context.FacesContext context) |
Boolean |
getAddTabInfo() |
String |
getBaseURL() |
DocumentModel |
getDocument() |
DocumentRef |
getDocumentIdRef() |
DocumentRef |
getDocumentPathRef() |
String |
getFamily() |
Boolean |
getNewConversation()
Returns true if URL must link to a page in a new conversation.
|
protected com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.Param[] |
getParamList() |
String |
getPattern() |
String |
getRepositoryName() |
Boolean |
getResolveOnly() |
String |
getSubTab() |
String |
getTab() |
String |
getTabs() |
Object |
getValue()
Override to build the URL thanks to other tag attributes information.
|
String |
getVar() |
String |
getView() |
boolean |
invokeOnComponent(javax.faces.context.FacesContext context,
String clientId,
javax.faces.component.ContextCallback callback) |
void |
restoreState(javax.faces.context.FacesContext context,
Object state) |
Object |
saveState(javax.faces.context.FacesContext context) |
void |
setAddTabInfo(Boolean addTabInfo) |
void |
setBaseURL(String baseURL) |
void |
setDocument(DocumentModel document) |
void |
setDocumentIdRef(DocumentRef documentIdRef) |
void |
setDocumentPathRef(DocumentRef documentPathRef) |
void |
setNewConversation(Boolean newConversation) |
void |
setPattern(String codec) |
void |
setRepositoryName(String repositoryName) |
void |
setResolveOnly(Boolean resolveOnly) |
void |
setSubTab(String subTab) |
void |
setTab(String tab) |
void |
setTabs(String tabs) |
void |
setVar(String var) |
void |
setView(String view) |
getAccesskey, getCharset, getCoords, getDefaultEventName, getDir, getEventNames, getFragment, getHreflang, getLang, getOnblur, getOnclick, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRel, getRev, getRole, getShape, getStyle, getStyleClass, getTabindex, getTarget, getTitle, getType, isDisabled, setAccesskey, setCharset, setCoords, setDir, setDisabled, setFragment, setHreflang, setLang, setOnblur, setOnclick, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRel, setRev, setRole, setShape, setStyle, setStyleClass, setTabindex, setTarget, setTitle, setType
clearInitialState, getConverter, getLocalValue, markInitialState, resetValue, setConverter, setValue
addClientBehavior, addFacesListener, decode, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public static final String DEFAULT_VIEW_ID
protected static final com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.Param[] EMPTY_PARAMS
protected DocumentModel document
protected String repositoryName
protected DocumentRef documentIdRef
protected DocumentRef documentPathRef
protected Boolean addTabInfo
protected Boolean newConversation
protected Boolean resolveOnly
public RestDocumentLink()
public Object getValue()
The document view service is queried to build it, and the tag attribute named "value" is ignored.
getValue
in interface javax.faces.component.ValueHolder
getValue
in class javax.faces.component.UIOutput
protected com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.Param[] getParamList()
public String getPattern()
public void setPattern(String codec)
public DocumentModel getDocument()
public void setDocument(DocumentModel document)
public String getRepositoryName()
public void setRepositoryName(String repositoryName)
public DocumentRef getDocumentIdRef()
public void setDocumentIdRef(DocumentRef documentIdRef)
public DocumentRef getDocumentPathRef()
public void setDocumentPathRef(DocumentRef documentPathRef)
public Boolean getNewConversation()
Defaults to false.
public void setNewConversation(Boolean newConversation)
public String getBaseURL()
public void setBaseURL(String baseURL)
public Boolean getAddTabInfo()
public void setAddTabInfo(Boolean addTabInfo)
public Boolean getResolveOnly()
public void setResolveOnly(Boolean resolveOnly)
protected Object beforeRender()
Returns the original value exposed to the request.
protected void afterRender(Object origVarValue)
public boolean invokeOnComponent(javax.faces.context.FacesContext context, String clientId, javax.faces.component.ContextCallback callback) throws javax.faces.FacesException
invokeOnComponent
in class javax.faces.component.UIComponentBase
javax.faces.FacesException
public void broadcast(javax.faces.event.FacesEvent event)
broadcast
in class javax.faces.component.UIComponentBase
public void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin
in class javax.faces.component.UIComponentBase
IOException
public void encodeChildren(javax.faces.context.FacesContext context) throws IOException
encodeChildren
in class javax.faces.component.UIComponentBase
IOException
public void encodeEnd(javax.faces.context.FacesContext context) throws IOException
encodeEnd
in class javax.faces.component.UIComponentBase
IOException
public Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIOutput
public void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIOutput
Copyright © 2018 Nuxeo. All rights reserved.