| | |
| | | package com.vci.client.framework.delegate; |
| | | |
| | | import java.sql.Timestamp; |
| | | import java.text.Collator; |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | |
| | | import com.vci.client.common.objects.UserEntityObject; |
| | | import com.vci.client.common.objects.UserLogonObject; |
| | | import com.vci.client.common.objects.UserObject; |
| | | import com.vci.client.common.providers.ServiceProvider; |
| | | import com.vci.client.framework.appConfig.object.AppConfigDetailObject; |
| | | import com.vci.client.framework.systemConfig.object.CombinationObject; |
| | | import com.vci.client.framework.systemConfig.object.CombinationValueObject; |
| | | import com.vci.client.framework.systemConfig.object.PasswordStrategyObject; |
| | | import com.vci.client.omd.enumManager.ui.EnumClient; |
| | | import com.vci.client.ui.exception.VCIException; |
| | | import com.vci.corba.common.VCIError; |
| | | import com.vci.corba.common.data.VCIInvocationInfo; |
| | |
| | | import com.vci.corba.framework.data.UserLogonInfo; |
| | | import com.vci.corba.omd.etm.EnumChild; |
| | | import com.vci.corba.omd.etm.EnumItem; |
| | | import com.vci.corba.log.data.LogType; |
| | | |
| | | public class RightManagementClientDelegate extends ClientBaseDelegate { |
| | | |
| | |
| | | // 使用IP密级枚举的最小值 |
| | | EnumItem enumItem; |
| | | try { |
| | | enumItem = EnumClient.getService().getEmItemByName("ipsecurityenum"); |
| | | enumItem = ServiceProvider.getOMDService().getEnumService().getEmItemByName("ipsecurityenum"); |
| | | List<EnumChild> childs = new LinkedList<EnumChild>(); |
| | | if(enumItem == null || enumItem.children.length == 0) return "10"; |
| | | for(EnumChild child : enumItem.children){ |
| | |
| | | */ |
| | | public void savelog(String content) throws VCIException{ |
| | | try{ |
| | | ClientSession.getFrameworkService().savelog(content, userEntityInfo); |
| | | ServiceProvider.getLogService().saveLoginLog(true, content, userEntityInfo); |
| | | }catch(VCIError e){ |
| | | throw new VCIException(String.valueOf(e.code), e.messages); |
| | | } |
| | | } |
| | | |
| | | |
| | | public void saveLogV2(String result, String content, String type, int logTypeIntVal, String dataObjOid) throws VCIException{ |
| | | try{ |
| | | ClientSession.getFrameworkService().saveLogV2(result, content, type, (short)logTypeIntVal, dataObjOid, userEntityInfo); |
| | | ServiceProvider.getLogService().saveLog(result, content, type, LogType.valueOf(logTypeIntVal), dataObjOid, userEntityInfo); |
| | | }catch(VCIError e){ |
| | | throw new VCIException(String.valueOf(e.code), e.messages); |
| | | } |
| | | } |
| | | |
| | | //add by caill start 2016.9.13用户被锁定的日志 |
| | | /** |
| | | * |
| | |
| | | */ |
| | | public void blocklog(String userId) throws VCIException{ |
| | | try{ |
| | | ClientSession.getFrameworkService().blocklog(userId, userEntityInfo); |
| | | ServiceProvider.getLogService().saveLockLog(userId, userEntityInfo); |
| | | }catch(VCIError e){ |
| | | throw new VCIException(String.valueOf(e.code), e.messages); |
| | | } |
| | |
| | | */ |
| | | public void savelogFail(String message) throws VCIException{ |
| | | try{ |
| | | ClientSession.getFrameworkService().savelogfail(message, userEntityInfo); |
| | | ServiceProvider.getLogService().saveLoginLog(false, message, userEntityInfo); |
| | | }catch(VCIError e){ |
| | | throw new VCIException(String.valueOf(e.code), e.messages); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | | * 分页查询密码组合方式 |
| | | * <p>Description: </p> |