package com.bocloud.ims.interfaces.resource;

import com.bocloud.cmp.model.SecurityGroupBean;
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.SecurityGroup;

import java.util.List;

/**
 * 安全组抽象Service层
 *
 * @author weiwei
 */
public interface SecurityGroupService {

	/**
	 * 列表展示
	 * 
	 * @param pager
	 * @param context
	 * @return
	 */
	public BocloudResult<GridBean<SecurityGroup>> list(Pager pager, RequestContext context);

	/**
	 * 创建
	 * 
	 * @param securityGroup
	 * @param context
	 * @return
	 */
	public BocloudResult<SecurityGroup> create(SecurityGroup securityGroup, RequestContext context);

	/**
	 * 删除
	 *
	 * @param id
	 * @param user
	 * @return
	 */
	public BocloudResult<String> remove(Long id, RequestContext context);

	/**
	 * 详情
	 *
	 * @param id
	 * @return
	 */
	public BocloudResult<SecurityGroup> detail(Long id);

	/**
	 * 修改
	 *
	 * @param bean
	 * @param userId
	 * @return
	 */
	public BocloudResult<SecurityGroup> modify(SecurityGroupBean bean, Long userId);

	/**
	 * 批量删除
	 *
	 * @param params
	 * @param user
	 * @return
	 */
	public BocloudResult<String> batchRemove(List<Long> idArray, RequestContext context);
}
