public interface ISchedPubService extends IInitializable
Modifier and Type | Method and Description |
---|---|
void |
addPublishTarget(int schedID,
IThingID topicID,
String aliasName)
Add a target to publish to.
|
int |
addScheduledPublish(IThingID thingID,
IThingID userID,
long startDate,
long endDate)
Add a new scheduled publishing event.
|
IScheduledPublish |
getScheduledPublishById(int schedId)
Gets s Scheduled Publish object by given id
|
IListView<IPublishTarget> |
listPublishTargets(int schedID)
get a list of publish targets for this scheduled publish
|
IListView<IScheduledPublish> |
listScheduledPublishes(IThingID userID)
Get a list of scheduled publishes created by the passed in user.
|
void |
removePublishTarget(int schedID,
IThingID topicID)
Remove a publish target for a schedpub event.
|
void |
removeScheduledPublish(int schedID)
Remove an existing scheduled publishing event.
|
init, shutdown
int addScheduledPublish(IThingID thingID, IThingID userID, long startDate, long endDate) throws MetaException
thingID
- The ID of the thing you want to publishuserID
- The ID of the user who is creating this event.startDate
- Date to publish the thing, in ms since the epoch.endDate
- Date to unpublish the thing, in ms since the epoch.MetaException
void removeScheduledPublish(int schedID) throws MetaException
schedID
- the ID of the event to remove.MetaException
void addPublishTarget(int schedID, IThingID topicID, String aliasName) throws MetaException
schedID
- the ID of the schedule (returned by addScheduledPublish)topicID
- The ID of the topic to publish toaliasName
- Optional different name for the thing when it's published. May be null.MetaException
void removePublishTarget(int schedID, IThingID topicID) throws MetaException
schedID
- the ID of the schedule (returned by addScheduledPublish)topicID
- The ID of the topic to removeMetaException
IListView<IScheduledPublish> listScheduledPublishes(IThingID userID) throws MetaException
MetaException
IListView<IPublishTarget> listPublishTargets(int schedID) throws MetaException
MetaException
IScheduledPublish getScheduledPublishById(int schedId) throws MetaException
MetaException