public interface IHSMStorage
extends java.io.Closeable
Modifier and Type | Method and Description |
---|---|
void |
copy(java.lang.String domainUid,
java.lang.String sourceMailboxUid,
java.lang.String destMailboxUid,
java.lang.String hsmId) |
void |
delete(java.lang.String domainUid,
java.lang.String mailboxUid,
java.lang.String hsmId)
Delete a stored mime stream with the given HSM.
|
int |
getPriority() |
void |
open(INodeClient nc) |
java.io.InputStream |
peek(java.lang.String domainUid,
java.lang.String mailboxUid,
java.lang.String hsmId)
Retrieve a store mime stream for a mailbox with the given HSM id.
|
java.lang.String |
store(java.lang.String domainUid,
java.lang.String mailboxUid,
java.io.InputStream mailContent)
Store a mime stream for the given mailbox and returns the HSM id that can
be used to retrieved the stored stream.
|
java.io.InputStream |
take(java.lang.String domainUid,
java.lang.String mailboxUid,
java.lang.String hsmId)
Same as
IArchiveStore#peek(IMailbox, String) except the mime data
is deleted. |
java.lang.String store(java.lang.String domainUid, java.lang.String mailboxUid, java.io.InputStream mailContent) throws java.io.IOException
mailContent
- java.io.IOException
java.io.InputStream peek(java.lang.String domainUid, java.lang.String mailboxUid, java.lang.String hsmId) throws java.io.IOException
hsmId
- java.io.IOException
java.io.InputStream take(java.lang.String domainUid, java.lang.String mailboxUid, java.lang.String hsmId) throws java.io.IOException
IArchiveStore#peek(IMailbox, String)
except the mime data
is deleted.
If you close the stream before copying it elsewhere, you lost data.hsmId
- java.io.IOException
void delete(java.lang.String domainUid, java.lang.String mailboxUid, java.lang.String hsmId) throws java.io.IOException
box
- hsmId
- java.io.IOException
void copy(java.lang.String domainUid, java.lang.String sourceMailboxUid, java.lang.String destMailboxUid, java.lang.String hsmId) throws java.io.IOException
domainUid
- sourceMailboxUid
- destMailboxUid
- hsmId
- java.io.IOException
void open(INodeClient nc)
int getPriority()
Copyright © 2021. All Rights Reserved.