|
||||||||||
| 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.commons.CmsHistoryList
public class CmsHistoryList
Displays the history of a file.
| Nested Class Summary | |
|---|---|
static class |
CmsHistoryList.CmsVersionWrapper
Wrapper class for the version which is either an integer or the string "offline". |
| Field Summary | |
|---|---|
static String |
LIST_ACTION_RESTORE
List action export. |
static String |
LIST_ACTION_VIEW
list action id constant. |
static String |
LIST_COLUMN_DATE_LAST_MODIFIED
list column id constant. |
static String |
LIST_COLUMN_DATE_PUBLISHED
list column id constant. |
static String |
LIST_COLUMN_FILE_TYPE
list column id constant. |
static String |
LIST_COLUMN_ICON
list column id constant. |
static String |
LIST_COLUMN_RESOURCE_PATH
list column id constant. |
static String |
LIST_COLUMN_RESTORE
List column delete. |
static String |
LIST_COLUMN_SEL1
list column id constant. |
static String |
LIST_COLUMN_SEL2
list column id constant. |
static String |
LIST_COLUMN_SIZE
list column id constant. |
static String |
LIST_COLUMN_USER
List column export. |
static String |
LIST_COLUMN_VERSION
list column id constant. |
static String |
LIST_COLUMN_VIEW
List column export. |
static String |
LIST_ID
list id constant. |
static String |
LIST_RACTION_SEL1
list independent action id constant. |
static String |
LIST_RACTION_SEL2
list independent action id constant. |
static String |
OFFLINE_PROJECT
constant for the offline project. |
static String |
PARAM_PATH_1
parameter for the path of the first resource. |
static String |
PARAM_PATH_2
parameter for the path of the second resource. |
static String |
PARAM_TAGID_1
parameter for the version of the first resource. |
static String |
PARAM_TAGID_2
parameter for the tag id of the second resource. |
static String |
PARAM_VERSION_1
parameter for the version of the first resource. |
static String |
PARAM_VERSION_2
parameter for the version of the second resource. |
static String |
PATH_BUTTONS
Path to the list buttons. |
| Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
PARAM_BASE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
| Constructor Summary | |
|---|---|
CmsHistoryList(CmsJspActionElement jsp)
Public constructor. |
|
CmsHistoryList(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
protected 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(String detailId)
Lazy initialization for detail data. |
static String |
getBackupLink(String resourcePath,
String versionId)
Returns the link to a backup file. |
protected List |
getListItems()
Should generate a list with the list items to be displayed. |
protected void |
performRestoreOperation()
Restores a backed up resource version. |
static String |
readUserNameOfBackupFile(CmsObject cms,
CmsFile file)
Returns the user last modified of a backup resource. |
protected void |
setColumns(CmsListMetadata metadata)
Should create the columns and add them to the given list metadata object. |
protected void |
setIndependentActions(CmsListMetadata metadata)
Should add the independent actions to the given list metadata object. |
protected void |
setMultiActions(CmsListMetadata metadata)
Should add the multi actions to the given list metadata object. |
| Methods inherited from class org.opencms.workplace.tools.CmsToolDialog |
|---|
dialogTitle, getAdminTool, getCurrentToolPath, getParamBase, getParamPath, getParamRoot, getParamStyle, getParentPath, getToolManager, iconsBlockArea, iconsBlockAreaEnd, iconsBlockAreaStart, initAdminTool, pageBody, pageHtmlStyle, setParamBase, setParamPath, setParamRoot, setParamStyle, useNewStyle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LIST_ACTION_RESTORE
public static final String LIST_ACTION_VIEW
public static final String LIST_COLUMN_DATE_LAST_MODIFIED
public static final String LIST_COLUMN_DATE_PUBLISHED
public static final String LIST_COLUMN_FILE_TYPE
public static final String LIST_COLUMN_ICON
public static final String LIST_COLUMN_RESOURCE_PATH
public static final String LIST_COLUMN_RESTORE
public static final String LIST_COLUMN_SEL1
public static final String LIST_COLUMN_SEL2
public static final String LIST_COLUMN_SIZE
public static final String LIST_COLUMN_USER
public static final String LIST_COLUMN_VERSION
public static final String LIST_COLUMN_VIEW
public static final String LIST_ID
public static final String LIST_RACTION_SEL1
public static final String LIST_RACTION_SEL2
public static final String OFFLINE_PROJECT
public static final String PARAM_TAGID_1
public static final String PARAM_TAGID_2
public static final String PARAM_VERSION_1
public static final String PARAM_VERSION_2
public static final String PARAM_PATH_1
public static final String PARAM_PATH_2
public static final String PATH_BUTTONS
| Constructor Detail |
|---|
public CmsHistoryList(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsHistoryList(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
context - the JSP page contextreq - the JSP requestres - the JSP response| Method Detail |
|---|
public void executeListMultiActions()
throws IOException,
ServletException
A_CmsListDialogA_CmsListDialog.getParamListAction() with the id
of the action to execute.
executeListMultiActions in class A_CmsListDialogIOException - in case of errors when including a required sub-element
ServletException - in case of errors when including a required sub-elementA_CmsListDialog.executeListMultiActions()
public void executeListSingleActions()
throws IOException,
ServletException
A_CmsListDialogA_CmsListDialog.getParamListAction() with the id
of the action to execute.
executeListSingleActions in class A_CmsListDialogIOException - in case of errors when including a required sub-element
ServletException - in case of errors when including a required sub-elementA_CmsListDialog.executeListSingleActions()protected String defaultActionHtmlStart()
A_CmsListDialog
defaultActionHtmlStart in class A_CmsListDialogA_CmsListDialog.defaultActionHtmlStart()protected void fillDetails(String detailId)
A_CmsListDialog
Should fill the given detail column for every list item in
Should not throw any kind of exception.CmsHtmlList.getAllContent()
fillDetails in class A_CmsListDialogdetailId - the id of the detail to initializeA_CmsListDialog.fillDetails(java.lang.String)
protected List getListItems()
throws CmsException
A_CmsListDialog
getListItems in class A_CmsListDialogCmsListItems
CmsException - if something goes wrongA_CmsListDialog.getListItems()
public static String readUserNameOfBackupFile(CmsObject cms,
CmsFile file)
throws CmsException
cms - the cms objectfile - the file to use
CmsException - if something goes wrong
protected void performRestoreOperation()
throws CmsException
CmsException - if something goes wrongprotected void setColumns(CmsListMetadata metadata)
A_CmsListDialogThis method will be just executed once, the first time the constructor is called.
setColumns in class A_CmsListDialogmetadata - the list metadataA_CmsListDialog.setColumns(org.opencms.workplace.list.CmsListMetadata)
public static String getBackupLink(String resourcePath,
String versionId)
resourcePath - the path of the fileversionId - the version of the file
protected void setIndependentActions(CmsListMetadata metadata)
A_CmsListDialogThis method will be just executed once, the first time the constructor is called.
setIndependentActions in class A_CmsListDialogmetadata - the list metadataA_CmsListDialog.setIndependentActions(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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||