Class PrimaryContentUtil


  • public class PrimaryContentUtil
    extends java.lang.Object
    Utilities of primary content.
    Since:
    15.0.0
    Version:
    $Revision: 25304 $ $Date: 2022-10-22 22:51:05 -0300 (Sat, 22 Oct 2022) $
    • Constructor Detail

      • PrimaryContentUtil

        public PrimaryContentUtil()
    • Method Detail

      • getPrimaryContentIdByServiceInstanceAndSource

        public static java.lang.String getPrimaryContentIdByServiceInstanceAndSource​(ServiceInstanceConfig serviceInstance,
                                                                                     java.lang.String sourceId)
                                                                              throws PortalException
        Returns the identifier of the primary content (if any) for the given service instance.
        Parameters:
        serviceInstance - the service instance
        serviceInterface - the service interface
        Returns:
        the identifier of the primary content (if any) for the given service instance.
        Throws:
        PortalException
        Since:
        15.0.0
      • getPrimaryContentIdByServiceInstanceAndServiceInterface

        public static java.lang.String getPrimaryContentIdByServiceInstanceAndServiceInterface​(ServiceInstanceConfig serviceInstance,
                                                                                               ServiceInterfaceConfig serviceInterface)
                                                                                        throws PortalException
        Returns the identifier of the primary content (if any) for the given service instance.
        Parameters:
        serviceInstance - the service instance
        serviceInterface - the service interface
        Returns:
        the identifier of the primary content (if any) for the given service instance.
        Throws:
        PortalException
        Since:
        15.0.0
      • scheduleClearCacheByServiceInstance

        public static void scheduleClearCacheByServiceInstance​(java.lang.String serviceInstanceId)
                                                        throws PortalException
        Schedule a cache clear by service instance.
        Parameters:
        serviceInstanceId - the service instance identifier
        Throws:
        PortalException
        Since:
        15.0.0