org.pentaho.platform.repository.subscription
Class Subscription

java.lang.Object
  extended by org.pentaho.platform.repository.subscription.Subscription
All Implemented Interfaces:
ISubscription

public class Subscription
extends Object
implements ISubscription


Field Summary
static int COLUMN_ACTION
           
static int COLUMN_CONTENT_ID
           
static int COLUMN_DESTINATION
           
static int COLUMN_ID
           
static int COLUMN_PATH
           
static int COLUMN_SOLUTION
           
static int COLUMN_TITLE
           
static int COLUMN_USER
           
static int TYPE_GROUP
           
static int TYPE_PERSONAL
           
static int TYPE_ROLE
           
 
Constructor Summary
Subscription(String subscriptionId, String user, String title, ISubscribeContent content, String destination, int type)
           
Subscription(String subscriptionId, String user, String title, ISubscribeContent content, String destination, int type, Map<String,Object> parameters)
           
 
Method Summary
 void addSchedule(ISchedule sched)
           
 org.dom4j.Document asDocument()
           
 String asXml()
           
 boolean deleteSchedule(ISchedule sched)
           
 boolean equals(Object other)
           
 ISubscribeContent getContent()
           
 String getDestination()
           
 String getId()
           
static org.pentaho.commons.connection.memory.MemoryMetaData getMetadata(String[] parameterNames)
           
 Map<String,Object> getParameters()
           
 int getRevision()
           
 List<ISchedule> getSchedules()
           
 String getTitle()
           
 int getType()
           
 String getUser()
           
 int hashCode()
           
 void setDestination(String destination)
           
 void setTitle(String title)
           
 Object[] toResultRow(String[] parameterNames)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_PERSONAL

public static final int TYPE_PERSONAL
See Also:
Constant Field Values

TYPE_ROLE

public static final int TYPE_ROLE
See Also:
Constant Field Values

TYPE_GROUP

public static final int TYPE_GROUP
See Also:
Constant Field Values

COLUMN_USER

public static final int COLUMN_USER
See Also:
Constant Field Values

COLUMN_ID

public static final int COLUMN_ID
See Also:
Constant Field Values

COLUMN_DESTINATION

public static final int COLUMN_DESTINATION
See Also:
Constant Field Values

COLUMN_CONTENT_ID

public static final int COLUMN_CONTENT_ID
See Also:
Constant Field Values

COLUMN_TITLE

public static final int COLUMN_TITLE
See Also:
Constant Field Values

COLUMN_SOLUTION

public static final int COLUMN_SOLUTION
See Also:
Constant Field Values

COLUMN_PATH

public static final int COLUMN_PATH
See Also:
Constant Field Values

COLUMN_ACTION

public static final int COLUMN_ACTION
See Also:
Constant Field Values
Constructor Detail

Subscription

public Subscription(String subscriptionId,
                    String user,
                    String title,
                    ISubscribeContent content,
                    String destination,
                    int type)

Subscription

public Subscription(String subscriptionId,
                    String user,
                    String title,
                    ISubscribeContent content,
                    String destination,
                    int type,
                    Map<String,Object> parameters)
Method Detail

getMetadata

public static org.pentaho.commons.connection.memory.MemoryMetaData getMetadata(String[] parameterNames)

equals

public boolean equals(Object other)
Specified by:
equals in interface ISubscription
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface ISubscription
Overrides:
hashCode in class Object

getRevision

public int getRevision()
Specified by:
getRevision in interface ISubscription
Returns:
Returns the revision.

addSchedule

public void addSchedule(ISchedule sched)
Specified by:
addSchedule in interface ISubscription

deleteSchedule

public boolean deleteSchedule(ISchedule sched)
Specified by:
deleteSchedule in interface ISubscription

getSchedules

public List<ISchedule> getSchedules()
Specified by:
getSchedules in interface ISubscription

getUser

public String getUser()
Specified by:
getUser in interface ISubscription

getTitle

public String getTitle()
Specified by:
getTitle in interface ISubscription

getDestination

public String getDestination()
Specified by:
getDestination in interface ISubscription

getContent

public ISubscribeContent getContent()
Specified by:
getContent in interface ISubscription

getParameters

public Map<String,Object> getParameters()
Specified by:
getParameters in interface ISubscription

getId

public String getId()
Specified by:
getId in interface ISubscription

getType

public int getType()
Specified by:
getType in interface ISubscription

asDocument

public org.dom4j.Document asDocument()
Specified by:
asDocument in interface ISubscription

asXml

public String asXml()
Specified by:
asXml in interface ISubscription

setDestination

public void setDestination(String destination)
Specified by:
setDestination in interface ISubscription

setTitle

public void setTitle(String title)
Specified by:
setTitle in interface ISubscription

toResultRow

public Object[] toResultRow(String[] parameterNames)
Specified by:
toResultRow in interface ISubscription