public class JCRSubscription extends Object implements Subscription, Persistent, JCRImapConstants
Subscription.| Modifier and Type | Field and Description |
|---|---|
static String |
MAILBOXES_PROPERTY |
static String |
USERNAME_PROPERTY |
NODE_DELIMITER| Constructor and Description |
|---|
JCRSubscription(javax.jcr.Node node,
String mailbox,
org.slf4j.Logger log) |
JCRSubscription(String username,
String mailbox,
org.slf4j.Logger log) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getMailbox()
Gets the name of the mailbox to which
the user is subscribed.
|
javax.jcr.Node |
getNode()
Return underlying Node
|
String |
getUser()
Gets the name of the subscribed user.
|
int |
hashCode() |
boolean |
isPersistent()
Return if the object is persistent
|
void |
merge(javax.jcr.Node node)
Merge the object with the node
|
String |
toString()
Renders output suitable for debugging.
|
public static final String USERNAME_PROPERTY
public static final String MAILBOXES_PROPERTY
public JCRSubscription(javax.jcr.Node node,
String mailbox,
org.slf4j.Logger log)
public String getMailbox()
SubscriptiongetMailbox in interface Subscriptionpublic String getUser()
SubscriptiongetUser in interface Subscriptionpublic javax.jcr.Node getNode()
PersistentgetNode in interface Persistentpublic boolean isPersistent()
PersistentisPersistent in interface Persistenttrue if object is persistent else falsepublic void merge(javax.jcr.Node node)
throws javax.jcr.RepositoryException
Persistentmerge in interface Persistentjavax.jcr.RepositoryExceptionCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.