|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--com.sas.services.information.metadata.Metadata
|
+--com.sas.services.information.metadata.OMRChannel
The Channel class is a "smart" object that implements a generic interface to an IT Channel and hides differences in metadata repositories (OMR and LDAP).
| Fields inherited from class com.sas.services.information.metadata.Metadata |
_repository, _repositoryFlag, _repositoryObject, formats, gmtZone, REPOSITORY_DAV, REPOSITORY_LDAP, REPOSITORY_NONE, REPOSITORY_OMR |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Fields inherited from interface com.sas.services.information.metadata.ChannelInterface |
ARCHIVE_TRANSPORT, NO_TRANSPORT, SMART_OBJECT_TYPE, UNSUPPORTED_TRANSPORT, WEBDAV_TRANSPORT |
| Fields inherited from interface com.sas.services.information.metadata.MetadataInterface |
PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA |
| Constructor Summary | |
OMRChannel()
|
|
OMRChannel(ITChannel o)
|
|
OMRChannel(ITChannelImpl o)
|
|
OMRChannel(RepositoryInterface repos,
String name,
FolderInterface parent)
This is the constructor for a new metadata object. |
|
| 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 |
String |
getDavUrlType()
Sets the type of url. |
int |
getDefaultTransport()
|
int |
getDeliveryTransport()
Gets the default transport defined for this channel. |
String |
getFrequency()
Gets the frequency for this channel. |
String |
getPresentationLanguage()
Returns the channel's presentation language. |
String |
getSubject()
Returns this channel's subject. |
String |
getType()
Return a type string to identify this object. |
boolean |
isContentSubscription(ContentSubscriberInterface subscriber)
Determines if a user is subscribed to this channel as a package 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. |
boolean |
isGroupEventSubscription(EventSubscriberInterface subscriber)
Determines if a user is subscribed to this channel through a group as an event subscriber. |
List |
packageList()
Returns an iteration of all the packages contained in this channel. |
List |
packageList(Comparator compare)
Returns a sorted List of all the archives contained in this channel. |
void |
refresh()
Refresh the data for this object from the repository. |
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,
String relativePath)
Set the location of the archive path to use for this channel. |
void |
setArchivePath(ServerInterface server,
String relativePath)
Set the location of the archive path to use for this channel. |
void |
setArchivePath(String path)
Set the location of the archive path to use for this channel. |
void |
setContentDestination(DirectoryInterface basePathDirectory,
String relativePath)
Set the content destination for this channel. |
void |
setDavUrlType(String type)
Sets the type of url. |
void |
setDeliveryTransport(int transport)
Sets the delivery transport for this channel. |
void |
setDeliveryTransport(String transport)
Sets the delivery transport for this channel. |
void |
setFrequency(String frequency)
Sets the frequency string for this channel. |
void |
setPresentationLanguage(String language)
Sets the channel presentation language. |
void |
setRepository(RepositoryInterface repos)
Set the repository that this item exists in. |
void |
setSubject(String subject)
Sets this channel's subject. |
List |
subscriberGroupsList(int subscriberType)
Returns a List of Group objects that are subscribed to this channel. |
List |
subscriberList(int subscriberType)
Returns a List of all this channel's subscribers. |
List |
subscriberList(int subscriberType,
Comparator compare)
Returns a sorted iteration of all this channel's subscribers. |
List |
subscriberNameList(int subscriberType)
Return a List of subscriber names. |
String |
toString()
|
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OMRChannel()
throws RemoteException
public OMRChannel(ITChannel o)
throws RemoteException
public OMRChannel(ITChannelImpl o)
throws RemoteException
public OMRChannel(RepositoryInterface repos,
String name,
FolderInterface parent)
throws RemoteException
repos - The repository the new object will reside in.name - The name of the new object.parent - The parent folder of the new object.| Method Detail |
public String getType()
throws RemoteException
getType in interface MetadataInterfacegetType in class Metadata
public ContentDestination getArchivePath()
throws ServiceException,
RemoteException
getArchivePath in interface ChannelInterfaceServiceException - in the event of service object failure.RemoteException - in the event of remote object failure.
public void setArchivePath(DirectoryInterface basePathDir,
String relativePath)
throws ServiceException,
RemoteException
setArchivePath in interface ChannelInterfacebasePathDir - A DirectoryInterface representing the base path for this
channelrelativePath - A String with the relative path for the channel archive
destination.ServiceException - in the event of service object failure.RemoteException - in the event of remote object failure.
public void setArchivePath(String path)
throws ServiceException,
RemoteException
setArchivePath in interface ChannelInterfacepath - A String that identifies the absolute physical path.ServiceException - in the event of service object failure.RemoteException - in the event of remote object failure.
public void setArchivePath(ServerInterface server,
String relativePath)
throws ServiceException,
RemoteException
setArchivePath in interface ChannelInterfaceserver - 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.RemoteException - in the event of remote object failure.
public String getSubject()
throws RemoteException
getSubject in interface ChannelInterface
public void setSubject(String subject)
throws RemoteException
This change is not persisted to the enterprise directory until updateStore is called.
setSubject in interface ChannelInterfacesubject - The subject.
public String getPresentationLanguage()
throws RemoteException
getPresentationLanguage in interface ChannelInterface
public void setPresentationLanguage(String language)
throws RemoteException
This change is not persisted until update is called.
setPresentationLanguage in interface ChannelInterfacelanguage - The new presentation language.RemoteException - in the event of a network error.
public void setDeliveryTransport(String transport)
throws RemoteException
transport - The new delivery transport.RemoteException - in the event of a network error.
public String getFrequency()
throws RemoteException
getFrequency in interface ChannelInterfaceRemoteException - in the event of network error.
public void setFrequency(String frequency)
throws RemoteException
setFrequency in interface ChannelInterfacefrequency - The new frequency string.RemoteException - in the event of network error.
public ContentDestination getContentDestination()
throws RemoteException
getContentDestination in interface ChannelInterfaceRemoteException - in the event of remote object failure.
public void setContentDestination(DirectoryInterface basePathDirectory,
String relativePath)
throws RemoteException
setContentDestination in interface ChannelInterfacebasePathDirectory - A Directory representing the content destination.relativePath - A String with the relative path.RemoteException - in the event of remote object failure.
public List subscriberList(int subscriberType)
throws RemoteException
subscriberList in interface ChannelInterfacesubscriberType - 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.RemoteException - in the event of network error.
public List subscriberList(int subscriberType,
Comparator compare)
throws RemoteException
subscriberList in interface ChannelInterfacesubscriberType - 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.RemoteException - in the event of network error.
public void addContentSubscriber(ContentSubscriberInterface subscriber)
throws RemoteException
addContentSubscriber in interface ChannelInterfacesubscriber - The content subscriber to add.
public void addEventSubscriber(EventSubscriberInterface subscriber)
throws RemoteException
addEventSubscriber in interface ChannelInterfacesubscriber - The event subscriber to add.RemoteException - in the event of network error.
public void removeContentSubscriber(ContentSubscriberInterface subscriber)
throws RemoteException
removeContentSubscriber in interface ChannelInterfacesubscriber - The content subscriber to remove.
public void removeEventSubscriber(EventSubscriberInterface subscriber)
throws RemoteException
removeEventSubscriber in interface ChannelInterfacesubscriber - The event subscriber to remove.RemoteException - in the event of network error.
public boolean isGroupContentSubscription(ContentSubscriberInterface subscriber)
throws RemoteException
isGroupContentSubscription in interface ChannelInterfacesubscriber - The subscriber
public boolean isGroupEventSubscription(EventSubscriberInterface subscriber)
throws RemoteException
isGroupEventSubscription in interface ChannelInterfacesubscriber - The event subscriber subscriberRemoteException - in the event of network error.
public boolean isContentSubscription(ContentSubscriberInterface subscriber)
throws RemoteException
isContentSubscription in interface ChannelInterfacesubscriber - The subscriberRemoteException - in the event of network error.
public boolean isEventSubscription(EventSubscriberInterface subscriber)
throws RemoteException
isEventSubscription in interface ChannelInterfacesubscriber - The subscriberRemoteException - in the event of network error.
public List subscriberNameList(int subscriberType)
throws RemoteException,
ServiceException
subscriberNameList in interface ChannelInterfacesubscriberType - 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.RemoteException - in the event of network error.
public List subscriberGroupsList(int subscriberType)
throws RemoteException
subscriberGroupsList in interface ChannelInterfacesubscriberType - 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.RemoteException - in the event of network error.
public void addSubscriberGroup(GroupInterface group)
throws RemoteException,
ServiceException
addSubscriberGroup in interface ChannelInterfacegroup - The new subscriber group.RemoteException - in the event of a remote object failure.ServiceException - if a repository error occurs.
public void removeSubscriberGroup(GroupInterface group)
throws RemoteException,
ServiceException
removeSubscriberGroup in interface ChannelInterfacegroup - The group to unsubscribe.ServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public String getDavUrlType()
throws RemoteException
getDavUrlType in interface ChannelInterface
public void setDavUrlType(String type)
throws RemoteException
setDavUrlType in interface ChannelInterfacetype - The type of url, parent or collection.
public List packageList()
throws RemoteException
packageList in interface ChannelInterfacecom.sas.services.publish.metadata.PackageInterface
objects that were published to this channel.RemoteException - in the event of remote object failure.
public List packageList(Comparator compare)
throws RemoteException
packageList in interface ChannelInterfacecompare - A Comparator for sorting, or null for no sorting.com.sas.services.publish.metadata.PackageInterface
objects published to this channel.RemoteException - in the event of remote object failure.
public int getDefaultTransport()
throws RemoteException
public int getDeliveryTransport()
throws RemoteException
ChannelInterfacegetDeliveryTransport in interface ChannelInterfacecom.sas.services.information.metadata.ChannelInterfaceChannelInterface.UNSUPPORTED_TRANSPORT, ChannelInterface.NO_TRANSPORT,
ChannelInterface.ARCHIVE_TRANSPORT or ChannelInterface.WEBDAV_TRANSPORT.RemoteException - in the event of network error.
public void setDeliveryTransport(int transport)
throws RemoteException,
IllegalArgumentException
setDeliveryTransport in interface ChannelInterfacetransport - The new delivery transport.RemoteException - in the event of a network error.IllegalArgumentException - if an invalid transport
is specified.public String toString()
toString in class RemoteObject
public void refresh()
throws ServiceException,
RemoteException
refresh in interface MetadataInterfacerefresh in class MetadataServiceException - if a repository error occurs.RemoteException - in the event of remote object failure.
public void setRepository(RepositoryInterface repos)
throws IllegalStateException,
RemoteException
MetadataInterfacesetRepository in interface MetadataInterfacesetRepository in class Metadatacom.sas.services.information.metadata.MetadataInterfacerepository - A handle to the repository for this object.IllegalStateException - If the repository has already been set.RemoteException - if an error occurs
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||