|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
org.opencms.workplace.editors.directedit.CmsAdvancedDirectEditProvider
public class CmsAdvancedDirectEditProvider
Provider for the OpenCms AdvancedDirectEdit.
Since OpenCms version 8.0.0.
This provider DOES NOT support CmsDirectEditMode.MANUAL mode.
| Field Summary | |
|---|---|
protected int |
m_lastPermissionMode
Indicates the permissions for the last element the was opened. |
protected boolean |
m_useIds
True if the elements should be assigned randomly generated ids. |
| Fields inherited from class org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider |
|---|
INCLUDE_FILE_DEFAULT, m_cms, m_configurationParameters, m_editButtonStyle, m_fileName, m_messages, m_mode, m_rnd |
| Fields inherited from interface org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider |
|---|
ATTRIBUTE_DIRECT_EDIT_PROVIDER, ATTRIBUTE_DIRECT_EDIT_PROVIDER_PARAMS |
| Fields inherited from interface org.opencms.configuration.I_CmsConfigurationParameterHandler |
|---|
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD |
| Constructor Summary | |
|---|---|
CmsAdvancedDirectEditProvider()
|
|
| Method Summary | |
|---|---|
java.lang.String |
endDirectEditDisabled()
Returns the end HTML for a disabled direct edit button. |
java.lang.String |
endDirectEditEnabled()
Returns the end HTML for an enabled direct edit button. |
java.lang.String |
getRandomId()
Generates a random element id. |
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 false because the default provider does not support manual button placement. |
I_CmsDirectEditProvider |
newInstance()
Creates a new instance of this direct edit provider with the same basic configuration. |
java.lang.String |
startDirectEditDisabled(CmsDirectEditParams params,
CmsDirectEditResourceInfo resourceInfo)
Returns the start HTML for a disabled direct edit button. |
java.lang.String |
startDirectEditEnabled(CmsDirectEditParams params,
CmsDirectEditResourceInfo resourceInfo)
Returns the start HTML for an enabled direct edit button. |
| Methods inherited from class org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider |
|---|
addConfigurationParameter, getConfiguration, getLink, getNextDirectEditId, getResourceInfo, init, initConfiguration, print |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int m_lastPermissionMode
protected boolean m_useIds
| Constructor Detail |
|---|
public CmsAdvancedDirectEditProvider()
| Method Detail |
|---|
public java.lang.String endDirectEditDisabled()
public java.lang.String endDirectEditEnabled()
public java.lang.String getRandomId()
public void insertDirectEditEnd(javax.servlet.jsp.PageContext context)
throws javax.servlet.jsp.JspException
I_CmsDirectEditProvider
context - the JSP page context to insert the HTML to
javax.servlet.jsp.JspException - in case something goes wrongI_CmsDirectEditProvider.insertDirectEditEnd(javax.servlet.jsp.PageContext)
public void insertDirectEditIncludes(javax.servlet.jsp.PageContext context,
CmsDirectEditParams params)
throws javax.servlet.jsp.JspException
I_CmsDirectEditProvider
context - the JSP page context to insert the HTML toparams - the parameters for the direct edit includes
javax.servlet.jsp.JspException - in case something goes wrongI_CmsDirectEditProvider.insertDirectEditIncludes(javax.servlet.jsp.PageContext, org.opencms.workplace.editors.directedit.CmsDirectEditParams)
public boolean insertDirectEditStart(javax.servlet.jsp.PageContext context,
CmsDirectEditParams params)
throws javax.servlet.jsp.JspException
I_CmsDirectEditProvider
context - the JSP page context to insert the HTML toparams - the parameters for the direct edit call
true in case a direct edit element was opened, false otherwise
javax.servlet.jsp.JspException - in case something goes wrongI_CmsDirectEditProvider.insertDirectEditStart(javax.servlet.jsp.PageContext, org.opencms.workplace.editors.directedit.CmsDirectEditParams)public boolean isManual(CmsDirectEditMode mode)
false because the default provider does not support manual button placement.
isManual in interface I_CmsDirectEditProviderisManual in class A_CmsDirectEditProvidermode - the mode of the current direct edit element
true if this provider (currently) operates in manual modeI_CmsDirectEditProvider.isManual(org.opencms.workplace.editors.directedit.CmsDirectEditMode)public I_CmsDirectEditProvider newInstance()
I_CmsDirectEditProvider
I_CmsDirectEditProvider.newInstance()
public java.lang.String startDirectEditDisabled(CmsDirectEditParams params,
CmsDirectEditResourceInfo resourceInfo)
params - the direct edit parametersresourceInfo - contains information about the resource to edit
public java.lang.String startDirectEditEnabled(CmsDirectEditParams params,
CmsDirectEditResourceInfo resourceInfo)
throws JSONException
params - the direct edit parametersresourceInfo - contains information about the resource to edit
JSONException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||