*** This interface provides Binary Compatibility only, not Source Compatibility ***
Interface SubscriberInterface
- All Superinterfaces:
MetadataInterface,PublicObjectInterface,Remote
- All Known Subinterfaces:
ContentSubscriberInterface,EventSubscriberInterface
@SASScope("ALL")
@BinaryCompatibilityOnly
public interface SubscriberInterface
extends MetadataInterface
Subscriber interface.
- Since:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intType: Content subscriber.static final intType: Event subscriber.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 TypeMethodDescriptionGet the content destination for this subscriberStringGets the preferred delivery transport for this subscriber.Gets the queue to deliver to for this subscriber.getMessageQueue(boolean goToServer) Gets the queue to deliver to for this subscriber.Returns the user this subscriber identity belongs to.StringGets the queue name to deliver to for this subscriber.ListGet a list of the channels subscribed to by this Subscriber identity.voidsetContentDestination(DirectoryInterface basePathDirectory, String relativePath) Set the content destination for this subscriber.voidsetDeliveryTransport(String deliveryTransport) Sets the delivery transport for this subscriber.voidsetMessageQueue(MessageQueueInterface messageQueue) Adds the queue to deliver to for this subscriber.voidsetPerson(PersonInterface person) Sets the user this subscriber identity belongs to.voidsetQueueName(String queueName) Sets the queue name this subscriber receives data on.validate(FolderInterface folder) Validate a publishing framework subscriber.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
-
SUBSCRIBER_CONTENT
static final int SUBSCRIBER_CONTENTType: Content subscriber.- See Also:
-
SUBSCRIBER_EVENT
static final int SUBSCRIBER_EVENTType: Event subscriber.- See Also:
-
-
Method Details
-
getPerson
Returns the user this subscriber identity belongs to.- Returns:
- The context of the user's entry
- Throws:
ServiceException- If a serice level error occurs.RemoteException- if a network anomaly is encountered.
-
setPerson
Sets the user this subscriber identity belongs to.- Parameters:
person- The person- Throws:
ServiceException- If a serice level error occurs.RemoteException- if a network anomaly is encountered.
-
getDeliveryTransport
Gets the preferred delivery transport for this subscriber.- Returns:
- The delivery transport.
- Throws:
ServiceException- If a serice level error occurs.RemoteException- if a network anomaly is encountered.
-
setDeliveryTransport
Sets the delivery transport for this subscriber.- Parameters:
deliveryTransport- The new transport.- Throws:
ServiceException- If a serice level error occurs.RemoteException- if a network anomaly is encountered.
-
getMessageQueue
Gets the queue to deliver to for this subscriber.- Returns:
- The message queue this subscriber recieves published information
on or
nullif there is no assigned queue.If the queue is
null, usegetQueueName()to determine if a queue was assigned using the 9.1.3 model. - Throws:
ServiceException- if unable to read the assigned queue.RemoteException- if a network anomaly is encountered.- Since:
- 9.2
- See Also:
-
getMessageQueue
Gets the queue to deliver to for this subscriber.- Parameters:
goToServer- Force a trip to the server for the most recent data.gotoServer- if true, force a trip to the server for the data. If false, take the default behavior (go to the server if the data has not been retrieved, but don't go to the server if the data is already in the cache).- Returns:
- The message queue this subscriber recieves published information
on or
nullif there is no assigned queue.If the queue is
null, usegetQueueName()to determine if a queue was assigned using the 9.1.3 model. - Throws:
ServiceException- If a repository error occurs.RemoteException- In the event of remote object failureServiceException- if unable to read the assigned queue.RemoteException- if a network anomaly is encountered.- Since:
- 9.2
- See Also:
-
setMessageQueue
Adds the queue to deliver to for this subscriber.- Parameters:
messageQueue- The message queue this subscriber recieves published information on ornullif there is no assigned queue.If the queue is
null, usegetQueueName()to determine if a queue was assigned using the 9.1.3 model.- Throws:
ServiceException- if unable to read the assigned queue.RemoteException- if a network anomaly is encountered.- Since:
- 9.2
- See Also:
-
getQueueName
Gets the queue name to deliver to for this subscriber.- Returns:
- The message queue this subscriber recieves published information on
- Throws:
ServiceException- If a serice level error occurs.RemoteException- if a network anomaly is encountered.
-
setQueueName
Sets the queue name this subscriber receives data on.- Parameters:
queueName- The new queue name to deliver to for this subscriber.- Throws:
ServiceException- If a serice level error occurs.RemoteException- if a network anomaly is encountered.
-
getContentDestination
Get the content destination for this subscriber- Returns:
- a Directory representing the preferred content destination for this subscriber.
- Throws:
ServiceException- If a serice level error occurs.RemoteException- in the event of remote object failure.
-
setContentDestination
void setContentDestination(DirectoryInterface basePathDirectory, String relativePath) throws ServiceException, RemoteException Set the content destination for this subscriber.- Parameters:
basePathDirectory- A Directory representing the content destination's base path.relativePath- Relative path.- Throws:
ServiceException- If a serice level error occurs.RemoteException- in the event of remote object failure.
-
getSubscribedChannels
Get a list of the channels subscribed to by this Subscriber identity.- Returns:
- a List of ChannelInterface objects.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.
-
validate
Validate a publishing framework subscriber. For a subscriber defined in a SAS Metadata Repository, a valid subscriber must satisfy the following constraint:- Name must be unique within the repository's folder hierarchy
- Parameters:
folder- Folder containing subscribers.- Returns:
- ServiceException if the subscriber is invalid.
- Throws:
RemoteException- in the event of remote object failure.
-