public interface I_CmsDirectEditProvider extends I_CmsConfigurationParameterHandler, java.lang.Cloneable
In case you want to implement this, it's a good idea to extend from A_CmsDirectEditProvider
or CmsDirectEditDefaultProvider
as these already contain the required low level logic.
The default direct edit provider used can be configured in opencms-workplace.xml
in the
<directeditprovider class="..." />
node. The standard provider is the
CmsDirectEditDefaultProvider
.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
ATTRIBUTE_DIRECT_EDIT_PROVIDER
Key to identify the direct edit provider instance.
|
static java.lang.String |
ATTRIBUTE_DIRECT_EDIT_PROVIDER_PARAMS
Key to identify the direct edit provider parameteres.
|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
限定符和类型 | 方法和说明 |
---|---|
void |
init(CmsObject cms,
CmsDirectEditMode mode,
java.lang.String fileName)
Initialize method for a new instance of the direct edit provider.
|
void |
insertDirectEditEmptyList(javax.servlet.jsp.PageContext context,
CmsDirectEditParams params)
Inserts the direct edit HTML for empty lists in the provided JSP page context.
|
void |
insertDirectEditEnd(javax.servlet.jsp.PageContext context)
Inserts the "end direct edit" HTML in the provided JSP page context.
|
void |
insertDirectEditIncludes(javax.servlet.jsp.PageContext context,
CmsDirectEditParams params)
Inserts the "direct edit header" HTML in the provided JSP page context.
|
boolean |
insertDirectEditStart(javax.servlet.jsp.PageContext context,
CmsDirectEditParams params)
Inserts the "start direct edit" HTML in the provided JSP page context.
|
boolean |
isManual(CmsDirectEditMode mode)
Returns
true if this provider (currently) operates in manual mode. |
I_CmsDirectEditProvider |
newInstance()
Creates a new instance of this direct edit provider with the same basic configuration.
|
addConfigurationParameter, getConfiguration, initConfiguration
static final java.lang.String ATTRIBUTE_DIRECT_EDIT_PROVIDER
static final java.lang.String ATTRIBUTE_DIRECT_EDIT_PROVIDER_PARAMS
void init(CmsObject cms, CmsDirectEditMode mode, java.lang.String fileName)
cms
- the current users OpenCms contextmode
- the direct edit mode to usefileName
- link to a file that contains the direct edit HTML elements (optional)void insertDirectEditEmptyList(javax.servlet.jsp.PageContext context, CmsDirectEditParams params) throws javax.servlet.jsp.JspException
context
- the JSP page context to insert the HTML toparams
- the parameters for the direct edit calljavax.servlet.jsp.JspException
- in case something goes wrongvoid insertDirectEditEnd(javax.servlet.jsp.PageContext context) throws javax.servlet.jsp.JspException
context
- the JSP page context to insert the HTML tojavax.servlet.jsp.JspException
- in case something goes wrongvoid insertDirectEditIncludes(javax.servlet.jsp.PageContext context, CmsDirectEditParams params) throws javax.servlet.jsp.JspException
context
- the JSP page context to insert the HTML toparams
- the parameters for the direct edit includesjavax.servlet.jsp.JspException
- in case something goes wrongboolean insertDirectEditStart(javax.servlet.jsp.PageContext context, CmsDirectEditParams params) throws javax.servlet.jsp.JspException
context
- the JSP page context to insert the HTML toparams
- the parameters for the direct edit calltrue
in case a direct edit element was opened, false
otherwisejavax.servlet.jsp.JspException
- in case something goes wrongboolean isManual(CmsDirectEditMode mode)
true
if this provider (currently) operates in manual mode.
In manual mode the direct edit HTML is inserted with <cms:enditable mode="manual" />
tags. Otherwise the direct edit HTML is automatically inserted in the current page.
Some providers may not be able to operate in manual mode. These will always return false
.
mode
- the mode of the current direct edit elementtrue
if this provider (currently) operates in manual modeI_CmsDirectEditProvider newInstance()