public class HSMService extends java.lang.Object implements IInCoreHSM
Constructor and Description |
---|
HSMService(BmContext context,
Container mboxContainer,
ItemValue<Domain> domainValue) |
Modifier and Type | Method and Description |
---|---|
void |
copy(java.lang.String sourceMailboxUid,
java.lang.String destMailboxUid,
java.util.List<java.lang.String> hsmIds) |
void |
deleteAllPolicies(java.lang.String domainUid) |
void |
deleteDomainPolicy() |
void |
deletePolicy(java.lang.String mailboxUid) |
TierChangeResult |
demote(Demote demote)
Moves a message to a lower tier of storage (eg.
|
java.util.List<TierChangeResult> |
demoteMultiple(java.util.List<Demote> demote)
Moves messages to a lower tier of storage (eg.
|
byte[] |
fetch(java.lang.String mailboxUid,
java.lang.String hsmId)
Fetches the content of a message from low-tier storage
|
StoragePolicy |
getDomainPolicy() |
StoragePolicy |
getPolicy(java.lang.String mailboxUid) |
double |
getSize(java.lang.String mailboxUid)
Get user archive size used in byte
|
TierChangeResult |
promote(Promote promote)
Moves a message to an upper tier of storage (eg.
|
java.util.List<TierChangeResult> |
promoteMultiple(java.util.List<Promote> promote)
Moves messages to an upper tier of storage (eg.
|
void |
setDomainPolicy(StoragePolicy sp) |
void |
setPolicy(java.lang.String mailboxUid,
StoragePolicy sp) |
public StoragePolicy getDomainPolicy() throws ServerFault
getDomainPolicy
in interface IHSM
ServerFault
public void setDomainPolicy(StoragePolicy sp) throws ServerFault
setDomainPolicy
in interface IHSM
ServerFault
public void deleteDomainPolicy() throws ServerFault
deleteDomainPolicy
in interface IHSM
ServerFault
public void setPolicy(java.lang.String mailboxUid, StoragePolicy sp) throws ServerFault
setPolicy
in interface IHSM
ServerFault
public StoragePolicy getPolicy(java.lang.String mailboxUid) throws ServerFault
getPolicy
in interface IHSM
ServerFault
public void deletePolicy(java.lang.String mailboxUid) throws ServerFault
deletePolicy
in interface IHSM
ServerFault
public TierChangeResult demote(Demote demote) throws ServerFault
IHSM
demote
in interface IHSM
ServerFault
public TierChangeResult promote(Promote promote) throws ServerFault
IHSM
promote
in interface IHSM
ServerFault
public byte[] fetch(java.lang.String mailboxUid, java.lang.String hsmId) throws ServerFault
IHSM
fetch
in interface IHSM
ServerFault
public double getSize(java.lang.String mailboxUid) throws ServerFault
IHSM
getSize
in interface IHSM
ServerFault
public void copy(java.lang.String sourceMailboxUid, java.lang.String destMailboxUid, java.util.List<java.lang.String> hsmIds) throws ServerFault
copy
in interface IHSM
ServerFault
public java.util.List<TierChangeResult> demoteMultiple(java.util.List<Demote> demote) throws ServerFault
IHSM
demoteMultiple
in interface IHSM
ServerFault
public java.util.List<TierChangeResult> promoteMultiple(java.util.List<Promote> promote) throws ServerFault
IHSM
promoteMultiple
in interface IHSM
ServerFault
public void deleteAllPolicies(java.lang.String domainUid)
deleteAllPolicies
in interface IInCoreHSM
Copyright © 2021. All Rights Reserved.