|
||||||||||
| 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
public class CmsResourceComparisonDialog
Helper class for managing three lists on the same dialog.
| Field Summary | |
|---|---|
static String |
COMPARE_ALL_ELEMENTS
Constant indicating that all elements are compared. |
static String |
COMPARE_ATTRIBUTES
Constant indicating that the attributes are compared. |
static 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(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
Public constructor with JSP variables. |
|
| Method Summary | |
|---|---|
void |
displayDialog()
Display method for two list dialogs. |
void |
displayDifferenceDialog()
Displays the difference dialog. |
String[] |
getAttributesAsString(List attributes)
Converts an attribute list to a string. |
String |
getParamCompare()
Returns the paramCompare. |
String |
getParamElement()
Returns the paramElement. |
String |
getParamLocale()
Returns the paramLocale. |
String |
getParamPath1()
Returns the paramPath1. |
String |
getParamPath2()
Returns the paramPath2. |
String |
getParamTagId1()
Returns the paramTagId1. |
String |
getParamTagId2()
Returns the paramTagId2. |
String |
getParamTextmode()
Returns the paramTextmode. |
String |
getParamVersion1()
Returns the paramVersion1. |
String |
getParamVersion2()
Returns the paramVersion2. |
String[] |
getPropertiesAsString(List properties)
Converts an attribute list to a string. |
protected void |
initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
Analyzes the request for workplace parameters and adjusts the workplace settings accordingly. |
protected static CmsFile |
readFile(CmsObject cms,
String path,
String version,
int tagId)
Returns either the backup file or the offline file, depending on the version number. |
void |
setParamCompare(String paramCompare)
Sets the paramCompare. |
void |
setParamElement(String paramElement)
Sets the paramElement. |
void |
setParamLocale(String paramLocale)
Sets the paramLocale. |
void |
setParamPath1(String paramPath1)
Sets the paramPath1. |
void |
setParamPath2(String paramPath2)
Sets the paramPath2. |
void |
setParamTagId1(String paramTagId1)
Sets the paramTagId1. |
void |
setParamTagId2(String paramTagId2)
Sets the paramTagId2. |
void |
setParamTextmode(String paramTextmode)
Sets the paramTextmode. |
void |
setParamVersion1(String paramVersion1)
Sets the paramVersion1. |
void |
setParamVersion2(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 String COMPARE_ALL_ELEMENTS
public static final String COMPARE_ATTRIBUTES
public static final String COMPARE_PROPERTIES
| Constructor Detail |
|---|
public CmsResourceComparisonDialog(CmsJspActionElement jsp)
jsp - an initialized JSP action element
public CmsResourceComparisonDialog(PageContext context,
HttpServletRequest req,
HttpServletResponse res)
context - the JSP page contextreq - the JSP requestres - the JSP response| Method Detail |
|---|
protected static CmsFile readFile(CmsObject cms,
String path,
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 wrong
public void displayDialog()
throws Exception
Exception - if something goes wrong
public void displayDifferenceDialog()
throws Exception
Exception - if something goes wrongpublic String[] getAttributesAsString(List attributes)
attributes - a list of compared attributes to be converted to a string
public String getParamCompare()
public String getParamElement()
public String getParamLocale()
public String getParamPath1()
public String getParamPath2()
public String getParamTagId1()
public String getParamTagId2()
public String getParamTextmode()
public String getParamVersion1()
public String getParamVersion2()
public String[] getPropertiesAsString(List properties)
properties - a list of compared properties to be converted to a string
public void setParamCompare(String paramCompare)
paramCompare - the paramCompare to setpublic void setParamElement(String paramElement)
paramElement - the paramElement to setpublic void setParamLocale(String paramLocale)
paramLocale - the paramLocale to setpublic void setParamPath1(String paramPath1)
paramPath1 - the paramPath1 to setpublic void setParamPath2(String paramPath2)
paramPath2 - the paramPath2 to setpublic void setParamTagId1(String paramTagId1)
paramTagId1 - the paramTagId1 to setpublic void setParamTagId2(String paramTagId2)
paramTagId2 - the paramTagId2 to setpublic void setParamTextmode(String paramTextmode)
paramTextmode - the paramTextmode to setpublic void setParamVersion1(String paramVersion1)
paramVersion1 - the paramVersion1 to setpublic void setParamVersion2(String paramVersion2)
paramVersion2 - the paramVersion2 to set
protected void initWorkplaceRequestValues(CmsWorkplaceSettings settings,
HttpServletRequest request)
CmsWorkplace
initWorkplaceRequestValues in class CmsDialogsettings - the workplace settingsrequest - the current requestCmsWorkplace.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 | |||||||||