All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jd.blockchain.ledger.RolePrivileges Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
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