package edu.sjtu.infosec.ismp.manager.BSAM.service;
import java.util.List;
import edu.sjtu.infosec.ismp.manager.BSAM.model.MachineRoom;
import edu.sjtu.infosec.ismp.security.Domain;
public interface MachineRoomService {
/**
* 获取机房列表。
* Author:cchang
* @return
* 2010-10-27 15:44:55
*/
List getMachineRoomList();
/**
* 获取机房列表(分页)。
* Author:cchang
* @return
* 2010-12-1 20:22:22
*/
List getMachineRoomList(int startResult, int maxResult);
/**
* 获取机房列表(分页 分域)。
* Author:cchang
* @return
* 2010-12-3 15:05:16
*/
List getMachineRoomListByDomain(List<Domain> userDomainList, int startResult, int maxResult);
/**
* 获取机房列表(分域)。
* Author:cchang
* @return
* 2010-12-3 15:05:16
*/
List getMachineRoomListByDomain(List<Domain> userDomainList);
/**
* 根据机房的id删除机房
* Author:cchang
* @param id
* 2010-11-25 18:37:38
*/
void deleteMachineRoomById(Integer id);
/**
* 根据机房的id查找机房
* Author:cchang
* @param id
* @return
* 2010-11-25 18:38:04
*/
MachineRoom getMachineRoomById(Integer id);
/**
* 根据机房的name查找机房列表
* Author:cchang
* @param name
* @return
* 2010-11-25 18:38:04
*/
List<MachineRoom> getMachineRoomByName(String name);
/**
* 保存或者更新机房信息
* Author:cchang
* @param machineRoom
* 2010-11-25 18:38:33
*/
void saveOrUpdate(MachineRoom machineRoom);
/**
* 取得机房列表总记录条数
* Author:cchang
* 2010-12-2 10:09:09
*/
int getCount();
/**
* 取得机房列表总记录条数(分域)
* Author:cchang
* 2010-12-2 10:09:09
*/
int getCountByDomain(List<Domain> userDomainList);
/**
* 获取机房下的子单位(机柜和主机)列表(分页)。
* Author:cchang
* @return
* 2010-12-20 10:42:47
*/
List getSubUnitById(String id,int startResult, int maxResult);
/**
* 获取机房下的子单位(机柜和主机)列表(不分页)。
* Author:cchang
* @return
* 2010-12-20 10:42:47
*/
List getSubUnitById(String id);
/**
* 获取机房下的子单位总个数(机柜和主机)。
* Author:cchang
* @return
* 2010-12-20 16:06:02
*/
int getSubUnitCountById(String id);
// ==================================================================
}