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()
Subscription
getMailbox
in interface Subscription
public String getUser()
Subscription
getUser
in interface Subscription
public javax.jcr.Node getNode()
Persistent
getNode
in interface Persistent
public boolean isPersistent()
Persistent
isPersistent
in interface Persistent
true
if object is persistent else false
public void merge(javax.jcr.Node node) throws javax.jcr.RepositoryException
Persistent
merge
in interface Persistent
javax.jcr.RepositoryException
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.