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
public class SomPumiceMailbox extends SomPumiceObject implements SomPumiceHandler
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 Classes Modifier and Type Class Description static classSomPumiceMailbox.EntryClassstatic classSomPumiceMailbox.EntryState
-
Field Summary
-
Fields inherited from class com.isode.som.pumice.objects.SomPumiceObject
errortext, somSession
-
-
Constructor Summary
Constructors Constructor Description SomPumiceMailbox(SomPumiceSession session, java.lang.String mName)Create a new mailbox object, with the specified nameSomPumiceMailbox(SomPumiceSession session, java.lang.String[] pairs)Create a new mailbox object and populate from type/value pairsSomPumiceMailbox(SomPumiceSession session, java.lang.String m, java.lang.String[] pairs)Create a new mailbox object, with the specified name and populate from type/value pairs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringageoldest()com.isode.asn.modules.MS.AutoActionRegistrationsautoActions()java.lang.StringautoActionsString()voidbackup(SomCommandListener listener, java.lang.String dest)java.lang.StringbuildInfoString()voidderegisterAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg)java.lang.IntegererrorCount()SomPumiceMessage[]getMessages()voidhandleBindResponse(int status, java.lang.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, java.lang.String detail)Generic command response handlervoidhandleResponse(SomCommand command, int status, java.lang.String[] pairs)java.lang.StringlastBindTime()java.lang.StringlastOpTime()java.lang.StringlastOpType()voidlistMessages(SomCommandListener listener)java.lang.StringmailboxName()java.lang.StringmailboxPath()java.lang.IntegernumMessages()java.lang.IntegernumP3Associations()java.lang.IntegernumP7Associations()java.lang.IntegernumReports()java.lang.IntegernumSubmittedMessages()java.lang.IntegernumUnreadHighPriority()java.lang.IntegernumUnreadLowPriority()java.lang.IntegernumUnreadMediumPriority()java.lang.StringorAddress()voidpaste(SomCommandListener listener, java.lang.String sourceMailbox, java.lang.Integer sourceMessage)voidrebuildStatistics(SomCommandListener listener)voidrefresh(SomCommandListener listener)voidregisterAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg)voidremoveFromArray(java.util.ArrayList<SomPumiceMailbox> mailboxes)voidtidy(SomCommandListener listener, SomUtcTime since, SomPumiceMailbox.EntryState entryState, SomPumiceMailbox.EntryClass entryClass)java.lang.IntegervolMessages()java.lang.IntegervolSubmittedMessages()-
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 Detail
-
SomPumiceMailbox
public SomPumiceMailbox(SomPumiceSession session, java.lang.String mName)
Create a new mailbox object, with the specified name- Parameters:
session- Session within which mailbox existsmName- name of mailbox (string encoded ORAddress)
-
SomPumiceMailbox
public SomPumiceMailbox(SomPumiceSession session, java.lang.String m, java.lang.String[] pairs)
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
public SomPumiceMailbox(SomPumiceSession session, java.lang.String[] pairs)
Create a new mailbox object and populate from type/value pairs- Parameters:
session- Session within which mailbox existspairs- type/value data pairs
-
-
Method Detail
-
mailboxName
public java.lang.String mailboxName()
-
removeFromArray
public void removeFromArray(java.util.ArrayList<SomPumiceMailbox> mailboxes)
-
getMessages
public SomPumiceMessage[] getMessages()
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String detail)
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
public void handleResponse(SomCommand command, int status, SomPumiceMessageStore object)
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceConnection object)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand obj, int status, SomPumiceMessage msg)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMailbox object)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
handleBindResponse
public void handleBindResponse(int status, java.lang.String detail)Description copied from interface:SomHandlerHandle the response to a Bind operation- Specified by:
handleBindResponsein interfaceSomHandler- Parameters:
status- operation statusdetail- error detail on failure
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String[] pairs)
- Specified by:
handleResponsein interfaceSomPumiceHandler
-
refresh
public void refresh(SomCommandListener listener) throws SomException
- Throws:
SomException
-
listMessages
public void listMessages(SomCommandListener listener) throws SomException
- Throws:
SomException
-
rebuildStatistics
public void rebuildStatistics(SomCommandListener listener) throws SomException
- Throws:
SomException
-
backup
public void backup(SomCommandListener listener, java.lang.String dest) throws SomException
- Throws:
SomException
-
paste
public void paste(SomCommandListener listener, java.lang.String sourceMailbox, java.lang.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
public java.lang.String buildInfoString()
-
mailboxPath
public java.lang.String mailboxPath() throws SomException- Throws:
SomException
-
orAddress
public java.lang.String orAddress() throws SomException- Throws:
SomException
-
autoActionsString
public java.lang.String autoActionsString() throws java.lang.Exception- Throws:
java.lang.Exception
-
autoActions
public com.isode.asn.modules.MS.AutoActionRegistrations autoActions() throws java.lang.Exception- Throws:
java.lang.Exception
-
registerAutoAction
public void registerAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg) throws java.lang.Exception
- Throws:
java.lang.Exception
-
deregisterAutoAction
public void deregisterAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg) throws java.lang.Exception
- Throws:
java.lang.Exception
-
numMessages
public java.lang.Integer numMessages() throws SomException- Throws:
SomException
-
numSubmittedMessages
public java.lang.Integer numSubmittedMessages() throws SomException- Throws:
SomException
-
numReports
public java.lang.Integer numReports() throws SomException- Throws:
SomException
-
volMessages
public java.lang.Integer volMessages() throws SomException- Throws:
SomException
-
volSubmittedMessages
public java.lang.Integer volSubmittedMessages() throws SomException- Throws:
SomException
-
numP7Associations
public java.lang.Integer numP7Associations() throws SomException- Throws:
SomException
-
numP3Associations
public java.lang.Integer numP3Associations() throws SomException- Throws:
SomException
-
numUnreadLowPriority
public java.lang.Integer numUnreadLowPriority() throws SomException- Throws:
SomException
-
numUnreadMediumPriority
public java.lang.Integer numUnreadMediumPriority() throws SomException- Throws:
SomException
-
numUnreadHighPriority
public java.lang.Integer numUnreadHighPriority() throws SomException- Throws:
SomException
-
errorCount
public java.lang.Integer errorCount() throws SomException- Throws:
SomException
-
lastBindTime
public java.lang.String lastBindTime() throws SomException- Throws:
SomException
-
lastOpType
public java.lang.String lastOpType() throws SomException- Throws:
SomException
-
lastOpTime
public java.lang.String lastOpTime() throws SomException- Throws:
SomException
-
ageoldest
public java.lang.String ageoldest() throws SomException- Throws:
SomException
-
-