org.figure8.join.businessobjects.reporting
Class Subscription

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.reporting.Subscription
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class Subscription
extends EntityObject

Represents a user's subdscription to a mailing list.

Version:
$Revision: 1.3 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
Subscription()
          Creates a new instance of Subscription
Subscription(java.lang.String userId, MailingList mailingList)
          Creates a new insatnce of Subscription with mandatory attributes
 
Method Summary
 java.util.Date getCreationDate()
           
 MailingList getMailingList()
           
 java.lang.String getUserId()
           
 void setCreationDate(java.util.Date creationDate)
           
 void setMailingList(MailingList mailingList)
           
 void setUserId(java.lang.String userId)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Subscription

public Subscription()
Creates a new instance of Subscription


Subscription

public Subscription(java.lang.String userId,
                    MailingList mailingList)
Creates a new insatnce of Subscription with mandatory attributes

Parameters:
userId - Identifier of owner that want to subscribe
mailingList - Mainling list this user wants to subscribe to
Method Detail

getUserId

public java.lang.String getUserId()
Returns:
The identifier of user owning this subscription

setUserId

public void setUserId(java.lang.String userId)
Parameters:
userId - The identifier of user owning this subscription

getCreationDate

public java.util.Date getCreationDate()
Returns:
The date this subscription was done

setCreationDate

public void setCreationDate(java.util.Date creationDate)
Parameters:
creationDate - The date this subscription was done

getMailingList

public MailingList getMailingList()
Returns:
The mailing list that is subscribed to

setMailingList

public void setMailingList(MailingList mailingList)
Parameters:
mailingList - The mailing list that is subscribed to


Copyright © 2005-2008 Join. All Rights Reserved.