public class MailboxSessionJCRRepository extends Object
Session. It use the username and the password of
the logged in IMAP user to obtain a JCR Session from the Repository| Constructor and Description |
|---|
MailboxSessionJCRRepository(javax.jcr.Repository repository,
String workspace) |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Repository |
getRepository()
Return the
Repository |
String |
getWorkspace()
Return the workspace
|
javax.jcr.Session |
login(MailboxSession session)
If no
Session exists for the MailboxSession one will get created. |
protected javax.jcr.Session |
login(MailboxSession mSession,
String username,
char[] pass) |
void |
logout(MailboxSession mSession)
Logout the JCR
Session if one exists |
public MailboxSessionJCRRepository(javax.jcr.Repository repository,
String workspace)
public javax.jcr.Session login(MailboxSession session) throws javax.jcr.RepositoryException
Session exists for the MailboxSession one will get created.
If one exists it just return the existing.session - javax.jcr.RepositoryExceptionprotected javax.jcr.Session login(MailboxSession mSession, String username, char[] pass) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionpublic void logout(MailboxSession mSession)
Session if one existsmSession - public javax.jcr.Repository getRepository()
Repositorypublic String getWorkspace()
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.