|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISubscriptionRepository
Methods inherited from interface org.pentaho.platform.api.engine.IPentahoInitializer |
---|
init |
Method Detail |
---|
boolean addSubscription(ISubscription subscription)
void addContent(ISubscribeContent content)
void deleteContent(ISubscribeContent content)
ISubscribeContent editContent(String id, String actionRef, String contentType)
ISubscribeContent addContent(String actionRef, String contentType)
void setContent(String[] actionRefs) throws Exception
Exception
List<ISubscribeContent> addContent(String[] actionRefs) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
List<ISubscribeContent> getAllContent()
List<ISubscription> getAllSubscriptions()
List<ISubscription> getUserSubscriptions(String user)
boolean deleteContentForSchedule(String contentId, String schedId) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
boolean deleteContentForSchedule(ISubscribeContent content, ISchedule sched) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
boolean addContentForSchedule(String contentId, String schedId) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
void setContentForSchedule(String[] contentId, String schedId) throws Exception
Exception
void addContentForSchedule(String[] contentIds, String schedId) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
boolean addContentForSchedule(ISubscribeContent content, ISchedule sched) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
void setSchedulesForContent(String[] scheduleId, String contentId) throws Exception
Exception
Document getUserSubscriptions(String user, String contentId, IPentahoSession session)
ISchedule addCronSchedule(String title, String scheduleRef, String description, String cronString, String group, Date startDate, Date endDate) throws SubscriptionRepositoryCheckedException
title
- Title of the schedule. Title is typically displayed in the subscription UI
to help the user making the subscription to identify which schedule they want to
execute the action sequence.scheduleRef
- The name of the schedule. (In Quartz implementation, this name will
be used as the trigger name).description
- a description of the schedulecronString
- a Cron string identifying when the schedule will executegroup
- the group name. (In Quartz implementations, this will be used as the trigger's
group name).startDate
- date/time the schedule should begin executing it's tasks.endDate
- date/time that the schedule should stop executing its tasks. This parameter
may be null, in which case the schedule will never stop.
SubscriptionRepositoryCheckedException
- if the subscription repository
fails to create the schedule.ISchedule addRepeatSchedule(String title, String scheduleRef, String description, Integer repeatCount, Integer repeatInterval, String group, Date startDate, Date endDate) throws SubscriptionRepositoryCheckedException
title
- Title of the schedule. Title is typically displayed in the subscription UI
to help the user making the subscription to identify which schedule they want to
execute the action sequence.scheduleRef
- The name of the schedule. (In Quartz implementation, this name will
be used as the trigger name).description
- a description of the schedulerepeatCount
- the number of times the schedule should executerepeatInterval
- the period of time that passes between schedule executionsgroup
- the group name. (In Quartz implementations, this will be used as the trigger's
group name).startDate
- date/time the schedule should begin executing it's tasks.endDate
- date/time that the schedule should stop executing its tasks. This parameter
may be null, in which case the schedule will never stop.
SubscriptionRepositoryCheckedException
- if the subscription repository
fails to create the schedule.void addSchedule(ISchedule schedule) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
ISchedule editCronSchedule(String id, String title, String scheduleRef, String description, String cronString, String group, Date startDate, Date endDate) throws SubscriptionRepositoryCheckedException
title
- Title of the schedule. Title is typically displayed in the subscription UI
to help the user making the subscription to identify which schedule they want to
execute the action sequence.scheduleRef
- The name of the schedule. (In Quartz implementation, this name will
be used as the trigger name).description
- a description of the schedulecronString
- a Cron string identifying when the schedule will executegroup
- the group name. (In Quartz implementations, this will be used as the trigger's
group name).startDate
- date/time the schedule should begin executing it's tasks.endDate
- date/time that the schedule should stop executing its tasks. This parameter
may be null, in which case the schedule will never stop.
SubscriptionRepositoryCheckedException
- if the subscription repository
fails to create the schedule.ISchedule editRepeatSchedule(String id, String title, String scheduleRef, String description, Integer repeatCount, Integer repeatInterval, String group, Date startDate, Date endDate) throws SubscriptionRepositoryCheckedException
title
- Title of the schedule. Title is typically displayed in the subscription UI
to help the user making the subscription to identify which schedule they want to
execute the action sequence.scheduleRef
- The name of the schedule. (In Quartz implementation, this name will
be used as the trigger name).description
- a description of the schedulerepeatCount
- the number of times the schedule should executerepeatInterval
- the period of time that passes between schedule executionsgroup
- the group name. (In Quartz implementations, this will be used as the trigger's
group name).startDate
- date/time the schedule should begin executing it's tasks.endDate
- date/time that the schedule should stop executing its tasks. This parameter
may be null, in which case the schedule will never stop.
SubscriptionRepositoryCheckedException
- if the subscription repository
fails to create the schedule.void addSubscriptionToDocument(ISubscription subscription, Element subscriptionsNode, String editId, IPentahoSession session)
void addSubscriptionsToDocument(String user, String contentId, Element subscriptionsNode, String editId, IPentahoSession session)
void addSchedulesToDocument(String user, String contentId, Element schedulesNode, String editId)
ISubscribeContent getContentByActionReference(String actionReference)
ISubscribeContent getContentById(String contentId)
List<ISubscribeContent> getContentBySchedule(ISchedule schedule)
ISubscription getSubscription(String subscriptionId, IPentahoSession session)
boolean deleteSubscription(String subscriptionId, IPentahoSession session)
boolean deleteSubscription(String subscriptionId) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
boolean deleteSubscriptionForSchedule(ISubscription subscription, ISchedule sched) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
IContentItem getContentItem(String subscriptionName, IPentahoSession session)
List<ISchedule> getSchedules()
ISchedule getSchedule(String id)
List<ISubscription> getSubscriptionsForSchedule(String scheduleId)
List<ISubscription> getSubscriptionsForSchedule(ISchedule schedule)
List getSubscriptionArchives(String subscriptionName, IPentahoSession session)
IPentahoResultSet getSubscriptions(String scheduleId, IPentahoSession session, String solution, String path, String action, String[] parameterNames)
boolean deleteSubscribeContentById(String subContentId) throws SubscriptionSchedulerException
SubscriptionSchedulerException
boolean deleteSubscribeContent(ISubscribeContent subContent) throws SubscriptionSchedulerException
SubscriptionSchedulerException
boolean deleteScheduleById(String scheduleId) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
boolean deleteSchedule(ISchedule sched) throws SubscriptionRepositoryCheckedException
SubscriptionRepositoryCheckedException
ISchedule getScheduleByScheduleReference(String scheduleReference)
List<ISchedule> getSchedulesByTitle(String title)
void deleteUserSubscriptions(String user)
boolean checkUniqueSubscriptionName(String name, String user, String contentId)
Name
- the schedule name to check for uniquenessuser
- the user that owns the schedulescontentId
- The action sequence separated by slashes
Element importSchedules(Document doc)
Element importContent(Document doc)
List<ISchedule> syncSchedules() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |