Class BedeworkSubscription
java.lang.Object
org.bedework.notifier.db.SubscriptionWrapper
org.bedework.notifier.cnctrs.bedework.BedeworkSubscription
- All Implemented Interfaces:
Comparable<org.bedework.notifier.db.Subscription>,org.bedework.notifier.db.Subscription
public class BedeworkSubscription
extends org.bedework.notifier.db.SubscriptionWrapper
Stores information about one end of a subscription for connector.
- Author:
- Mike Douglass
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidsetNoteHrefs(List<String> val) voidsetSynchToken(String val) voidsetUserToken(String val) voidtoStringSegment(org.bedework.util.misc.ToString ts) Methods inherited from class org.bedework.notifier.db.SubscriptionWrapper
compareTo, getConnectorName, getDeleted, getErrorCt, getLastRefresh, getLastRefreshStatus, getMissingTarget, getPrincipalHref, getSubi, getSubscription, getSubscriptionId, getTransientSub, getUri, hashCode, release, reserve, reserved, setConnectorName, setDeleted, setErrorCt, setLastRefresh, setLastRefreshStatus, setMissingTarget, setPrincipalHref, setSubscriptionId, setTransientSub, setUri, toString
-
Constructor Details
-
BedeworkSubscription
public BedeworkSubscription() throws org.bedework.notifier.exception.NoteException- Throws:
org.bedework.notifier.exception.NoteException
-
BedeworkSubscription
public BedeworkSubscription(org.bedework.notifier.db.Subscription sub) throws org.bedework.notifier.exception.NoteException - Throws:
org.bedework.notifier.exception.NoteException
-
-
Method Details
-
init
- Specified by:
initin interfaceorg.bedework.notifier.db.Subscription- Overrides:
initin classorg.bedework.notifier.db.SubscriptionWrapper- Throws:
org.bedework.notifier.exception.NoteException
-
setUserToken
- Parameters:
val- token for authentication
-
getUserToken
- Returns:
- token for authentication
-
setEmails
- Parameters:
val- list of email addresses to which we send notifications
-
getEmails
- Returns:
- list of email addresses to which we send notifications
-
addEmail
-
setSynchToken
- Parameters:
val- token for synchronization
-
getSynchToken
- Returns:
- token for synchronization
-
setNoteHrefs
- Parameters:
val- list of notification hrefs
-
getNoteHrefs
- Returns:
- list of notification hrefs
-
toStringSegment
public void toStringSegment(org.bedework.util.misc.ToString ts) - Specified by:
toStringSegmentin interfaceorg.bedework.notifier.db.Subscription- Overrides:
toStringSegmentin classorg.bedework.notifier.db.SubscriptionWrapper
-