Search in sources :

Example 1 with SetCurrentVolumeResponse

use of com.zimbra.soap.admin.message.SetCurrentVolumeResponse in project zm-mailbox by Zimbra.

the class SetCurrentVolume method handle.

private SetCurrentVolumeResponse handle(SetCurrentVolumeRequest req, Map<String, Object> ctx) throws ServiceException {
    ZimbraSoapContext zsc = getZimbraSoapContext(ctx);
    checkRight(zsc, ctx, Provisioning.getInstance().getLocalServer(), Admin.R_manageVolume);
    short volId = req.getId() > 0 ? req.getId() : Volume.ID_NONE;
    VolumeManager.getInstance().setCurrentVolume(req.getType(), volId);
    return new SetCurrentVolumeResponse();
}
Also used : ZimbraSoapContext(com.zimbra.soap.ZimbraSoapContext) SetCurrentVolumeResponse(com.zimbra.soap.admin.message.SetCurrentVolumeResponse)

Aggregations

ZimbraSoapContext (com.zimbra.soap.ZimbraSoapContext)1 SetCurrentVolumeResponse (com.zimbra.soap.admin.message.SetCurrentVolumeResponse)1