|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent
org.alfresco.web.ui.wcm.component.AbstractLinkValidationReportComponent
org.alfresco.web.ui.wcm.component.UILinkValidationReport
public class UILinkValidationReport
JSF component that renders the results of a link validation report.
| Field Summary | |
|---|---|
static java.lang.String |
DEFAULT_INTIAL_TAB
|
| Fields inherited from class org.alfresco.web.ui.wcm.component.AbstractLinkValidationReportComponent |
|---|
state |
| Constructor Summary | |
|---|---|
UILinkValidationReport()
|
|
| Method Summary | |
|---|---|
protected UIActionLink |
aquireCollapseAllAction(javax.faces.context.FacesContext context,
java.lang.String tabId)
|
protected UIActionLink |
aquireExpandAllAction(javax.faces.context.FacesContext context,
java.lang.String tabId)
|
protected UIActions |
aquireFileActions(java.lang.String id,
java.lang.String store)
Aquire the UIActions component for the specified action group ID. |
protected javax.faces.component.UICommand |
aquireUpdateStatusAction(javax.faces.context.FacesContext context,
java.lang.String actionId)
|
void |
encodeBegin(javax.faces.context.FacesContext context)
|
protected java.lang.String |
getBrokenLinks(javax.faces.context.FacesContext context,
java.lang.String avmPath,
LinkValidationState linkState)
Constructs a comma separated list of broken links for the given avm path |
java.lang.String |
getFamily()
|
protected java.lang.String[] |
getFileNameAndPath(java.lang.String avmPath)
Returns the name and path for the given avm path |
protected java.lang.String |
getIcon(java.lang.String fileName)
Returns the icon to use given a file name |
java.lang.String |
getInitialTab()
|
boolean |
getItemsExpanded()
|
protected java.lang.String |
parseBrokenLink(java.lang.String linkUrl)
Removes the virtaulisation server host name from the link if appropriate |
protected void |
renderBrokenFile(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
java.lang.String file,
LinkValidationState linkState,
UIActions actions,
org.alfresco.service.cmr.avm.AVMService avmService,
int rootPathIndex,
java.lang.String storeId,
boolean brokenLinksExpanded)
|
protected void |
renderBrokenForm(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
java.lang.String file,
LinkValidationState linkState,
UIActions actions,
org.alfresco.service.cmr.avm.AVMService avmService,
boolean generatedFilesExpanded)
|
protected void |
renderFileDetails(javax.faces.context.ResponseWriter out,
javax.faces.context.FacesContext context,
java.lang.String fileName,
java.lang.String filePath,
java.lang.String brokenLinks,
int numBrokenLinks,
boolean brokenLinksExpanded)
|
protected void |
renderFixedItem(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
java.lang.String file,
LinkValidationState linkState)
|
protected void |
renderNoItems(javax.faces.context.ResponseWriter out,
javax.faces.context.FacesContext context)
Renders the "No items to display" message |
protected void |
renderTabHeader(javax.faces.context.ResponseWriter out,
javax.faces.context.FacesContext context,
java.lang.String tabId,
boolean showExpandCollapseControls)
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setItemsExpanded(boolean value)
|
void |
setItemsExpanded(java.lang.String tab)
|
| Methods inherited from class org.alfresco.web.ui.wcm.component.AbstractLinkValidationReportComponent |
|---|
encodeChildren, getRendersChildren, getValue, setValue |
| Methods inherited from class org.springframework.extensions.webscripts.ui.common.component.SelfRenderingComponent |
|---|
outputAttribute |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, broadcast, decode, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String DEFAULT_INTIAL_TAB
| Constructor Detail |
|---|
public UILinkValidationReport()
| Method Detail |
|---|
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponent
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class AbstractLinkValidationReportComponentpublic java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class AbstractLinkValidationReportComponent
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
encodeBegin in class javax.faces.component.UIComponentBasejava.io.IOExceptionpublic boolean getItemsExpanded()
public void setItemsExpanded(boolean value)
value - true if broken links and generated files should be expandedpublic java.lang.String getInitialTab()
public void setItemsExpanded(java.lang.String tab)
tab - The initial tab to be selected
protected void renderBrokenFile(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
java.lang.String file,
LinkValidationState linkState,
UIActions actions,
org.alfresco.service.cmr.avm.AVMService avmService,
int rootPathIndex,
java.lang.String storeId,
boolean brokenLinksExpanded)
throws java.io.IOException
java.io.IOException
protected void renderBrokenForm(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
java.lang.String file,
LinkValidationState linkState,
UIActions actions,
org.alfresco.service.cmr.avm.AVMService avmService,
boolean generatedFilesExpanded)
throws java.io.IOException
java.io.IOException
protected void renderFixedItem(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter out,
java.lang.String file,
LinkValidationState linkState)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String[] getFileNameAndPath(java.lang.String avmPath)
avmPath - The path to split
protected java.lang.String getBrokenLinks(javax.faces.context.FacesContext context,
java.lang.String avmPath,
LinkValidationState linkState)
avmPath - The avm path to get the broken links forlinkState - The current link valiation state
protected java.lang.String parseBrokenLink(java.lang.String linkUrl)
linkUrl - The URL that is broken
protected void renderTabHeader(javax.faces.context.ResponseWriter out,
javax.faces.context.FacesContext context,
java.lang.String tabId,
boolean showExpandCollapseControls)
throws java.io.IOException
java.io.IOException
protected void renderFileDetails(javax.faces.context.ResponseWriter out,
javax.faces.context.FacesContext context,
java.lang.String fileName,
java.lang.String filePath,
java.lang.String brokenLinks,
int numBrokenLinks,
boolean brokenLinksExpanded)
throws java.io.IOException
java.io.IOException
protected void renderNoItems(javax.faces.context.ResponseWriter out,
javax.faces.context.FacesContext context)
throws java.io.IOException
out - ResponseWriter instance to write tocontext - FacesContext
java.io.IOExceptionprotected java.lang.String getIcon(java.lang.String fileName)
fileName - File name to find an icon for
protected UIActions aquireFileActions(java.lang.String id,
java.lang.String store)
id - ActionGroup id of the UIActions component
protected javax.faces.component.UICommand aquireUpdateStatusAction(javax.faces.context.FacesContext context,
java.lang.String actionId)
protected UIActionLink aquireExpandAllAction(javax.faces.context.FacesContext context,
java.lang.String tabId)
protected UIActionLink aquireCollapseAllAction(javax.faces.context.FacesContext context,
java.lang.String tabId)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||