Package com.isode.som.pumice.objects
Class SomPumiceMailbox
java.lang.Object
com.isode.som.pumice.objects.SomPumiceObject
com.isode.som.pumice.objects.SomPumiceMailbox
- All Implemented Interfaces:
SomPumiceHandler,SomHandler
Class which models a mailbox in the Message Store
The SomPumiceSubordinates command generates a list of objects of this
type when it is invoked to list mailboxes
- Author:
- tc
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Field Summary
Fields inherited from class com.isode.som.pumice.objects.SomPumiceObject
errortext, somSession -
Constructor Summary
ConstructorsConstructorDescriptionSomPumiceMailbox(SomPumiceSession session, String mName) Create a new mailbox object, with the specified nameSomPumiceMailbox(SomPumiceSession session, String[] pairs) Create a new mailbox object and populate from type/value pairsSomPumiceMailbox(SomPumiceSession session, String m, String[] pairs) Create a new mailbox object, with the specified name and populate from type/value pairs -
Method Summary
Modifier and TypeMethodDescriptioncom.isode.asn.modules.MS.AutoActionRegistrationsvoidbackup(SomCommandListener listener, String dest) voidderegisterAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg) voidhandleBindResponse(int status, String detail) Handle the response to a Bind operationvoidhandleResponse(SomCommand command, int status, SomPumiceConnection object) voidhandleResponse(SomCommand command, int status, SomPumiceMailbox object) voidhandleResponse(SomCommand obj, int status, SomPumiceMessage msg) voidhandleResponse(SomCommand command, int status, SomPumiceMessageStore object) voidhandleResponse(SomCommand command, int status, String detail) Generic command response handlervoidhandleResponse(SomCommand command, int status, String[] pairs) voidlistMessages(SomCommandListener listener) voidpaste(SomCommandListener listener, String sourceMailbox, Integer sourceMessage) voidrebuildStatistics(SomCommandListener listener) voidrefresh(SomCommandListener listener) voidregisterAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg) voidremoveFromArray(ArrayList<SomPumiceMailbox> mailboxes) voidtidy(SomCommandListener listener, SomUtcTime since, SomPumiceMailbox.EntryState entryState, SomPumiceMailbox.EntryClass entryClass) Methods inherited from class com.isode.som.pumice.objects.SomPumiceObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, notifyListeners, notifyListeners, parsePairs, print, removeBindListener, setSkipNotifications
-
Constructor Details
-
SomPumiceMailbox
Create a new mailbox object, with the specified name- Parameters:
session- Session within which mailbox existsmName- name of mailbox (string encoded ORAddress)
-
SomPumiceMailbox
Create a new mailbox object, with the specified name and populate from type/value pairs- Parameters:
session- Session within which mailbox existsm- name of mailbox (string encoded ORAddress)pairs- type/value data pairs
-
SomPumiceMailbox
Create a new mailbox object and populate from type/value pairs- Parameters:
session- Session within which mailbox existspairs- type/value data pairs
-
-
Method Details
-
mailboxName
-
removeFromArray
-
getMessages
-
handleResponse
Description copied from interface:SomHandlerGeneric command response handler- Specified by:
handleResponsein interfaceSomHandler- Specified by:
handleResponsein interfaceSomPumiceHandler- Parameters:
command- the command to which the response appliesstatus- status from commanddetail- error detail
-
handleResponse
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleBindResponse
Description copied from interface:SomHandlerHandle the response to a Bind operation- Specified by:
handleBindResponsein interfaceSomHandler- Parameters:
status- operation statusdetail- error detail on failure
-
handleResponse
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
refresh
- Throws:
SomException
-
listMessages
- Throws:
SomException
-
rebuildStatistics
- Throws:
SomException
-
backup
- Throws:
SomException
-
paste
public void paste(SomCommandListener listener, String sourceMailbox, Integer sourceMessage) throws SomException - Throws:
SomException
-
tidy
public void tidy(SomCommandListener listener, SomUtcTime since, SomPumiceMailbox.EntryState entryState, SomPumiceMailbox.EntryClass entryClass) throws SomException - Throws:
SomException
-
buildInfoString
-
mailboxPath
- Throws:
SomException
-
orAddress
- Throws:
SomException
-
autoActionsString
- Throws:
Exception
-
autoActions
- Throws:
Exception
-
registerAutoAction
public void registerAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg) throws Exception - Throws:
Exception
-
deregisterAutoAction
public void deregisterAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg) throws Exception - Throws:
Exception
-
numMessages
- Throws:
SomException
-
numSubmittedMessages
- Throws:
SomException
-
numReports
- Throws:
SomException
-
volMessages
- Throws:
SomException
-
volSubmittedMessages
- Throws:
SomException
-
numP7Associations
- Throws:
SomException
-
numP3Associations
- Throws:
SomException
-
numUnreadLowPriority
- Throws:
SomException
-
numUnreadMediumPriority
- Throws:
SomException
-
numUnreadHighPriority
- Throws:
SomException
-
errorCount
- Throws:
SomException
-
lastBindTime
- Throws:
SomException
-
lastOpType
- Throws:
SomException
-
lastOpTime
- Throws:
SomException
-
ageoldest
- Throws:
SomException
-