com.arsdigita.forum
Class DailySubscription

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.notification.BaseSubscription
                  extended bycom.arsdigita.forum.Subscription
                      extended bycom.arsdigita.forum.ForumSubscription
                          extended bycom.arsdigita.forum.DailySubscription

public class DailySubscription
extends ForumSubscription

Extends Subscription to implement digest (periodic) notifications on a forum.

Version:
$Revision: #7 $ $Author: dan $ $DateTime: 2003/09/15 13:58:12 $
Author:
Kevin Scaldeferri (kevin@arsdigita.com)

Field Summary
static String BASE_DATA_OBJECT_TYPE
           
 
Fields inherited from class com.arsdigita.forum.ForumSubscription
FORUM, IS_MODERATION_ALERT
 
Fields inherited from class com.arsdigita.forum.Subscription
versionId
 
Fields inherited from class com.arsdigita.notification.BaseSubscription
ALERT_BLURB, REPLY_BLURB, SEPARATOR
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Constructor Summary
protected DailySubscription(BigDecimal id)
           
protected DailySubscription(com.arsdigita.persistence.DataObject data)
           
  DailySubscription(Forum forum, com.arsdigita.kernel.Party sender)
           
protected DailySubscription(com.arsdigita.persistence.OID oid)
           
  DailySubscription(String typeName, Forum forum, com.arsdigita.kernel.Party sender)
           
 
Method Summary
protected  String getBaseDataObjectType()
           
static ForumSubscription getFromForum(Forum forum)
          gets the ForumSubscription associated with the provided Forum
 void sendNotification(Post post)
          Queues the post for once-daily notification of new posts.
 
Methods inherited from class com.arsdigita.forum.ForumSubscription
afterSave, doWriteCheck, getForum, getSignature, setIsModerationAlert, setIsModerationAlert
 
Methods inherited from class com.arsdigita.forum.Subscription
getHeader, getReturnURLMessage
 
Methods inherited from class com.arsdigita.notification.BaseSubscription
getGroup, isSubscribed, sendNotification, setGroup, setGroupName, setupSubscriptionGroup, subscribe, unsubscribe
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, beforeSave, checkPrivilege, doCreateCheck, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, initialize, isContainerModified, setID, setID
 
Methods inherited from class com.arsdigita.domain.ObservableDomainObject
addObserver, getObservers
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values
Constructor Detail

DailySubscription

public DailySubscription(Forum forum,
                         com.arsdigita.kernel.Party sender)
Parameters:
forum - the Forum that is subscribed to
sender - the Party which will appear in the From: header

DailySubscription

public DailySubscription(String typeName,
                         Forum forum,
                         com.arsdigita.kernel.Party sender)
Parameters:
forum - the Forum that is subscribed to
sender - the Party which will appear in the From: header

DailySubscription

protected DailySubscription(com.arsdigita.persistence.OID oid)
                     throws com.arsdigita.domain.DataObjectNotFoundException

DailySubscription

protected DailySubscription(BigDecimal id)
                     throws com.arsdigita.domain.DataObjectNotFoundException

DailySubscription

protected DailySubscription(com.arsdigita.persistence.DataObject data)
Method Detail

getBaseDataObjectType

protected String getBaseDataObjectType()
Overrides:
getBaseDataObjectType in class ForumSubscription

sendNotification

public void sendNotification(Post post)
Queues the post for once-daily notification of new posts.


getFromForum

public static ForumSubscription getFromForum(Forum forum)
Description copied from class: ForumSubscription
gets the ForumSubscription associated with the provided Forum

Returns:
the DailySubscription associated with the provided Forum


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2348 UTC