public class JCRMailbox extends Object implements Mailbox<String>, JCRImapConstants, Persistent
Mailbox| Modifier and Type | Field and Description |
|---|---|
static String |
HIGHESTMODSEQ_PROPERTY |
static String |
LASTUID_PROPERTY |
static String |
NAME_PROPERTY |
static String |
NAMESPACE_PROPERTY |
static String |
UIDVALIDITY_PROPERTY |
static String |
USER_PROPERTY |
NODE_DELIMITER| Constructor and Description |
|---|
JCRMailbox(MailboxPath path,
long uidValidity,
org.slf4j.Logger logger) |
JCRMailbox(javax.jcr.Node node,
org.slf4j.Logger logger) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
MailboxACL |
getACL()
Gets the current ACL for this mailbox.
|
org.slf4j.Logger |
getLog() |
String |
getMailboxId()
Gets the unique mailbox ID.
|
String |
getName()
Gets the current name for this mailbox.
|
String |
getNamespace()
Gets the current namespace for this mailbox.
|
javax.jcr.Node |
getNode()
Return underlying Node
|
long |
getUidValidity()
Gets the current UID VALIDITY for this mailbox.
|
String |
getUser()
Gets the current user for this mailbox.
|
int |
hashCode() |
boolean |
isPersistent()
Return if the object is persistent
|
void |
merge(javax.jcr.Node node)
Merge the object with the node
|
void |
setACL(MailboxACL acl)
Sets the current ACL for this mailbox.
|
void |
setName(String name)
Sets the current name for this mailbox.
|
void |
setNamespace(String namespace)
Sets the current namespace for this mailbox.
|
void |
setUser(String user)
Sets the current user for this mailbox.
|
String |
toString() |
public static final String USER_PROPERTY
public static final String NAMESPACE_PROPERTY
public static final String NAME_PROPERTY
public static final String UIDVALIDITY_PROPERTY
public static final String LASTUID_PROPERTY
public static final String HIGHESTMODSEQ_PROPERTY
public JCRMailbox(MailboxPath path, long uidValidity, org.slf4j.Logger logger)
public JCRMailbox(javax.jcr.Node node,
org.slf4j.Logger logger)
public org.slf4j.Logger getLog()
public String getName()
Mailboxpublic long getUidValidity()
MailboxgetUidValidity in interface Mailbox<String>public void setName(String name)
Mailboxpublic 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.RepositoryExceptionpublic String getMailboxId()
MailboxgetMailboxId in interface Mailbox<String>public String getNamespace()
MailboxgetNamespace in interface Mailbox<String>public String getUser()
Mailboxpublic void setNamespace(String namespace)
MailboxsetNamespace in interface Mailbox<String>namespace - not nullpublic void setUser(String user)
Mailboxpublic MailboxACL getACL()
Mailboxpublic void setACL(MailboxACL acl)
MailboxCopyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.