|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.content.core.ContentUtil
public class ContentUtil
Content utility class.
Constructor Summary | |
---|---|
ContentUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentUtil()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |