|
|||||||
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.comparison.CmsResourceComparisonDialog
Helper class for managing three lists on the same dialog.
Field Summary | |
static java.lang.String |
COMPARE_ALL_ELEMENTS
Constant indicating that all elements are compared. |
static java.lang.String |
COMPARE_ATTRIBUTES
Constant indicating that the attributes are compared. |
static java.lang.String |
COMPARE_PROPERTIES
Constant indicating that the properties are compared. |
Fields inherited from class org.opencms.workplace.tools.CmsToolDialog |
PARAM_BASE, PARAM_PATH, PARAM_ROOT, PARAM_STYLE, STYLE_NEW |
Constructor Summary | |
CmsResourceComparisonDialog(CmsJspActionElement jsp)
Public constructor with JSP action element. |
|
CmsResourceComparisonDialog(javax.servlet.jsp.PageContext context,
javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Public constructor with JSP variables. |
Method Summary | |
void |
displayDialog()
Display method for two list dialogs. |
void |
displayDifferenceDialog()
Displays the difference dialog. |
java.lang.String[] |
getAttributesAsString(java.util.List attributes)
Converts an attribute list to a string. |
java.lang.String |
getParamCompare()
Returns the paramCompare. |
java.lang.String |
getParamElement()
Returns the paramElement. |
java.lang.String |
getParamLocale()
Returns the paramLocale. |
java.lang.String |
getParamPath1()
Returns the paramPath1. |
java.lang.String |
getParamPath2()
Returns the paramPath2. |
java.lang.String |
getParamTagId1()
Returns the paramTagId1. |
java.lang.String |
getParamTagId2()
Returns the paramTagId2. |
java.lang.String |
getParamTextmode()
Returns the paramTextmode. |
java.lang.String |
getParamVersion1()
Returns the paramVersion1. |
java.lang.String |
getParamVersion2()
Returns the paramVersion2. |
java.lang.String[] |
getPropertiesAsString(java.util.List properties)
Converts an attribute list to a string. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
javax.servlet.http.HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
protected static CmsFile |
readFile(CmsObject cms,
java.lang.String path,
java.lang.String version,
int tagId)
Returns either the backup file or the offline file, depending on the version number. |
void |
setParamCompare(java.lang.String paramCompare)
Sets the paramCompare. |
void |
setParamElement(java.lang.String paramElement)
Sets the paramElement. |
void |
setParamLocale(java.lang.String paramLocale)
Sets the paramLocale. |
void |
setParamPath1(java.lang.String paramPath1)
Sets the paramPath1. |
void |
setParamPath2(java.lang.String paramPath2)
Sets the paramPath2. |
void |
setParamTagId1(java.lang.String paramTagId1)
Sets the paramTagId1. |
void |
setParamTagId2(java.lang.String paramTagId2)
Sets the paramTagId2. |
void |
setParamTextmode(java.lang.String paramTextmode)
Sets the paramTextmode. |
void |
setParamVersion1(java.lang.String paramVersion1)
Sets the paramVersion1. |
void |
setParamVersion2(java.lang.String paramVersion2)
Sets the paramVersion2. |
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 java.lang.String COMPARE_ALL_ELEMENTS
public static final java.lang.String COMPARE_ATTRIBUTES
public static final java.lang.String COMPARE_PROPERTIES
Constructor Detail |
public CmsResourceComparisonDialog(CmsJspActionElement jsp)
jsp
- an initialized JSP action elementpublic CmsResourceComparisonDialog(javax.servlet.jsp.PageContext context, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
context
- the JSP page contextreq
- the JSP requestres
- the JSP responseMethod Detail |
protected static CmsFile readFile(CmsObject cms, java.lang.String path, java.lang.String version, int tagId) throws CmsException
cms
- the CmsObject to usepath
- the path of the fileversion
- the backup versiontagId
- the tag id of the file
CmsException
- if something goes wrongpublic void displayDialog() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic void displayDifferenceDialog() throws java.lang.Exception
java.lang.Exception
- if something goes wrongpublic java.lang.String[] getAttributesAsString(java.util.List attributes)
attributes
- a list of compared attributes to be converted to a string
public java.lang.String getParamCompare()
public java.lang.String getParamElement()
public java.lang.String getParamLocale()
public java.lang.String getParamPath1()
public java.lang.String getParamPath2()
public java.lang.String getParamTagId1()
public java.lang.String getParamTagId2()
public java.lang.String getParamTextmode()
public java.lang.String getParamVersion1()
public java.lang.String getParamVersion2()
public java.lang.String[] getPropertiesAsString(java.util.List properties)
properties
- a list of compared properties to be converted to a string
public void setParamCompare(java.lang.String paramCompare)
paramCompare
- the paramCompare to setpublic void setParamElement(java.lang.String paramElement)
paramElement
- the paramElement to setpublic void setParamLocale(java.lang.String paramLocale)
paramLocale
- the paramLocale to setpublic void setParamPath1(java.lang.String paramPath1)
paramPath1
- the paramPath1 to setpublic void setParamPath2(java.lang.String paramPath2)
paramPath2
- the paramPath2 to setpublic void setParamTagId1(java.lang.String paramTagId1)
paramTagId1
- the paramTagId1 to setpublic void setParamTagId2(java.lang.String paramTagId2)
paramTagId2
- the paramTagId2 to setpublic void setParamTextmode(java.lang.String paramTextmode)
paramTextmode
- the paramTextmode to setpublic void setParamVersion1(java.lang.String paramVersion1)
paramVersion1
- the paramVersion1 to setpublic void setParamVersion2(java.lang.String paramVersion2)
paramVersion2
- the paramVersion2 to setprotected void initWorkplaceRequestValues(CmsWorkplaceSettings settings, javax.servlet.http.HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues
in class CmsDialog
CmsWorkplace.initWorkplaceRequestValues(org.opencms.workplace.CmsWorkplaceSettings, javax.servlet.http.HttpServletRequest)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |