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();
}
Aggregations