*** 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe channel's default transport is archive.static final intNo default transport defined in metadata.static final StringInformation service smart object type representing a publishing framework channel type.static final intUnsupported default transport defined in metadata.static final intThe channel's default transport is WebDAV.Fields inherited from interface com.sas.services.information.metadata.MetadataInterface
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContentSubscriber(ContentSubscriberInterface subscriber) Adds a content subscriber to this channel.voidaddEventSubscriber(EventSubscriberInterface subscriber) Adds an event subscriber to this channel.voidaddSubscriberGroup(GroupInterface group) Add a subscriber group to this channel.Returns a the archive path content information to use as the archive path for this channel.Get the content destination for this channel.StringGets the type of url.intGets the default transport defined for this channel.StringGets the frequency for this channel.StringReturns the channel's presentation language.StringReturns this channel's subject.booleanisContentSubscription(ContentSubscriberInterface subscriber) Determines if a user is subscribed to this channel as a channel subscriber.booleanisEventSubscription(EventSubscriberInterface subscriber) Determines if a user is subscribed to this channel as an event subscriber.booleanisGroupContentSubscription(ContentSubscriberInterface subscriber) Determines if a user is subscribed to this channel through a group as a content subscriber.booleanisGroupEventSubscription(EventSubscriberInterface subscriber) Determines if a user is subscribed to this channel through a group as an event subscriber.booleanDetermines if the user has permission to publish to the channel.ListReturns an iteration of all the packages contained in this channel.ListpackageList(Comparator compare) Returns a sorted List of all the packages contained in this channel.voidremoveContentSubscriber(ContentSubscriberInterface subscriber) Removes a content subscriber from this channel.voidremoveEventSubscriber(EventSubscriberInterface subscriber) Removes an event subscriber from this channel.voidRemove a subscriber group from this channel.voidsetArchivePath(DirectoryInterface basePathDir, String relativePath) 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.voidsetArchivePath(ServerInterface server, String relativePath) Set the location of the archive path to use for this channel.voidsetArchivePath(String path) Set the location of the archive path to use for this channel.voidsetContentDestination(DirectoryInterface basePathDirectory, String relativePath) Set the content destination for this channel.voidsetDavUrlType(String type) Sets the type of url.voidsetDeliveryTransport(int deliveryTransport) Set the default transport defined for this channel.voidsetFrequency(String frequency) Sets the frequency string for this channel.voidsetPresentationLanguage(String language) Sets the channel presentation language.voidsetSubject(String subject) Sets this channel's subject.ListsubscriberGroupsList(int subscriberType) Returns a List of Group objects that are subscribed to this channel.ListsubscriberList(int subscriberType) Returns a List of all this channel's subscribers.ListsubscriberList(int subscriberType, Comparator compare) Returns a sorted iteration of all this channel's subscribers.ListsubscriberNameList(int subscriberType) Return a List of subscriber names.Methods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getCreatedBy, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getParent, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getType, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isObjectAlive, isReadCompatible, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, versionMethods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
-
Field Details
-
SMART_OBJECT_TYPE
static final String SMART_OBJECT_TYPEInformation service smart object type representing a publishing framework channel type.- See Also:
-
NO_TRANSPORT
static final int NO_TRANSPORTNo default transport defined in metadata.- See Also:
-
UNSUPPORTED_TRANSPORT
static final int UNSUPPORTED_TRANSPORTUnsupported default transport defined in metadata.- See Also:
-
ARCHIVE_TRANSPORT
static final int ARCHIVE_TRANSPORTThe channel's default transport is archive.- See Also:
-
WEBDAV_TRANSPORT
static final int WEBDAV_TRANSPORTThe channel's default transport is WebDAV.- See Also:
-
-
Method Details
-
packageList
Returns an iteration of all the packages contained in this channel.- Returns:
- A List of
com.sas.services.publish.metadata.PackageInterfaceobjects 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
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.PackageInterfaceobjects published to this channel. - Throws:
ServiceException- in the event of a service level error.RemoteException- in the event of remote object failure.
-
getArchivePath
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
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
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
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
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
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
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
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
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
Returns a List of all this channel's subscribers.- Parameters:
subscriberType- Identifies the type of subscribers to return. Valid subscriber types includeSubscriberInterface.SUBSCRIBER_CONTENTorSubscriberInterface.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 includeSubscriberInterface.SUBSCRIBER_CONTENTorSubscriberInterface.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
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 includeSubscriberInterface.SUBSCRIBER_CONTENTorSubscriberInterface.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
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 includeSubscriberInterface.SUBSCRIBER_CONTENTorSubscriberInterface.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
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
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
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
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
Gets the default transport defined for this channel.- Returns:
- The default transport defined as
UNSUPPORTED_TRANSPORT,NO_TRANSPORT,ARCHIVE_TRANSPORTorWEBDAV_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 asNO_TRANSPORT,ARCHIVE_TRANSPORTorWEBDAV_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
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.
-