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 class
SomPumiceMailbox.EntryClass
static class
SomPumiceMailbox.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.String
ageoldest()
com.isode.asn.modules.MS.AutoActionRegistrations
autoActions()
java.lang.String
autoActionsString()
void
backup(SomCommandListener listener, java.lang.String dest)
java.lang.String
buildInfoString()
void
deregisterAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg)
java.lang.Integer
errorCount()
SomPumiceMessage[]
getMessages()
void
handleBindResponse(int status, java.lang.String detail)
Handle the response to a Bind operationvoid
handleResponse(SomCommand command, int status, SomPumiceConnection object)
void
handleResponse(SomCommand command, int status, SomPumiceMailbox object)
void
handleResponse(SomCommand obj, int status, SomPumiceMessage msg)
void
handleResponse(SomCommand command, int status, SomPumiceMessageStore object)
void
handleResponse(SomCommand command, int status, java.lang.String detail)
Generic command response handlervoid
handleResponse(SomCommand command, int status, java.lang.String[] pairs)
java.lang.String
lastBindTime()
java.lang.String
lastOpTime()
java.lang.String
lastOpType()
void
listMessages(SomCommandListener listener)
java.lang.String
mailboxName()
java.lang.String
mailboxPath()
java.lang.Integer
numMessages()
java.lang.Integer
numP3Associations()
java.lang.Integer
numP7Associations()
java.lang.Integer
numReports()
java.lang.Integer
numSubmittedMessages()
java.lang.Integer
numUnreadHighPriority()
java.lang.Integer
numUnreadLowPriority()
java.lang.Integer
numUnreadMediumPriority()
java.lang.String
orAddress()
void
paste(SomCommandListener listener, java.lang.String sourceMailbox, java.lang.Integer sourceMessage)
void
rebuildStatistics(SomCommandListener listener)
void
refresh(SomCommandListener listener)
void
registerAutoAction(SomCommandListener listener, com.isode.asn.modules.MS.AutoActionRegistration reg)
void
removeFromArray(java.util.ArrayList<SomPumiceMailbox> mailboxes)
void
tidy(SomCommandListener listener, SomUtcTime since, SomPumiceMailbox.EntryState entryState, SomPumiceMailbox.EntryClass entryClass)
java.lang.Integer
volMessages()
java.lang.Integer
volSubmittedMessages()
-
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:SomHandler
Generic command response handler- Specified by:
handleResponse
in interfaceSomHandler
- Specified by:
handleResponse
in 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:
handleResponse
in interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand obj, int status, SomPumiceMessage msg)
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMailbox object)
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleBindResponse
public void handleBindResponse(int status, java.lang.String detail)
Description copied from interface:SomHandler
Handle the response to a Bind operation- Specified by:
handleBindResponse
in interfaceSomHandler
- Parameters:
status
- operation statusdetail
- error detail on failure
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String[] pairs)
- Specified by:
handleResponse
in 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
-
-