com.jd.blockchain.ledger.RolePrivileges Maven / Gradle / Ivy
package com.jd.blockchain.ledger;
/**
* 对角色的授权;
*
* @author huanghaiquan
*
*/
public class RolePrivileges extends Privileges {
private String roleName;
private long version;
public RolePrivileges(String roleName, long version) {
this.roleName = roleName;
this.version = version;
}
public RolePrivileges(String roleName, long version, PrivilegeSet privilege) {
super(privilege);
this.roleName = roleName;
this.version = version;
}
public RolePrivileges(String roleName, long version, LedgerPrivilegeBitset ledgerPrivilege,
TransactionPrivilegeBitset txPrivilege) {
super(ledgerPrivilege, txPrivilege);
this.roleName = roleName;
this.version = version;
}
public String getRoleName() {
return roleName;
}
public long getVersion() {
return version;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy