Package lumis.content.incontextedit
Class ContentServiceInterfaceInContextEdit
- java.lang.Object
-
- lumis.content.incontextedit.ContentServiceInterfaceInContextEdit
-
- All Implemented Interfaces:
IServiceInterfaceInContextEdit
public class ContentServiceInterfaceInContextEdit extends java.lang.Object implements IServiceInterfaceInContextEdit
Content implementation forIServiceInterfaceInContextEdit
.- Since:
- 6.0.1
- Version:
- $Revision$ $Date$
-
-
Field Summary
-
Fields inherited from interface lumis.portal.incontextedit.IServiceInterfaceInContextEdit
LUMIS_INTERFACE_IN_CONTEXT_EDIT_ATTRIBUTE_NAME
-
-
Constructor Summary
Constructors Constructor Description ContentServiceInterfaceInContextEdit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getInContextEditMenu(SessionConfig sessionConfig, IURLFactory urlFactory, java.lang.String lumItemId, java.lang.String sourcePageId, ITransaction transaction)
Returns in context edit menu XML string for the given content (represented by a version's item id).java.lang.String
getInContextEditMenu(SessionConfig sessionConfig, IURLFactory urlFactory, ServiceInterfaceInstanceConfig interfaceInstance, java.lang.String detailsLumItemId, ITransaction transaction)
Returns in context edit menu XML string for the given service interface instance.boolean
isInContextEditEnabled(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction)
Returns whether or not in context edit is enabled for the given service interface instance.java.lang.String
processInContextEditContent(ServiceContainerRenderRequest renderRequest, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, java.lang.String outputHTML, ITransaction transaction)
Process in context edit content related attributes.boolean
removeInContextEditInterfaceInstance(SessionConfig sessionConfig, IPortalMode portalMode, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, java.lang.String html, org.apache.wicket.util.string.AppendingStringBuffer sb, java.lang.String detailsLumItemId, ITransaction transaction)
Removes in context editing interface instance related attributes if needed.
-
-
-
Method Detail
-
isInContextEditEnabled
public boolean isInContextEditEnabled(SessionConfig sessionConfig, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, ITransaction transaction) throws PortalException
Returns whether or not in context edit is enabled for the given service interface instance.- Parameters:
sessionConfig
- the session config.serviceInterfaceInstanceConfig
- the service interface isntance config.transaction
- the transaction.- Returns:
- whether or not in context edit is enabled for the given service interface instance.
- Throws:
PortalException
- Since:
- 6.0.1
-
getInContextEditMenu
public java.lang.String getInContextEditMenu(SessionConfig sessionConfig, IURLFactory urlFactory, ServiceInterfaceInstanceConfig interfaceInstance, java.lang.String detailsLumItemId, ITransaction transaction) throws PortalException
Description copied from interface:IServiceInterfaceInContextEdit
Returns in context edit menu XML string for the given service interface instance.- Specified by:
getInContextEditMenu
in interfaceIServiceInterfaceInContextEdit
- Parameters:
sessionConfig
- the session config.urlFactory
- the URL factory to be used during menu generation.interfaceInstance
- the interface instance config.detailsLumItemId
- the lumItemId passed to the source page.transaction
- the transaction.- Returns:
- the service interface instance's in context edit menu's XML string.
- Throws:
PortalException
-
getInContextEditMenu
public java.lang.String getInContextEditMenu(SessionConfig sessionConfig, IURLFactory urlFactory, java.lang.String lumItemId, java.lang.String sourcePageId, ITransaction transaction) throws PortalException
Description copied from interface:IServiceInterfaceInContextEdit
Returns in context edit menu XML string for the given content (represented by a version's item id).- Specified by:
getInContextEditMenu
in interfaceIServiceInterfaceInContextEdit
- Parameters:
sessionConfig
- the session config.urlFactory
- the URL factory to be used during menu generation.lumItemId
- the item id.sourcePageId
- the source page identifier.transaction
- the transaction.- Returns:
- in context edit menu XML string for the given content (represented by a version's item id).
- Throws:
PortalException
-
processInContextEditContent
public java.lang.String processInContextEditContent(ServiceContainerRenderRequest renderRequest, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, java.lang.String outputHTML, ITransaction transaction) throws PortalException
Description copied from interface:IServiceInterfaceInContextEdit
Process in context edit content related attributes.- Specified by:
processInContextEditContent
in interfaceIServiceInterfaceInContextEdit
- Parameters:
renderRequest
- the request.serviceInterfaceInstanceConfig
- the service interface instance.outputHTML
- the HTML to be processed.transaction
- the transaction.- Returns:
- a processed version of HTML.
- Throws:
PortalException
-
removeInContextEditInterfaceInstance
public boolean removeInContextEditInterfaceInstance(SessionConfig sessionConfig, IPortalMode portalMode, ServiceInterfaceInstanceConfig serviceInterfaceInstanceConfig, java.lang.String html, org.apache.wicket.util.string.AppendingStringBuffer sb, java.lang.String detailsLumItemId, ITransaction transaction) throws PortalException
Description copied from interface:IServiceInterfaceInContextEdit
Removes in context editing interface instance related attributes if needed.- Specified by:
removeInContextEditInterfaceInstance
in interfaceIServiceInterfaceInContextEdit
- Parameters:
sessionConfig
- the session config.portalMode
- the portal mode.serviceInterfaceInstanceConfig
- the interface instance.html
- the HTML to be processed.sb
- the String Buffer to store processed version of HTML.detailsLumItemId
- the lumItemId passed to the details interface (if the interface is details).transaction
- the transaction.- Returns:
- A boolean indicating if the interface instance attribute should be added or not. Also, appends in string buffer the processed version of HTML.
- Throws:
PortalException
-
-