*** This interface provides Binary Compatibility only, not Source Compatibility ***

Interface ChannelInterface

All Superinterfaces:
MetadataInterface, PublicObjectInterface, Remote

@SASScope("ALL") @BinaryCompatibilityOnly public interface ChannelInterface extends MetadataInterface
This interface represents a repository neutral accessor class for an IT Channel entity in a metadata repository.

Since:
1.0
  • Field Details

    • SMART_OBJECT_TYPE

      static final String SMART_OBJECT_TYPE
      Information service smart object type representing a publishing framework channel type.
      See Also:
    • NO_TRANSPORT

      static final int NO_TRANSPORT
      No default transport defined in metadata.
      See Also:
    • UNSUPPORTED_TRANSPORT

      static final int UNSUPPORTED_TRANSPORT
      Unsupported default transport defined in metadata.
      See Also:
    • ARCHIVE_TRANSPORT

      static final int ARCHIVE_TRANSPORT
      The channel's default transport is archive.
      See Also:
    • WEBDAV_TRANSPORT

      static final int WEBDAV_TRANSPORT
      The channel's default transport is WebDAV.
      See Also:
  • Method Details

    • packageList

      List packageList() throws ServiceException, RemoteException
      Returns an iteration of all the packages contained in this channel.

      Returns:
      A List of com.sas.services.publish.metadata.PackageInterface objects that were published to this channel.
      Throws:
      ServiceException - in the event of a service level error.
      RemoteException - in the event of remote object failure.
    • packageList

      List packageList(Comparator compare) throws ServiceException, RemoteException
      Returns a sorted List of all the packages contained in this channel.

      Parameters:
      compare - A Comparator for sorting, or null for no sorting.
      Returns:
      A List of com.sas.services.publish.metadata.PackageInterface objects published to this channel.
      Throws:
      ServiceException - in the event of a service level error.
      RemoteException - in the event of remote object failure.
    • getArchivePath

      ContentDestination getArchivePath() throws ServiceException, RemoteException
      Returns a the archive path content information to use as the archive path for this channel.

      Returns:
      a ContentDestination object that represents the default location for archives published to this channel.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • setArchivePath

      void setArchivePath(DirectoryInterface basePathDir, String relativePath) throws ServiceException, RemoteException
      Set the location of the archive path to use for this channel.This method should be used when the archive path is defined to be an HTTP server.
      Parameters:
      basePathDir - A DirectoryInterface representing the base path for this channel. The server can be obtained from the base path directory.
      relativePath - A String with the relative path for the channel archive destination.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • setArchivePath

      void setArchivePath(String path) throws ServiceException, RemoteException
      Set the location of the archive path to use for this channel. Sets the archive path to a physical path.
      Parameters:
      path - A String that identifies the absolute physical path.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • setArchivePath

      void setArchivePath(ServerInterface server, String relativePath) throws ServiceException, RemoteException
      Set the location of the archive path to use for this channel. This method should be used when the archive path is defined to be an FTP server.
      Parameters:
      server - A ServerInterface representing the FTP server.
      relativePath - A String with the relative path for the channel archive destination.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • getSubject

      String getSubject() throws ServiceException, RemoteException
      Returns this channel's subject.

      Returns:
      The subject.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • setSubject

      void setSubject(String subject) throws ServiceException, RemoteException
      Sets this channel's subject.

      Parameters:
      subject - The channel's new subject string.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • getPresentationLanguage

      String getPresentationLanguage() throws ServiceException, RemoteException
      Returns the channel's presentation language.

      Returns:
      the presentation language.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • setPresentationLanguage

      void setPresentationLanguage(String language) throws ServiceException, RemoteException
      Sets the channel presentation language.

      Parameters:
      language - The new presentation language.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of a network error.
    • getFrequency

      String getFrequency() throws ServiceException, RemoteException
      Gets the frequency for this channel. This is only a hint for potential subscribers, not a rule. This string may be displayed to give users an idea of how often content is published.

      Returns:
      the frequency that content is published on this channel.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • setFrequency

      void setFrequency(String frequency) throws ServiceException, RemoteException
      Sets the frequency string for this channel. This string is just for display, so no attempt is made to verify it as a valid period.

      Parameters:
      frequency - The new frequency string.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • getContentDestination

      ContentDestination getContentDestination() throws ServiceException, RemoteException
      Get the content destination for this channel.
      Returns:
      a Directory representing the preferred content destination for this subscriber.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • setContentDestination

      void setContentDestination(DirectoryInterface basePathDirectory, String relativePath) throws ServiceException, RemoteException
      Set the content destination for this channel.
      Parameters:
      basePathDirectory - A Directory representing the content destination.
      relativePath - The relative path from the base path to the content.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of remote object failure.
    • subscriberList

      List subscriberList(int subscriberType) throws ServiceException, RemoteException
      Returns a List of all this channel's subscribers.

      Parameters:
      subscriberType - Identifies the type of subscribers to return. Valid subscriber types include SubscriberInterface.SUBSCRIBER_CONTENT or SubscriberInterface.SUBSCRIBER_EVENT. The subscriber type can be ORed in order to return multiple types of subscribers.
      Returns:
      A List of SubscriberInterface objects.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • subscriberList

      List subscriberList(int subscriberType, Comparator compare) throws ServiceException, RemoteException
      Returns a sorted iteration of all this channel's subscribers.

      Parameters:
      subscriberType - Identifies the type of subscribers to return. Valid subscriber types include SubscriberInterface.SUBSCRIBER_CONTENT or SubscriberInterface.SUBSCRIBER_EVENT. The subscriber type can be ORed in order to return multiple types of subscribers.
      compare - A Comparator for sorting, or null for no sorting.
      Returns:
      A List of SubscriberInterface objects.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • addEventSubscriber

      void addEventSubscriber(EventSubscriberInterface subscriber) throws ServiceException, RemoteException
      Adds an event subscriber to this channel.

      Parameters:
      subscriber - The event subscriber to add.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • addContentSubscriber

      void addContentSubscriber(ContentSubscriberInterface subscriber) throws ServiceException, RemoteException
      Adds a content subscriber to this channel.

      Parameters:
      subscriber - The conent subscriber to add.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • removeEventSubscriber

      void removeEventSubscriber(EventSubscriberInterface subscriber) throws ServiceException, RemoteException
      Removes an event subscriber from this channel.

      Parameters:
      subscriber - The event subscriber to remove.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • removeContentSubscriber

      void removeContentSubscriber(ContentSubscriberInterface subscriber) throws ServiceException, RemoteException
      Removes a content subscriber from this channel.

      Parameters:
      subscriber - The content subscriber to remove.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • isGroupEventSubscription

      boolean isGroupEventSubscription(EventSubscriberInterface subscriber) throws ServiceException, RemoteException
      Determines if a user is subscribed to this channel through a group as an event subscriber.

      Parameters:
      subscriber - The event subscriber subscriber
      Returns:
      true if a subscriber's group is subscribed to this channel
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • isGroupContentSubscription

      boolean isGroupContentSubscription(ContentSubscriberInterface subscriber) throws ServiceException, RemoteException
      Determines if a user is subscribed to this channel through a group as a content subscriber.

      Parameters:
      subscriber - The content subscriber
      Returns:
      true if a subscriber's group is subscribed to this channel
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • isEventSubscription

      boolean isEventSubscription(EventSubscriberInterface subscriber) throws ServiceException, RemoteException
      Determines if a user is subscribed to this channel as an event subscriber.

      Parameters:
      subscriber - The subscriber
      Returns:
      true if user is subscribed, false otherwise
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • isContentSubscription

      boolean isContentSubscription(ContentSubscriberInterface subscriber) throws ServiceException, RemoteException
      Determines if a user is subscribed to this channel as a channel subscriber.

      Parameters:
      subscriber - The subscriber
      Returns:
      true if user is subscribed, false otherwise
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • subscriberNameList

      List subscriberNameList(int subscriberType) throws RemoteException, ServiceException
      Return a List of subscriber names. The type of subscribers that are processed is determined by the subscriber type parameter. This method can return the names of content subscribers, event subscribers or both.

      Parameters:
      subscriberType - Identifies the type of subscriber to return information for. Valid subscriber types include SubscriberInterface.SUBSCRIBER_CONTENT or SubscriberInterface.SUBSCRIBER_EVENT. The subscriber type can be ORed in order to return names for multiple subscriber types.
      Returns:
      A List of Strings with the names of the subscribers to this channel.
      Throws:
      ServiceException - if a repository error occurs.
      RemoteException - in the event of network error.
    • subscriberGroupsList

      List subscriberGroupsList(int subscriberType) throws ServiceException, RemoteException
      Returns a List of Group objects that are subscribed to this channel. A group of content subscribers and group of event subscribers is supported. The type of subscribers that are processed is determined by the subscriber type parameter. This method can return groups of content subscribers or a group of event subscribers or both.

      Parameters:
      subscriberType - Identifies the type of subscriber to return information for. Valid subscriber types include SubscriberInterface.SUBSCRIBER_CONTENT or SubscriberInterface.SUBSCRIBER_EVENT. The subscriber type can be ORed in order to return groups for multiple subscriber types.
      Returns:
      a List of Group objects.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • addSubscriberGroup

      void addSubscriberGroup(GroupInterface group) throws RemoteException, ServiceException
      Add a subscriber group to this channel.

      Parameters:
      group - The new subscriber group.
      Throws:
      RemoteException - in the event of a remote object failure.
      ServiceException - if a repository error occurs.
    • removeSubscriberGroup

      void removeSubscriberGroup(GroupInterface group) throws RemoteException, ServiceException
      Remove a subscriber group from this channel.

      Parameters:
      group - The group to unsubscribe.
      Throws:
      ServiceException - if a repository error occurs.
      RemoteException - in the event of remote object failure.
    • getDavUrlType

      String getDavUrlType() throws ServiceException, RemoteException
      Gets the type of url. For webDAV servers, the url can either be a parent or collection url.

      Returns:
      The type of url, parent or collection.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • setDavUrlType

      void setDavUrlType(String type) throws ServiceException, RemoteException
      Sets the type of url. For webDAV servers, the url can either be a parent or collection url.

      Parameters:
      type - The type of url, parent or collection.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • getDeliveryTransport

      int getDeliveryTransport() throws ServiceException, RemoteException
      Gets the default transport defined for this channel.

      Returns:
      The default transport defined as UNSUPPORTED_TRANSPORT, NO_TRANSPORT, ARCHIVE_TRANSPORT or WEBDAV_TRANSPORT.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
    • setDeliveryTransport

      void setDeliveryTransport(int deliveryTransport) throws ServiceException, RemoteException, IllegalArgumentException
      Set the default transport defined for this channel.

      Parameters:
      deliveryTransport - The default transport defined as NO_TRANSPORT, ARCHIVE_TRANSPORT or WEBDAV_TRANSPORT.
      Throws:
      ServiceException - in the event of service object failure.
      RemoteException - in the event of network error.
      IllegalArgumentException - if an invalid transport is specified
    • isPublishAuthorized

      boolean isPublishAuthorized() throws ServiceException, RemoteException
      Determines if the user has permission to publish to the channel.

      Returns:
      true if the user has permission to publish to the channel
      Throws:
      ServiceException - if a repository error occurs.
      RemoteException - in the event of network error.