public class ContentUtilInternal extends Object
Constructor and Description |
---|
ContentUtilInternal() |
Modifier and Type | Method and Description |
---|---|
static String |
getContentId(String id)
Returns the
content identifier based on the given identifier or null if none could be inferred. |
static String |
getItemId(String id,
String localeId)
Returns the
item identifier based on the given identifier or null if none could be inferred. |
static boolean |
isContentPublished(String contentId)
Returns whether the content with the given identifier exists and it is published.
|
public static boolean isContentPublished(String contentId) throws PortalException
contentId
- the content identifier.PortalException
public static String getItemId(String id, String localeId) throws PortalException
item identifier
based on the given identifier or null
if none could be inferred.
Tries to use the given identifier as item id or contentId.id
- the identifier.localeId
- the desired locale.item identifier
based on the given identifier or null
if none could be inferredPortalException
public static String getContentId(String id) throws PortalException
content identifier
based on the given identifier or null
if none could be inferred.
Tries to use the given identifier as item id or contentId.id
- the identifier.item identifier
based on the given identifier or null
if none could be inferredPortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.