Search in sources :

Example 1 with GetSystemRetentionPolicyResponse

use of com.zimbra.soap.mail.message.GetSystemRetentionPolicyResponse in project zm-mailbox by Zimbra.

the class GetSystemRetentionPolicy method handle.

@Override
public Element handle(Element request, Map<String, Object> context) throws ServiceException {
    ZimbraSoapContext zsc = getZimbraSoapContext(context);
    GetSystemRetentionPolicyResponse res = new GetSystemRetentionPolicyResponse(RetentionPolicyManager.getInstance().getSystemRetentionPolicy(getRequestedAccount(zsc)));
    return JaxbUtil.jaxbToElement(res, zsc.getResponseProtocol().getFactory());
}
Also used : ZimbraSoapContext(com.zimbra.soap.ZimbraSoapContext) GetSystemRetentionPolicyResponse(com.zimbra.soap.mail.message.GetSystemRetentionPolicyResponse)

Aggregations

ZimbraSoapContext (com.zimbra.soap.ZimbraSoapContext)1 GetSystemRetentionPolicyResponse (com.zimbra.soap.mail.message.GetSystemRetentionPolicyResponse)1