|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.repository.subscription.SubscribeContent
public class SubscribeContent
This class defines an action sequence (e.g. a report) that users can create subscriptions to. This class contains a reference to the action sequence that will be executed when the subscription is viewed online or scheduled. Parameters to the action sequence can be defined here. These parameters will be applied to every subscription to the action sequence. These parameter values can be overriden by the individual subscriptions if the user interface allows.
Field Summary | |
---|---|
static String |
TYPE_DASHBOARD
|
static String |
TYPE_REPORT
|
static String |
TYPE_VIEW
|
Constructor Summary | |
---|---|
SubscribeContent(String subContId,
String actionReference,
String type)
|
|
SubscribeContent(String subContId,
String actionReference,
String type,
Map<String,Object> parameters)
|
Method Summary | |
---|---|
void |
addSchedule(ISchedule schedule)
|
void |
clearsSchedules()
removes all schedules. |
boolean |
equals(Object other)
|
String |
getActionReference()
Gets the reference to the action sequence used by subscriptions to this content |
String |
getId()
Gets the id of this content |
Map<String,Object> |
getParameters()
Gets the parameters for the content |
int |
getRevision()
|
List<ISchedule> |
getSchedules()
|
String |
getType()
|
int |
hashCode()
|
boolean |
hasSchedule(ISchedule schedule)
|
boolean |
removeSchedule(ISchedule schedule)
|
void |
setActionReference(String actionReference)
Sets a reference to the action sequence that will be executed as part of a subscription |
void |
setParameters(Map<String,Object> parameters)
Sets the parameters that will be provided to the action sequence when it is executed as part of a subscription |
void |
setSchedules(List<ISchedule> schedules)
|
void |
setType(String type)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TYPE_REPORT
public static final String TYPE_VIEW
public static final String TYPE_DASHBOARD
Constructor Detail |
---|
public SubscribeContent(String subContId, String actionReference, String type)
public SubscribeContent(String subContId, String actionReference, String type, Map<String,Object> parameters)
Method Detail |
---|
public boolean equals(Object other)
equals
in interface ISubscribeContent
equals
in class Object
public int hashCode()
hashCode
in interface ISubscribeContent
hashCode
in class Object
public int getRevision()
getRevision
in interface ISubscribeContent
public String getActionReference()
getActionReference
in interface ISubscribeContent
public void addSchedule(ISchedule schedule)
addSchedule
in interface ISubscribeContent
public List<ISchedule> getSchedules()
getSchedules
in interface ISubscribeContent
public boolean hasSchedule(ISchedule schedule)
hasSchedule
in interface ISubscribeContent
public boolean removeSchedule(ISchedule schedule)
removeSchedule
in interface ISubscribeContent
public void clearsSchedules()
ISubscribeContent
clearsSchedules
in interface ISubscribeContent
public void setParameters(Map<String,Object> parameters)
setParameters
in interface ISubscribeContent
parameters
- The parameters to pass to the action sequencepublic Map<String,Object> getParameters()
getParameters
in interface ISubscribeContent
public String getId()
getId
in interface ISubscribeContent
public String getType()
getType
in interface ISubscribeContent
public void setActionReference(String actionReference)
setActionReference
in interface ISubscribeContent
actionReference
- public void setSchedules(List<ISchedule> schedules)
setSchedules
in interface ISubscribeContent
public void setType(String type)
setType
in interface ISubscribeContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |