|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.workplace.CmsWorkplace
org.opencms.workplace.tools.CmsToolDialog
org.opencms.workplace.CmsDialog
org.opencms.workplace.list.A_CmsListDialog
org.opencms.workplace.list.A_CmsListExplorerDialog
org.opencms.workplace.commons.CmsResourceLinkRelationList
public class CmsResourceLinkRelationList
List for resources with relations to a given resource.
| Field Summary | |
|---|---|
protected static java.lang.String |
LIST_COLUMN_RELATION_TYPE
List column id constant. |
protected static org.apache.commons.logging.Log |
LOG
The log object for this class. |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_ADMIN_PROJECT, PARAM_BASE, PARAM_FORCE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsResourceLinkRelationList(CmsJspActionElement jsp,
boolean isSource)
Default constructor. |
|
| Method Summary | |
|---|---|
protected java.lang.String |
defaultActionHtmlStart()
Generates the dialog starting html code. |
void |
executeListMultiActions()
This method should handle every defined list multi action, by comparing with the id
of the action to execute. |
void |
executeListSingleActions()
This method should handle every defined list single action, by comparing with the id
of the action to execute. |
protected void |
fillDetails(java.lang.String detailId)
Lazy initialization for detail data. |
java.util.List<java.lang.String> |
getBrokenLinks()
Returns the list to identify the resources with broken links. |
I_CmsListResourceCollector |
getCollector()
Returns the collector to use to display the resources. |
protected java.util.List<CmsListItem> |
getListItems()
Should generate a list with the list items to be displayed. |
java.util.Map<CmsResource,java.util.List<CmsRelationType>> |
getRelationTypes()
Returns the relationTypes. |
protected boolean |
isColumnVisible(int colFlag)
Returns the visibility flag for a given column. |
boolean |
isSource()
Returns the isSource. |
void |
setBrokenLinks(java.util.List<java.lang.String> brokenLinks)
Sets the list to identify the resources with broken links. |
protected void |
setColumns(CmsListMetadata metadata)
Adds the standard explorer view columns to the list. |
protected void |
setMultiActions(CmsListMetadata metadata)
Should add the multi actions to the given list metadata object. |
void |
setRelationTypes(java.util.Map<CmsResource,java.util.List<CmsRelationType>> relationTypes)
Sets the relationTypes. |
void |
setSource(boolean isSource)
Sets the isSource. |
protected void |
validateParamaters()
Should be overridden for parameter validation. |
| Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
computeUpLevelLink, dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamForce, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamForce, setParamPath, setParamRoot, setParamStyle, useNewStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String LIST_COLUMN_RELATION_TYPE
protected static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public CmsResourceLinkRelationList(CmsJspActionElement jsp,
boolean isSource)
jsp - an initialized JSP action elementisSource - indicates if the source resources of the relations are shown in the list| Method Detail |
|---|
public void executeListMultiActions()
A_CmsListDialogA_CmsListDialog.getParamListAction() with the id
of the action to execute.
executeListMultiActions in class A_CmsListDialogA_CmsListDialog.executeListMultiActions()public void executeListSingleActions()
A_CmsListDialogA_CmsListDialog.getParamListAction() with the id
of the action to execute.
executeListSingleActions in class A_CmsListDialogA_CmsListDialog.executeListSingleActions()public java.util.List<java.lang.String> getBrokenLinks()
public I_CmsListResourceCollector getCollector()
A_CmsListExplorerDialog
getCollector in class A_CmsListExplorerDialogA_CmsListExplorerDialog.getCollector()public java.util.Map<CmsResource,java.util.List<CmsRelationType>> getRelationTypes()
public boolean isSource()
public void setBrokenLinks(java.util.List<java.lang.String> brokenLinks)
brokenLinks - the list to identify the resources with broken linkspublic void setRelationTypes(java.util.Map<CmsResource,java.util.List<CmsRelationType>> relationTypes)
relationTypes - the relationTypes to setpublic void setSource(boolean isSource)
isSource - the isSource to setprotected java.lang.String defaultActionHtmlStart()
A_CmsListDialog
defaultActionHtmlStart in class A_CmsListExplorerDialogA_CmsListDialog.defaultActionHtmlStart()protected void fillDetails(java.lang.String detailId)
A_CmsListDialog
Should fill the given detail column for every list item in
Should not throw any kind of exception.CmsHtmlList.getContent()
fillDetails in class A_CmsListDialogdetailId - the id of the detail to initializeA_CmsListDialog.fillDetails(java.lang.String)
protected java.util.List<CmsListItem> getListItems()
throws CmsException
A_CmsListDialog
getListItems in class A_CmsListExplorerDialogCmsListItems
CmsException - if something goes wrongA_CmsListExplorerDialog.getListItems()protected boolean isColumnVisible(int colFlag)
A_CmsListExplorerDialogThe default behavior is to show the same columns as the explorer view, but this can be overwritten.
isColumnVisible in class A_CmsListExplorerDialogcolFlag - some CmsUserSettings.FILELIST_TITLE like value
identifying the column to get the visibility flag for
A_CmsListExplorerDialog.isColumnVisible(int)protected void setColumns(CmsListMetadata metadata)
A_CmsListExplorerDialog
setColumns in class A_CmsListExplorerDialogmetadata - the list metadataA_CmsListExplorerDialog.setColumns(org.opencms.workplace.list.CmsListMetadata)protected void setMultiActions(CmsListMetadata metadata)
A_CmsListDialogThis method will be just executed once, the first time the constructor is called.
setMultiActions in class A_CmsListDialogmetadata - the list metadataA_CmsListDialog.setMultiActions(org.opencms.workplace.list.CmsListMetadata)
protected void validateParamaters()
throws java.lang.Exception
A_CmsListDialog
validateParamaters in class A_CmsListDialogjava.lang.Exception - if the parameters are not validA_CmsListDialog.validateParamaters()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||