Interface IChannelManagerSPI

    • 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
      • 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