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()
Mailbox
public long getUidValidity()
Mailbox
getUidValidity
in interface Mailbox<String>
public void setName(String name)
Mailbox
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
public String getMailboxId()
Mailbox
getMailboxId
in interface Mailbox<String>
public String getNamespace()
Mailbox
getNamespace
in interface Mailbox<String>
public String getUser()
Mailbox
public void setNamespace(String namespace)
Mailbox
setNamespace
in interface Mailbox<String>
namespace
- not nullpublic void setUser(String user)
Mailbox
public MailboxACL getACL()
Mailbox
public void setACL(MailboxACL acl)
Mailbox
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.