public interface ISchedpubMechanics
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)
Get a lScheduled 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.
|
IListView<IScheduledPublish> |
listScheduledPublishesByUserForThing(IThingID userID,
IThingID thingID)
Get a list of schedule publisheds create by the passed user for the passed thing
|
void |
removePublishTarget(int schedID,
IThingID topicID)
Remove a publish target for a schedpub event.
|
void |
removeScheduledPublish(int schedID)
Remove an existing scheduled publishing event.
|
int addScheduledPublish(IThingID thingID, IThingID userID, long startDate, long endDate) throws PortalException
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.PortalException
void removeScheduledPublish(int schedID) throws PortalException
schedID
- the ID of the event to remove.PortalException
void addPublishTarget(int schedID, IThingID topicID, String aliasName) throws PortalException
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.PortalException
void removePublishTarget(int schedID, IThingID topicID) throws PortalException
schedID
- the ID of the schedule (returned by addScheduledPublish)topicID
- The ID of the topic to removePortalException
IScheduledPublish getScheduledPublishById(int schedID) throws PortalException
schedID
- PortalException
IListView<IScheduledPublish> listScheduledPublishes(IThingID userID) throws PortalException
userID
- PortalException
IListView<IPublishTarget> listPublishTargets(int schedID) throws PortalException
schedID
- PortalException
IListView<IScheduledPublish> listScheduledPublishesByUserForThing(IThingID userID, IThingID thingID) throws PortalException
userID
- thingID
- PortalException