|
21 | 21 | */ |
22 | 22 | public class GrantCommand extends QueryBuilderGrant { |
23 | 23 |
|
24 | | - public static byte CONNECT = QueryBuilderGrant.CONNECT; |
25 | | - public static byte SEND = QueryBuilderGrant.SEND; |
26 | | - public static byte RECEIVE = QueryBuilderGrant.RECEIVE; |
27 | | - public static byte ISSUE = QueryBuilderGrant.ISSUE; |
28 | | - public static byte MINE = QueryBuilderGrant.MINE; |
29 | | - public static byte ACTIVATE = QueryBuilderGrant.ACTIVATE; |
30 | | - public static byte ADMIN = QueryBuilderGrant.ADMIN; |
31 | | - public static byte CREATE = QueryBuilderGrant.CREATE; |
| 24 | + public static int CONNECT = QueryBuilderGrant.CONNECT; |
| 25 | + public static int SEND = QueryBuilderGrant.SEND; |
| 26 | + public static int RECEIVE = QueryBuilderGrant.RECEIVE; |
| 27 | + public static int ISSUE = QueryBuilderGrant.ISSUE; |
| 28 | + public static int MINE = QueryBuilderGrant.MINE; |
| 29 | + public static int ACTIVATE = QueryBuilderGrant.ACTIVATE; |
| 30 | + public static int ADMIN = QueryBuilderGrant.ADMIN; |
| 31 | + public static int CREATE = QueryBuilderGrant.CREATE; |
32 | 32 |
|
33 | 33 | public static int WALLET = QueryBuilderGrant.WALLET; |
34 | 34 | public static int WALLET_ISSUE = QueryBuilderGrant.WALLET_ISSUE; |
@@ -69,6 +69,7 @@ public GrantCommand(String ip, String port, String login, String password) { |
69 | 69 | * with | ) |
70 | 70 | * @return transactionId of grant action |
71 | 71 | * @throws MultichainException |
| 72 | + * @Deprecated |
72 | 73 | */ |
73 | 74 | public String grant(Address address, byte permissions) throws MultichainException { |
74 | 75 | Byte b = new Byte(permissions); |
@@ -100,6 +101,7 @@ public String grant(Address address, int permissions) throws MultichainException |
100 | 101 | * with | ) |
101 | 102 | * @return transactionId of grant action |
102 | 103 | * @throws MultichainException |
| 104 | + * @Deprecated |
103 | 105 | */ |
104 | 106 | public String grant(String address, byte permissions) throws MultichainException { |
105 | 107 | Byte b = new Byte(permissions); |
@@ -164,6 +166,7 @@ public String grant(String address, int permissions) throws MultichainException |
164 | 166 | * with | ) |
165 | 167 | * @return transactionId of grantFrom action |
166 | 168 | * @throws MultichainException |
| 169 | + * @Deprecated |
167 | 170 | */ |
168 | 171 | public String grantFrom(Address addressFrom, Address address, byte permissions) throws MultichainException { |
169 | 172 | Byte b = new Byte(permissions); |
@@ -199,6 +202,7 @@ public String grantFrom(Address addressFrom, Address address, int permissions) t |
199 | 202 | * with | ) |
200 | 203 | * @return transactionId of grantFrom action |
201 | 204 | * @throws MultichainException |
| 205 | + * @Deprecated |
202 | 206 | */ |
203 | 207 | public String grantFrom(String addressFrom, String address, byte permissions) throws MultichainException { |
204 | 208 | Byte b = new Byte(permissions); |
|
0 commit comments