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, setTypeclearInitialState, getConverter, getLocalValue, markInitialState, resetValue, setConverter, setValueaddClientBehavior, 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, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreepublic 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.ValueHoldergetValue in class javax.faces.component.UIOutputprotected 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.UIComponentBasejavax.faces.FacesExceptionpublic void broadcast(javax.faces.event.FacesEvent event)
broadcast in class javax.faces.component.UIComponentBasepublic void encodeBegin(javax.faces.context.FacesContext context) throws IOException
encodeBegin in class javax.faces.component.UIComponentBaseIOExceptionpublic void encodeChildren(javax.faces.context.FacesContext context) throws IOException
encodeChildren in class javax.faces.component.UIComponentBaseIOExceptionpublic void encodeEnd(javax.faces.context.FacesContext context) throws IOException
encodeEnd in class javax.faces.component.UIComponentBaseIOExceptionpublic Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class javax.faces.component.UIOutputpublic void restoreState(javax.faces.context.FacesContext context, Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class javax.faces.component.UIOutputCopyright © 2019 Nuxeo. All rights reserved.