public class CyrusService
extends java.lang.Object
Constructor and Description |
---|
CyrusService(ItemValue<Server> srv) |
CyrusService(java.lang.String backendAddress) |
Modifier and Type | Method and Description |
---|---|
boolean |
boxExist(java.lang.String mailbox) |
void |
createBox(java.lang.String boxName,
java.lang.String domainUid) |
CyrusPartition |
createPartition(java.lang.String domainUid) |
void |
deleteBox(java.lang.String boxName,
java.lang.String partition)
Delete Cyrus mailbox and subfolders
|
QuotaInfo |
getQuota(java.lang.String mailbox) |
java.lang.Integer |
getUnSeenMessages(java.lang.String domainUid,
ItemValue<User> user) |
void |
refreshAnnotations() |
void |
refreshPartitions(java.util.List<java.lang.String> domains) |
void |
reload() |
void |
reloadSds() |
void |
renameBox(java.lang.String pboxName,
java.lang.String boxName) |
void |
reset() |
ItemValue<Server> |
server() |
void |
setAcl(java.lang.String mailbox,
java.util.Map<java.lang.String,Acl> acl) |
void |
setQuota(java.lang.String boxName,
int quota) |
void |
xfer(java.lang.String boxName,
java.lang.String domainUid,
ItemValue<Server> dest) |
public CyrusService(java.lang.String backendAddress) throws ServerFault
ServerFault
public CyrusService(ItemValue<Server> srv) throws ServerFault
ServerFault
public void reload() throws ServerFault
ServerFault
public void reloadSds() throws ServerFault
ServerFault
public CyrusPartition createPartition(java.lang.String domainUid) throws ServerFault
ServerFault
public void refreshPartitions(java.util.List<java.lang.String> domains) throws ServerFault
ServerFault
public void refreshAnnotations() throws ServerFault
ServerFault
public void createBox(java.lang.String boxName, java.lang.String domainUid) throws ServerFault
ServerFault
public void deleteBox(java.lang.String boxName, java.lang.String partition) throws ServerFault
boxName
- partition
- ServerFault
public void renameBox(java.lang.String pboxName, java.lang.String boxName) throws ServerFault
ServerFault
public void xfer(java.lang.String boxName, java.lang.String domainUid, ItemValue<Server> dest) throws ServerFault
ServerFault
public void setAcl(java.lang.String mailbox, java.util.Map<java.lang.String,Acl> acl)
public void setQuota(java.lang.String boxName, int quota) throws ServerFault
boxName
- eg. user/john@bm.lanquota
- unit is KBServerFault
public java.lang.Integer getUnSeenMessages(java.lang.String domainUid, ItemValue<User> user) throws ServerFault
ServerFault
public QuotaInfo getQuota(java.lang.String mailbox) throws ServerFault
mailbox
- ServerFault
public boolean boxExist(java.lang.String mailbox) throws ServerFault
ServerFault
public void reset() throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.