public class ContentUtil extends Object
Constructor and Description |
---|
ContentUtil() |
Modifier and Type | Method and Description |
---|---|
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 boolean |
isValidTagName(String name)
Returns true if the tag name has '{', otherwise returns false.
|
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 boolean isValidTagName(String name)
Lumisportal 7.1.1.140331 - Copyright © 2006–2014 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.