public class TokenManager extends Object
| Constructor and Description |
|---|
TokenManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(org.hyperledger.fabric.shim.ChaincodeStub stub,
String id) |
String |
getApprovee() |
String |
getOwner() |
String |
getType() |
Map<String,String> |
getURI() |
String |
getURI(String index) |
Map<String,Object> |
getXAttr() |
Object |
getXAttr(String index) |
boolean |
hasToken(org.hyperledger.fabric.shim.ChaincodeStub stub,
String id) |
static TokenManager |
load(org.hyperledger.fabric.shim.ChaincodeStub stub,
String id) |
void |
setApprovee(String approvee) |
void |
setId(String id) |
void |
setOwner(String owner) |
void |
setType(String type) |
void |
setURI(Map<String,String> uri) |
void |
setURI(String index,
String value) |
void |
setXAttr(Map<String,Object> xattr) |
void |
setXAttr(String index,
Object value) |
void |
store(org.hyperledger.fabric.shim.ChaincodeStub stub) |
String |
toJSONString() |
public boolean hasToken(org.hyperledger.fabric.shim.ChaincodeStub stub,
String id)
public void store(org.hyperledger.fabric.shim.ChaincodeStub stub)
throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic void delete(org.hyperledger.fabric.shim.ChaincodeStub stub,
String id)
public static TokenManager load(org.hyperledger.fabric.shim.ChaincodeStub stub, String id) throws IOException
IOExceptionpublic void setId(String id)
public String getType()
public void setType(String type)
public String getOwner()
public void setOwner(String owner)
public String getApprovee()
public void setApprovee(String approvee)
public String toJSONString() throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2020. All rights reserved.