|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChannelInterface
This interface represents a repository neutral accessor class for an IT Channel entity in a metadata repository.
Field Summary | |
---|---|
static int |
ARCHIVE_TRANSPORT
The channel's default transport is archive. |
static int |
NO_TRANSPORT
No default transport defined in metadata. |
static java.lang.String |
SMART_OBJECT_TYPE
Information service smart object type representing a publishing framework channel type. |
static int |
UNSUPPORTED_TRANSPORT
Unsupported default transport defined in metadata. |
static int |
WEBDAV_TRANSPORT
The 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 | |
---|---|
void |
addContentSubscriber(ContentSubscriberInterface subscriber)
Adds a content subscriber to this channel. |
void |
addEventSubscriber(EventSubscriberInterface subscriber)
Adds an event subscriber to this channel. |
void |
addSubscriberGroup(GroupInterface group)
Add a subscriber group to this channel. |
ContentDestination |
getArchivePath()
Returns a the archive path content information to use as the archive path for this channel. |
ContentDestination |
getContentDestination()
Get the content destination for this channel. |
java.lang.String |
getDavUrlType()
Gets the type of url. |
int |
getDeliveryTransport()
Gets the default transport defined for this channel. |
java.lang.String |
getFrequency()
Gets the frequency for this channel. |
java.lang.String |
getPresentationLanguage()
Returns the channel's presentation language. |
java.lang.String |
getSubject()
Returns this channel's subject. |
boolean |
isContentSubscription(ContentSubscriberInterface subscriber)
Determines if a user is subscribed to this channel as a channel subscriber. |
boolean |
isEventSubscription(EventSubscriberInterface subscriber)
Determines if a user is subscribed to this channel as an event subscriber. |
boolean |
isGroupContentSubscription(ContentSubscriberInterface subscriber)
Determines if a user is subscribed to this channel through a group as a content subscriber. |
boolean |
isGroupEventSubscription(EventSubscriberInterface subscriber)
Determines if a user is subscribed to this channel through a group as an event subscriber. |
boolean |
isPublishAuthorized()
Determines if the user has permission to publish to the channel. |
java.util.List |
packageList()
Returns an iteration of all the packages contained in this channel. |
java.util.List |
packageList(java.util.Comparator compare)
Returns a sorted List of all the packages contained in this channel. |
void |
removeContentSubscriber(ContentSubscriberInterface subscriber)
Removes a content subscriber from this channel. |
void |
removeEventSubscriber(EventSubscriberInterface subscriber)
Removes an event subscriber from this channel. |
void |
removeSubscriberGroup(GroupInterface group)
Remove a subscriber group from this channel. |
void |
setArchivePath(DirectoryInterface basePathDir,
java.lang.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. |
void |
setArchivePath(ServerInterface server,
java.lang.String relativePath)
Set the location of the archive path to use for this channel. |
void |
setArchivePath(java.lang.String path)
Set the location of the archive path to use for this channel. |
void |
setContentDestination(DirectoryInterface basePathDirectory,
java.lang.String relativePath)
Set the content destination for this channel. |
void |
setDavUrlType(java.lang.String type)
Sets the type of url. |
void |
setDeliveryTransport(int deliveryTransport)
Set the default transport defined for this channel. |
void |
setFrequency(java.lang.String frequency)
Sets the frequency string for this channel. |
void |
setPresentationLanguage(java.lang.String language)
Sets the channel presentation language. |
void |
setSubject(java.lang.String subject)
Sets this channel's subject. |
java.util.List |
subscriberGroupsList(int subscriberType)
Returns a List of Group objects that are subscribed to this channel. |
java.util.List |
subscriberList(int subscriberType)
Returns a List of all this channel's subscribers. |
java.util.List |
subscriberList(int subscriberType,
java.util.Comparator compare)
Returns a sorted iteration of all this channel's subscribers. |
java.util.List |
subscriberNameList(int subscriberType)
Return a List of subscriber names. |
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface |
---|
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor |
Field Detail |
---|
static final java.lang.String SMART_OBJECT_TYPE
static final int NO_TRANSPORT
static final int UNSUPPORTED_TRANSPORT
static final int ARCHIVE_TRANSPORT
static final int WEBDAV_TRANSPORT
Method Detail |
---|
java.util.List packageList() throws ServiceException, java.rmi.RemoteException
com.sas.services.publish.metadata.PackageInterface
objects that were published to this channel.
ServiceException
- in the event of a service level error.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List packageList(java.util.Comparator compare) throws ServiceException, java.rmi.RemoteException
compare
- A Comparator for sorting, or null for no sorting.
com.sas.services.publish.metadata.PackageInterface
objects published to this channel.
ServiceException
- in the event of a service level error.
java.rmi.RemoteException
- in the event of remote object failure.ContentDestination getArchivePath() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.void setArchivePath(DirectoryInterface basePathDir, java.lang.String relativePath) throws ServiceException, java.rmi.RemoteException
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.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.void setArchivePath(java.lang.String path) throws ServiceException, java.rmi.RemoteException
path
- A String that identifies the absolute physical path.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.void setArchivePath(ServerInterface server, java.lang.String relativePath) throws ServiceException, java.rmi.RemoteException
server
- A ServerInterface representing the FTP server.relativePath
- A String with the relative path for the
channel archive destination.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getSubject() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.void setSubject(java.lang.String subject) throws ServiceException, java.rmi.RemoteException
subject
- The channel's new subject string.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getPresentationLanguage() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.void setPresentationLanguage(java.lang.String language) throws ServiceException, java.rmi.RemoteException
language
- The new presentation language.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of a network error.java.lang.String getFrequency() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void setFrequency(java.lang.String frequency) throws ServiceException, java.rmi.RemoteException
frequency
- The new frequency string.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.ContentDestination getContentDestination() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.void setContentDestination(DirectoryInterface basePathDirectory, java.lang.String relativePath) throws ServiceException, java.rmi.RemoteException
basePathDirectory
- A Directory representing the content destination.relativePath
- The relative path from the base path to the content.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of remote object failure.java.util.List subscriberList(int subscriberType) throws ServiceException, java.rmi.RemoteException
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.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.java.util.List subscriberList(int subscriberType, java.util.Comparator compare) throws ServiceException, java.rmi.RemoteException
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.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void addEventSubscriber(EventSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The event subscriber to add.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void addContentSubscriber(ContentSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The conent subscriber to add.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void removeEventSubscriber(EventSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The event subscriber to remove.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void removeContentSubscriber(ContentSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The content subscriber to remove.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.boolean isGroupEventSubscription(EventSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The event subscriber subscriber
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.boolean isGroupContentSubscription(ContentSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The content subscriber
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.boolean isEventSubscription(EventSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The subscriber
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.boolean isContentSubscription(ContentSubscriberInterface subscriber) throws ServiceException, java.rmi.RemoteException
subscriber
- The subscriber
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.java.util.List subscriberNameList(int subscriberType) throws java.rmi.RemoteException, ServiceException
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.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of network error.java.util.List subscriberGroupsList(int subscriberType) throws ServiceException, java.rmi.RemoteException
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.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void addSubscriberGroup(GroupInterface group) throws java.rmi.RemoteException, ServiceException
group
- The new subscriber group.
java.rmi.RemoteException
- in the event of a remote object failure.
ServiceException
- if a repository error occurs.void removeSubscriberGroup(GroupInterface group) throws java.rmi.RemoteException, ServiceException
group
- The group to unsubscribe.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of remote object failure.java.lang.String getDavUrlType() throws ServiceException, java.rmi.RemoteException
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void setDavUrlType(java.lang.String type) throws ServiceException, java.rmi.RemoteException
type
- The type of url, parent or collection.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.int getDeliveryTransport() throws ServiceException, java.rmi.RemoteException
UNSUPPORTED_TRANSPORT
, NO_TRANSPORT
,
ARCHIVE_TRANSPORT
or WEBDAV_TRANSPORT
.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.void setDeliveryTransport(int deliveryTransport) throws ServiceException, java.rmi.RemoteException, java.lang.IllegalArgumentException
deliveryTransport
- The default transport defined
as NO_TRANSPORT
,
ARCHIVE_TRANSPORT
or WEBDAV_TRANSPORT
.
ServiceException
- in the event of service object failure.
java.rmi.RemoteException
- in the event of network error.
java.lang.IllegalArgumentException
- if an invalid transport
is specifiedboolean isPublishAuthorized() throws ServiceException, java.rmi.RemoteException
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of network error.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |