Class ContentUtilInternal


  • public class ContentUtilInternal
    extends Object
    Content utilities.
    Since:
    10.2.0
    Version:
    $Revision: 22202 $ $Date: 2018-12-17 15:54:36 -0200 (Mon, 17 Dec 2018) $
    • Constructor Detail

      • ContentUtilInternal

        public ContentUtilInternal()
    • Method Detail

      • isContentPublished

        public static boolean isContentPublished​(String contentId)
                                          throws PortalException
        Returns whether the content with the given identifier exists and it is published.
        Parameters:
        contentId - the content identifier.
        Returns:
        whether the content with the given identifier exists and it is published.
        Throws:
        PortalException
        Since:
        10.2.0
      • getItemId

        public static String getItemId​(String id,
                                       String localeId)
                                throws PortalException
        Returns the 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.
        Parameters:
        id - the identifier.
        localeId - the desired locale.
        Returns:
        the item identifier based on the given identifier or null if none could be inferred
        Throws:
        PortalException
        Since:
        11.1.0
      • getContentId

        public static String getContentId​(String id)
                                   throws PortalException
        Returns the 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.
        Parameters:
        id - the identifier.
        Returns:
        the item identifier based on the given identifier or null if none could be inferred
        Throws:
        PortalException
        Since:
        11.1.0