Class AutoAdministrationHelper


  • public abstract class AutoAdministrationHelper
    extends Object
    Class to help calculate information regarding auto-administration.
    Since:
    7.0.0
    Version:
    $Revision: 23904 $ $Date: 2020-06-16 12:23:44 -0300 (Tue, 16 Jun 2020) $
    • Constructor Detail

      • AutoAdministrationHelper

        public AutoAdministrationHelper()
    • Method Detail

      • findTargetChannelId

        public static String findTargetChannelId​(String startingChannelId)
                                          throws PortalException
        Retrieves the channelId of the closets auto-administration service instance for the startingChannelId.
        Parameters:
        startingChannelId - current channel id.
        Returns:
        the the channelId of the closets auto-administration service instance for the startingChannelId, returns null if it doesn't find one.
        Throws:
        PortalException
        Since:
        7.0.0
      • findCurrentAutoAdministrationServiceInstance

        public static ServiceInstanceConfig findCurrentAutoAdministrationServiceInstance​(SessionConfig sessionConfig,
                                                                                         String channelId,
                                                                                         Collection<String> serviceInstanceIds,
                                                                                         ITransaction transaction)
                                                                                  throws PortalException
        Discovers the current auto administration service instance.
        Parameters:
        sessionConfig - session for the current user.
        channelId - channel id of the channel in which you want to discover the nearest service instance of the auto administration service.
        serviceInstanceIds - list of auto administration services available.
        transaction - in which the method should be part of.
        Returns:
        auto administration service instance config 'nearest' to the given channel.
        Throws:
        PortalException
        Since:
        7.0.0
      • getAutoAdministrationPageId

        public static String getAutoAdministrationPageId​(String channelId)
                                                  throws PortalException
        Discovers the pageId from the nearest auto administration service instance.
        Parameters:
        channelId - channel id of the channel in which you want to discover the nearest service instance of the auto administration service.
        Returns:
        pageId of the auto administration founded.
        Throws:
        PortalException - if any error occurs during the process.
        Since:
        7.1.0
      • getAutoAdministrationPageIdForServiceInstance

        public static String getAutoAdministrationPageIdForServiceInstance​(String serviceInstanceId)
                                                                    throws ManagerException,
                                                                           PortalException
        Returns the page identifier to be used for the specified auto administration service instance.
        Parameters:
        serviceInstanceId - the service instance identifier.
        Returns:
        the page identifier.
        Throws:
        ManagerException
        PortalException
        Since:
        12.4.0