package org.zstack.header.volume;

import org.zstack.header.message.APIMessage;

/**
 * Created by frank on 11/12/2015.
 */
public class APIRecoverDataVolumeMsg extends APIMessage implements VolumeMessage {
    private String uuid;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String getVolumeUuid() {
        return uuid;
    }
}

package org.zstack.header.volume;

import org.zstack.header.identity.Action;
import org.zstack.header.message.APIMessage;
import org.zstack.header.message.APIParam;

/**
 * Created by frank on 11/12/2015.
 */
@Action(category = VolumeConstant.ACTION_CATEGORY)
public class APIRecoverDataVolumeMsg extends APIMessage implements VolumeMessage {
    @APIParam(resourceType = VolumeVO.class, checkAccount = true, operationTarget = true)
    private String uuid;

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    @Override
    public String getVolumeUuid() {
        return uuid;
    }
}

add permission control to APIRecoverDataVolumeMsg