package com.artfess.uc.manager;
import java.sql.SQLException;
import java.util.List;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.artfess.base.manager.BaseManager;
import com.artfess.base.model.CommonResult;
import com.artfess.uc.model.Demension;
import com.artfess.uc.model.Org;
import com.artfess.uc.params.common.OrgExportObject;
import com.artfess.uc.params.demension.DemensionVo;
import com.artfess.uc.params.user.UserVo;
/**
*
*
* 描述:维度管理 处理接口
* 构建组:x5-bpmx-platform
* 作者:liyg
* 邮箱:liyg@jee-soft.cn
* 日期:2017-07-19 15:30:09
* 版权:广州宏天软件有限公司
*
*/
public interface DemensionManager extends BaseManager{
/**
* 删除所有已逻辑删除的实体(物理删除)
* @param entityId 实体对象ID
*/
Integer removePhysical();
/**
* 根据Code取定义对象。
* @param code
* @return
*/
Demension getByCode(String code);
/**
* 获取默认维度
* @return
*/
Demension getDefaultDemension();
/**
* 设置默认维度
* @param id
* @throws SQLException
*/
void setDefaultDemension(String id) throws SQLException;
/**
* 添加维度
* @param demVo
* @return
* @throws Exception
*/
CommonResult addDem(DemensionVo demVo) throws Exception ;
/**
* 根据编码删除维度
* @param code
* @return
* @throws Exception
*/
CommonResult deleteDem(String code) throws Exception ;
/**
* 更新维度
* @param demVo
* @return
* @throws Exception
*/
CommonResult updateDem(DemensionVo demVo) throws Exception ;
/**
* 获取维度下的用户
* @param code
* @return
* @throws Exception
*/
List getUsersByDem(String code) throws Exception ;
/**
* 获取维度下的组织
* @param code
* @return
* @throws Exception
*/
List getOrgsByDem(String code) throws Exception ;
/**
* 设置默认维度
* @param code
* @return
* @throws Exception
*/
CommonResult setDefaultDem(String code) throws Exception ;
/**
* 取消默认维度
* @param code
* @return
* @throws Exception
*/
CommonResult cancelDefaultDem(String code) throws Exception ;
/**
* 根据时间获取维度数据(数据同步)
* @param btime
* @param etime
* @return
* @throws Exception
*/
List getDemByTime(OrgExportObject exportObject) throws Exception ;
/**
* 查询维度编码是否已存在
* @param code
* @return
* @throws Exception
*/
CommonResult isCodeExist(String code) throws Exception ;
/**
* 查询用于选择器的列表
* @param code
* @return
* @throws Exception
*/
ObjectNode getOrgSelectListInit(String code) throws Exception ;
CommonResult deleteDemByIds(String ids) throws Exception;
}