org.outerj.daisy.emailnotifier.commonimpl
Class SubscriptionImpl

java.lang.Object
  extended by org.outerj.daisy.emailnotifier.commonimpl.SubscriptionImpl
All Implemented Interfaces:
org.outerj.daisy.emailnotifier.Subscription

public class SubscriptionImpl
extends java.lang.Object
implements org.outerj.daisy.emailnotifier.Subscription


Constructor Summary
SubscriptionImpl(SubscriptionStrategy subscriptionStrategy, long userId)
           
 
Method Summary
 java.util.Locale getLocale()
           
 boolean getReceiveAclEvents()
           
 boolean getReceiveCollectionEvents()
           
 boolean getReceiveCommentEvents()
           
 boolean getReceiveDocumentEvents()
           
 boolean getReceiveSchemaEvents()
           
 boolean getReceiveUserEvents()
           
 org.outerj.daisy.emailnotifier.CollectionSubscriptionKey[] getSubscribedCollectionKeys()
           
 org.outerj.daisy.repository.VariantKey[] getSubscribedVariantKeys()
           
 long getUserId()
           
 org.outerx.daisy.x10.SubscriptionDocument getXml()
           
 void save()
           
 void setFromXml(org.outerx.daisy.x10.SubscriptionDocument.Subscription subscriptionXml)
           
 void setLocale(java.util.Locale locale)
           
 void setReceiveAclEvents(boolean value)
           
 void setReceiveCollectionEvents(boolean value)
           
 void setReceiveCommentEvents(boolean value)
           
 void setReceiveDocumentEvents(boolean value)
           
 void setReceiveSchemaEvents(boolean value)
           
 void setReceiveUserEvents(boolean value)
           
 void setSubscribedCollectionKeys(org.outerj.daisy.emailnotifier.CollectionSubscriptionKey[] keys)
           
 void setSubscribedVariantKeys(org.outerj.daisy.repository.VariantKey[] keys)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscriptionImpl

public SubscriptionImpl(SubscriptionStrategy subscriptionStrategy,
                        long userId)
Method Detail

getUserId

public long getUserId()
Specified by:
getUserId in interface org.outerj.daisy.emailnotifier.Subscription

setReceiveDocumentEvents

public void setReceiveDocumentEvents(boolean value)
Specified by:
setReceiveDocumentEvents in interface org.outerj.daisy.emailnotifier.Subscription

getReceiveDocumentEvents

public boolean getReceiveDocumentEvents()
Specified by:
getReceiveDocumentEvents in interface org.outerj.daisy.emailnotifier.Subscription

setReceiveSchemaEvents

public void setReceiveSchemaEvents(boolean value)
Specified by:
setReceiveSchemaEvents in interface org.outerj.daisy.emailnotifier.Subscription

getReceiveSchemaEvents

public boolean getReceiveSchemaEvents()
Specified by:
getReceiveSchemaEvents in interface org.outerj.daisy.emailnotifier.Subscription

setReceiveUserEvents

public void setReceiveUserEvents(boolean value)
Specified by:
setReceiveUserEvents in interface org.outerj.daisy.emailnotifier.Subscription

getReceiveUserEvents

public boolean getReceiveUserEvents()
Specified by:
getReceiveUserEvents in interface org.outerj.daisy.emailnotifier.Subscription

setReceiveCollectionEvents

public void setReceiveCollectionEvents(boolean value)
Specified by:
setReceiveCollectionEvents in interface org.outerj.daisy.emailnotifier.Subscription

getReceiveCollectionEvents

public boolean getReceiveCollectionEvents()
Specified by:
getReceiveCollectionEvents in interface org.outerj.daisy.emailnotifier.Subscription

setReceiveAclEvents

public void setReceiveAclEvents(boolean value)
Specified by:
setReceiveAclEvents in interface org.outerj.daisy.emailnotifier.Subscription

getReceiveAclEvents

public boolean getReceiveAclEvents()
Specified by:
getReceiveAclEvents in interface org.outerj.daisy.emailnotifier.Subscription

setReceiveCommentEvents

public void setReceiveCommentEvents(boolean value)
Specified by:
setReceiveCommentEvents in interface org.outerj.daisy.emailnotifier.Subscription

getReceiveCommentEvents

public boolean getReceiveCommentEvents()
Specified by:
getReceiveCommentEvents in interface org.outerj.daisy.emailnotifier.Subscription

getLocale

public java.util.Locale getLocale()
Specified by:
getLocale in interface org.outerj.daisy.emailnotifier.Subscription

setLocale

public void setLocale(java.util.Locale locale)
Specified by:
setLocale in interface org.outerj.daisy.emailnotifier.Subscription

getSubscribedVariantKeys

public org.outerj.daisy.repository.VariantKey[] getSubscribedVariantKeys()
Specified by:
getSubscribedVariantKeys in interface org.outerj.daisy.emailnotifier.Subscription

setSubscribedVariantKeys

public void setSubscribedVariantKeys(org.outerj.daisy.repository.VariantKey[] keys)
Specified by:
setSubscribedVariantKeys in interface org.outerj.daisy.emailnotifier.Subscription

getSubscribedCollectionKeys

public org.outerj.daisy.emailnotifier.CollectionSubscriptionKey[] getSubscribedCollectionKeys()
Specified by:
getSubscribedCollectionKeys in interface org.outerj.daisy.emailnotifier.Subscription

setSubscribedCollectionKeys

public void setSubscribedCollectionKeys(org.outerj.daisy.emailnotifier.CollectionSubscriptionKey[] keys)
Specified by:
setSubscribedCollectionKeys in interface org.outerj.daisy.emailnotifier.Subscription

save

public void save()
          throws org.outerj.daisy.repository.RepositoryException
Specified by:
save in interface org.outerj.daisy.emailnotifier.Subscription
Throws:
org.outerj.daisy.repository.RepositoryException

getXml

public org.outerx.daisy.x10.SubscriptionDocument getXml()
Specified by:
getXml in interface org.outerj.daisy.emailnotifier.Subscription

setFromXml

public void setFromXml(org.outerx.daisy.x10.SubscriptionDocument.Subscription subscriptionXml)
Specified by:
setFromXml in interface org.outerj.daisy.emailnotifier.Subscription


Copyright © -2012 . All Rights Reserved.