Interface IChannelManagerSPI

  • All Superinterfaces:
    IChannelManager, IConfigKeyChecker
    All Known Implementing Classes:
    ChannelManager

    public interface IChannelManagerSPI
    extends IChannelManager
    Manager responsible for channel-related internal operations.
    Since:
    6.0.0
    Version:
    $Revision: 22201 $ $Date: 2018-12-17 15:53:06 -0200 (Mon, 17 Dec 2018) $
    • Method Detail

      • validateFriendlyId

        void validateFriendlyId​(SessionConfig sessionConfig,
                                ChannelConfig channelConfig,
                                ITransaction transaction)
                         throws PortalException
        Validates the channel's friendly identifier. If the validation is not successful, an exception is thrown.
        Parameters:
        sessionConfig - the user's session information.
        channelConfig - the channel to be validated.
        transaction - the transaction to use.
        Throws:
        PortalException
        Since:
        6.0.0
      • getChannelTreeIds

        java.util.List<java.lang.String> getChannelTreeIds​(java.lang.String rootChannelId,
                                                           boolean includeIgnoredOnImportExportChannels,
                                                           ITransaction transaction)
                                                    throws ManagerException,
                                                           PortalException
        Returns all the ids of channels in the tree for which the root is the given channelId.
        Parameters:
        rootChannelId - root channel identifier.
        includeIgnoredOnImportExportChannels - indicates whether the ignored channels on export and import should be ignored.
        transaction - the transaction.
        Returns:
        all the ids of channels in the tree for which the root is the given channelId.
        Throws:
        ManagerException
        PortalException
        Since:
        8.0.0
      • isGoogleAnalyticsEnabledLocal

        java.lang.Boolean isGoogleAnalyticsEnabledLocal​(ChannelConfig channelConfig)
                                                 throws PortalException
        Returns whether the Google Analytics is enable in the given channel or null if this property is inherited.
        Parameters:
        channelConfig - the channel the information will be read from.
        Returns:
        whether the Google Analytics is enable in the given channel or null if this property is inherited.
        Throws:
        PortalException
        Since:
        8.2.0
      • isGoogleAnalyticsEnabled

        boolean isGoogleAnalyticsEnabled​(ChannelConfig channelConfig)
                                  throws PortalException
        Returns whether the Google Analytics is enable in the given channel.
        Parameters:
        channelConfig - the channel the information will be read from.
        Returns:
        whether the Google Analytics is enable in the given channel.
        Throws:
        PortalException
        Since:
        8.2.0
      • setGoogleAnalyticsEnable

        void setGoogleAnalyticsEnable​(java.lang.Boolean enabled,
                                      ChannelConfig channelConfig)
                               throws PortalException
        Sets whether the Google Analytics is enable in the given channel.
        Parameters:
        enabled - the value or null to indicate the value should be inherited.
        channelConfig - the channel the information will be set to.
        Throws:
        PortalException
        Since:
        8.2.0
      • updateLocalGroupPrefixFromFriendlyId

        void updateLocalGroupPrefixFromFriendlyId​(SessionConfig sessionConfig,
                                                  ChannelConfig channelConfig,
                                                  ITransaction transaction)
                                           throws ManagerException,
                                                  PortalException
        Updates the local group prefix of the given channel with its friendly identifier. If other channel already uses that local group prefix, a numeric suffix will be appended to the friendly identifier to generate a unique local group prefix.
        This method is atomic. Thus, it will use its own transaction.
        Parameters:
        sessionConfig - the user's session information.
        channelConfig - the channel to be updated.
        transaction - the transaction.
        Throws:
        ManagerException
        PortalException
        Since:
        11.1.0