|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 java.lang.String |
TYPE_DASHBOARD
|
static java.lang.String |
TYPE_REPORT
|
static java.lang.String |
TYPE_VIEW
|
Constructor Summary | |
---|---|
SubscribeContent(java.lang.String subContId,
java.lang.String actionReference,
java.lang.String type)
|
|
SubscribeContent(java.lang.String subContId,
java.lang.String actionReference,
java.lang.String type,
java.util.Map<java.lang.String,java.lang.Object> parameters)
|
Method Summary | |
---|---|
void |
addSchedule(ISchedule schedule)
|
void |
clearsSchedules()
removes all schedules. |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getActionReference()
Gets the reference to the action sequence used by subscriptions to this content |
java.lang.String |
getId()
Gets the id of this content |
java.util.Map<java.lang.String,java.lang.Object> |
getParameters()
Gets the parameters for the content |
int |
getRevision()
|
java.util.List<ISchedule> |
getSchedules()
|
java.lang.String |
getType()
|
int |
hashCode()
|
boolean |
hasSchedule(ISchedule schedule)
|
boolean |
removeSchedule(ISchedule schedule)
|
void |
setActionReference(java.lang.String actionReference)
Sets a reference to the action sequence that will be executed as part of a subscription |
void |
setParameters(java.util.Map<java.lang.String,java.lang.Object> parameters)
Sets the parameters that will be provided to the action sequence when it is executed as part of a subscription |
void |
setSchedules(java.util.List<ISchedule> schedules)
|
void |
setType(java.lang.String type)
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_REPORT
public static final java.lang.String TYPE_VIEW
public static final java.lang.String TYPE_DASHBOARD
Constructor Detail |
---|
public SubscribeContent(java.lang.String subContId, java.lang.String actionReference, java.lang.String type)
public SubscribeContent(java.lang.String subContId, java.lang.String actionReference, java.lang.String type, java.util.Map<java.lang.String,java.lang.Object> parameters)
Method Detail |
---|
public boolean equals(java.lang.Object other)
equals
in interface ISubscribeContent
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface ISubscribeContent
hashCode
in class java.lang.Object
public int getRevision()
getRevision
in interface ISubscribeContent
public java.lang.String getActionReference()
getActionReference
in interface ISubscribeContent
public void addSchedule(ISchedule schedule)
addSchedule
in interface ISubscribeContent
public java.util.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(java.util.Map<java.lang.String,java.lang.Object> parameters)
setParameters
in interface ISubscribeContent
parameters
- The parameters to pass to the action sequencepublic java.util.Map<java.lang.String,java.lang.Object> getParameters()
getParameters
in interface ISubscribeContent
public java.lang.String getId()
getId
in interface ISubscribeContent
public java.lang.String getType()
getType
in interface ISubscribeContent
public void setActionReference(java.lang.String actionReference)
setActionReference
in interface ISubscribeContent
actionReference
- public void setSchedules(java.util.List<ISchedule> schedules)
setSchedules
in interface ISubscribeContent
public void setType(java.lang.String type)
setType
in interface ISubscribeContent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |