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

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

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

import java.io.Serializable;

import com.jd.binaryproto.DataContractRegistry;

public class RoleInitData implements RoleInitSettings, Serializable {

	private static final long serialVersionUID = -8363700065443018100L;

	static {
		DataContractRegistry.register(RoleInitSettings.class);
	}

	private String roleName;

	private LedgerPermission[] ledgerPermissions;

	private TransactionPermission[] transactionPermissions;

	public RoleInitData() {
	}

	public RoleInitData(String roleName, LedgerPermission[] ledgerPermissions,
			TransactionPermission[] transactionPermissions) {
		this.roleName = roleName;
		this.ledgerPermissions = ledgerPermissions;
		this.transactionPermissions = transactionPermissions;
	}

	@Override
	public String getRoleName() {
		return roleName;
	}

	@Override
	public LedgerPermission[] getLedgerPermissions() {
		return ledgerPermissions;
	}

	@Override
	public TransactionPermission[] getTransactionPermissions() {
		return transactionPermissions;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public void setLedgerPermissions(LedgerPermission[] ledgerPermissions) {
		this.ledgerPermissions = ledgerPermissions;
	}

	public void setTransactionPermissions(TransactionPermission[] transactionPermissions) {
		this.transactionPermissions = transactionPermissions;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy