public interface MailboxSession
Modifier and Type | Interface and Description |
---|---|
static class |
MailboxSession.SessionType |
static interface |
MailboxSession.User
A mailbox user.
|
Modifier and Type | Field and Description |
---|---|
static long |
SYSTEM_SESSION_ID
Id which will be used for a System session
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this session.
|
Map<Object,Object> |
getAttributes()
Return the stored attributes for this
MailboxSession . |
org.slf4j.Logger |
getLog()
Gets the logger for this session context.
|
String |
getOtherUsersSpace()
Gets the RFC
2342 other users namespace for the current session.
Note that though servers may offer multiple other users namespaces, support is not offered through this API. |
char |
getPathDelimiter()
Return server side, folder path separator
|
String |
getPersonalSpace()
Gets the RFC
2342 personal namespace for the current session.
Note that though servers may offer multiple personal namespaces, support is not offered through this API. |
long |
getSessionId()
Gets the session ID.
|
Collection<String> |
getSharedSpaces()
Iterates the RFC 2342 Shared Namespaces available for the current
session.
|
MailboxSession.SessionType |
getType()
Return if the
MailboxSession is of type MailboxSession.SessionType.User or MailboxSession.SessionType.System |
MailboxSession.User |
getUser()
Gets the user executing this session.
|
boolean |
isOpen()
Is this session open?
|
static final long SYSTEM_SESSION_ID
MailboxSession.SessionType getType()
MailboxSession
is of type MailboxSession.SessionType.User
or MailboxSession.SessionType.System
long getSessionId()
boolean isOpen()
void close()
org.slf4j.Logger getLog()
MailboxSession.User getUser()
String getPersonalSpace()
String getOtherUsersSpace()
Collection<String> getSharedSpaces()
Map<Object,Object> getAttributes()
MailboxSession
.char getPathDelimiter()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.