|
||||||
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 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_FORCE, 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 |
getParamId1()
Returns the paramId1. |
java.lang.String |
getParamId2()
Returns the paramId2. |
java.lang.String |
getParamLocale()
Returns the paramLocale. |
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,
CmsUUID structureId,
java.lang.String version)
Returns either the historical file or the offline file, depending on the version number. |
protected static CmsResource |
readResource(CmsObject cms,
CmsUUID id,
java.lang.String version)
Returns either the historical resource or the offline resource, depending on the version number. |
void |
setParamCompare(java.lang.String paramCompare)
Sets the paramCompare. |
void |
setParamElement(java.lang.String paramElement)
Sets the paramElement. |
void |
setParamId1(java.lang.String paramId1)
Sets the paramId1. |
void |
setParamId2(java.lang.String paramId2)
Sets the paramId2. |
void |
setParamLocale(java.lang.String paramLocale)
Sets the paramLocale. |
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, 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 |
---|
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, CmsUUID structureId, java.lang.String version) throws CmsException
cms
- the CmsObject to usestructureId
- the structure id of the fileversion
- the historical version number
CmsException
- if something goes wrongprotected static CmsResource readResource(CmsObject cms, CmsUUID id, java.lang.String version) throws CmsException
cms
- the CmsObject to useid
- the structure id of the resourceversion
- the historical version number
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 getParamId1()
public java.lang.String getParamId2()
public java.lang.String getParamLocale()
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 setParamId1(java.lang.String paramId1)
paramId1
- the paramId1 to setpublic void setParamId2(java.lang.String paramId2)
paramId2
- the paramId2 to setpublic void setParamLocale(java.lang.String paramLocale)
paramLocale
- the paramLocale 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
settings
- 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 |