package com.bocloud.ims.interfaces.resource.hmc;

import com.bocloud.common.model.BocloudResult;
import com.bocloud.common.model.GridBean;
import com.bocloud.common.model.Pager;
import com.bocloud.common.model.RequestContext;
import com.bocloud.ims.entity.resource.hmc.HmcPartition;
import com.bocloud.ims.entity.resource.hmc.HmcProfile;

import java.util.List;

/**
 * @author Shaolong_tan
 *
 */
public interface HmcProfileService {
	/**
	 * 创建HMC分区
	 * 
	 * @param
	 * @return 操作结果
	 */
	public BocloudResult create(HmcProfile profile, RequestContext context);

	/**
	 * 列表概要文件
	 * @param pager
	 * @return
	 */
	public BocloudResult<GridBean<List<HmcProfile>>> list(Pager pager);

	/**
	 * 修改概要文件
	 * 
	 * @param
	 * @return 操作结果
	 */
	public BocloudResult modify(HmcProfile profile, RequestContext context);

	/**
	 * 查看HMC分区概要文件详细信息
	 * 
	 * @param id
	 *            HMC分区概要文件ID
	 * @return 操作结果
	 */
	public BocloudResult<HmcProfile> detail(Long id);

	/**
	 * 删除HMC分区概要文件
	 * 
	 * @param id
	 *            the id
	 * @param id
	 *            the context id
	 * @return the result
	 */
	public BocloudResult remove(Long id, RequestContext context);

	/**
	 * 同步分区概要文件信息
	 * 
	 * @param vendorId
	 * @param isVios
	 * @param partitionUuid
	 *            分区uuid
	 * @param profileUuid
	 *            概要文件uuid
	 * @return
	 */
	public BocloudResult syncProfile(Long vendorId, Boolean isVios, HmcPartition partition);

}
