public class MboxHelper
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getClientContextParameterNames(Resource resource,
InheritanceValueMap pageProperties,
ConfigurationManager configurationManager)
Returns the names of the ClientContext parameters which should be sent as part of mbox calls
|
static java.lang.String |
getCustomMboxJsPath(Resource resource,
Page currentPage,
ConfigurationManager cfgMgr)
Returns the repository path to a custom mbox.js file for the current specified resource and currentPage
|
static java.lang.String |
getMboxId(Resource rsrc)
Generates an mbox ID.
|
static java.lang.String |
getMboxId(java.lang.String path)
Generates an mbox ID from a path
|
static java.lang.String |
getMboxName(Resource rsrc)
Returns a name for the
Resource. |
static java.util.Map<java.lang.String,java.lang.String> |
getStaticParameters(Resource resource) |
static boolean |
isAccurateRendering(Resource resource)
Returns true if the mbox represented by the resource has accurateTargeting enabled.
|
static java.lang.String |
qualifyMboxNameOrId(java.lang.String mboxNameOrId,
WCMMode wcmMode) |
static Resource |
searchStartElement(Resource resource)
Search the start element for the current element type.
|
public static java.lang.String getMboxName(Resource rsrc)
Resource. As name the jcr:title with
removed whitespaces is used if available. If no jcr:title is specified,
a name is generated by getMboxId(Resource).rsrc - public static java.lang.String getMboxId(Resource rsrc)
rsrc - Resource of start/end elementpublic static java.lang.String qualifyMboxNameOrId(java.lang.String mboxNameOrId,
WCMMode wcmMode)
public static java.lang.String getMboxId(java.lang.String path)
path - the path of the resource containing the mboxgetMboxId(Resource)public static Resource searchStartElement(Resource resource)
public static java.lang.String getCustomMboxJsPath(Resource resource, Page currentPage, ConfigurationManager cfgMgr) throws RepositoryException
resource - currentPage - cfgMgr - RepositoryExceptionpublic static boolean isAccurateRendering(Resource resource) throws RepositoryException
resource - RepositoryExceptionpublic static java.util.List<java.lang.String> getClientContextParameterNames(Resource resource, InheritanceValueMap pageProperties, ConfigurationManager configurationManager) throws RepositoryException
This method merges the directly defined parameter names with the parameters names inherited from a Test&Target framework.
resource - the target resourceconfigurationManager - RepositoryExceptionpublic static java.util.Map<java.lang.String,java.lang.String> getStaticParameters(Resource resource) throws java.lang.Exception
java.lang.Exception