public class ContentUtil extends Object
Constructor and Description |
---|
ContentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
checkTagName(String name)
Checks the given tag name.
|
static String |
getContentFieldId(Source<?> source)
Returns the field identifier that corresponds to the contentId.
|
static String |
getOldItemIdParameter(IServiceInterfaceRequest request)
Gets the itemId parameter for a request, trying to be most backward
compatible with the 4.1 implementation logic.
|
static String |
normalizeTagName(String name)
Normalizes a tag name.
|
public static String getOldItemIdParameter(IServiceInterfaceRequest request) throws PortalException
Uses the value of PortalRequestParameters.PAGE_PARAMETER_ITEM_ID
as contentId, tries to discover the most appropriated
contentVersion.itemId (data primary key) and returns it.
request
- the request.null
if it could not be obtained.PortalException
public static String getContentFieldId(Source<?> source)
source
- The source in which the contentId field is detected.public static String normalizeTagName(String name)
name
- the tag name.public static void checkTagName(String name)
IllegalArgumentException
- if the given tag name is invalid.LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.