com.dahuatech.icc.brm.enums.DepOperationLockEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk-brm Show documentation
Show all versions of java-sdk-brm Show documentation
Dahua ICC Open API SDK for Java
package com.dahuatech.icc.brm.enums;
/**
* 操作权限锁枚举
*/
public enum DepOperationLockEnum {
//增加
ADD(1),
//修改
UPDATE(2),
//删除
DELETE(3),
//添加人员
ADD_PERSON(4);
private Integer code;
private DepOperationLockEnum(Integer code){
this.code = code;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public static DepOperationLockEnum forValue(String code) {
if(code != null){
return null;
}
for (DepOperationLockEnum typeEnum : DepOperationLockEnum.values()) {
if (typeEnum.getCode().equals(code)) {
return typeEnum;
}
}
return null;
}
}