Package org.opencms.ade.editprovider
Class CmsToolbarDirectEditProvider
java.lang.Object
org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
org.opencms.workplace.editors.directedit.CmsAdvancedDirectEditProvider
org.opencms.ade.editprovider.CmsToolbarDirectEditProvider
- All Implemented Interfaces:
Cloneable
,I_CmsConfigurationParameterHandler
,I_CmsDirectEditProvider
A Direct Edit provider class which also offers some limited ADE functionality,
like for example the Publish dialog.
- Since:
- 8.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opencms.workplace.editors.directedit.CmsAdvancedDirectEditProvider
CmsAdvancedDirectEditProvider.SitemapDirectEditPermissions
-
Field Summary
Fields inherited from class org.opencms.workplace.editors.directedit.CmsAdvancedDirectEditProvider
m_lastPermissionMode, m_useIds
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.configuration.I_CmsConfigurationParameterHandler
ADD_PARAMETER_METHOD, INIT_CONFIGURATION_METHOD
Fields inherited from interface org.opencms.workplace.editors.directedit.I_CmsDirectEditProvider
ATTRIBUTE_DIRECT_EDIT_PROVIDER, ATTRIBUTE_DIRECT_EDIT_PROVIDER_PARAMS
-
Constructor Summary
ConstructorDescriptionCreates a new instance of this direct edit provider. -
Method Summary
Modifier and TypeMethodDescriptiongetIncludes
(javax.servlet.jsp.PageContext context, CmsDirectEditParams params) Returns the direct edit include HTML to insert in the page beginning.protected boolean
Checks if upload for binaries are supported by this provider.void
insertDirectEditIncludes
(javax.servlet.jsp.PageContext context, CmsDirectEditParams params) Inserts the "direct edit header" HTML in the provided JSP page context.Creates a new instance of this direct edit provider with the same basic configuration.Methods inherited from class org.opencms.workplace.editors.directedit.CmsAdvancedDirectEditProvider
endDirectEditDisabled, endDirectEditEnabled, getRandomId, getResourceInfo, insertDirectEditEnd, insertDirectEditListMetadata, insertDirectEditStart, isManual, startDirectEditDisabled, startDirectEditEnabled
Methods inherited from class org.opencms.workplace.editors.directedit.A_CmsDirectEditProvider
addConfigurationParameter, getConfiguration, getLink, getNextDirectEditId, init, initConfiguration, insertDirectEditEmptyList, print
-
Field Details
-
MODULE_NAME
The module name.- See Also:
-
-
Constructor Details
-
CmsToolbarDirectEditProvider
public CmsToolbarDirectEditProvider()Creates a new instance of this direct edit provider.
-
-
Method Details
-
getIncludes
public String getIncludes(javax.servlet.jsp.PageContext context, CmsDirectEditParams params) throws Exception Returns the direct edit include HTML to insert in the page beginning.- Parameters:
context
- the page contextparams
- the parameters for the direct edit includes- Returns:
- the direct edit include HTML to insert in the page beginning
- Throws:
Exception
- if something goes wrong
-
insertDirectEditIncludes
public void insertDirectEditIncludes(javax.servlet.jsp.PageContext context, CmsDirectEditParams params) throws javax.servlet.jsp.JspException Description copied from interface:I_CmsDirectEditProvider
Inserts the "direct edit header" HTML in the provided JSP page context.- Specified by:
insertDirectEditIncludes
in interfaceI_CmsDirectEditProvider
- Overrides:
insertDirectEditIncludes
in classCmsAdvancedDirectEditProvider
- Parameters:
context
- the JSP page context to insert the HTML toparams
- the parameters for the direct edit includes- Throws:
javax.servlet.jsp.JspException
- in case something goes wrong- See Also:
-
newInstance
Description copied from interface:I_CmsDirectEditProvider
Creates a new instance of this direct edit provider with the same basic configuration.- Specified by:
newInstance
in interfaceI_CmsDirectEditProvider
- Overrides:
newInstance
in classCmsAdvancedDirectEditProvider
- Returns:
- a new instance of this direct edit provider with the same basic configuration
- See Also:
-
hasUploadSupport
Description copied from class:CmsAdvancedDirectEditProvider
Checks if upload for binaries are supported by this provider.- Overrides:
hasUploadSupport
in classCmsAdvancedDirectEditProvider
- Returns:
- true if binary upload is supported
- See Also:
-