@RolesAllowed(value="users") public class EthereumWalletAccountREST extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
EthereumWalletAccountREST(EthereumWalletService ethereumWalletService,
EthereumWalletAccountService accountService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
enableWalletByAddress(String address,
boolean enable)
Enable/Disable wallet
|
javax.ws.rs.core.Response |
getWalletByAddress(String address)
Retrieves the user or space details associated to an address
|
javax.ws.rs.core.Response |
getWalletByTypeAndID(String remoteId,
String type)
Retrieves the user or space details by username or space pretty name
|
javax.ws.rs.core.Response |
getWallets()
Get list of wallet accounts
|
javax.ws.rs.core.Response |
isFundRequestSent(String notificationId)
Returns fund request status
|
javax.ws.rs.core.Response |
markFundRequestAsSent(String notificationId)
Mark a notification as sent
|
javax.ws.rs.core.Response |
removeWalletByAddress(String address)
Remove the user or space details associated to an address
|
javax.ws.rs.core.Response |
requestFunds(FundsRequest fundsRequest)
Sends a fund request notifications
|
javax.ws.rs.core.Response |
saveAddress(Wallet wallet)
Save address a user or space associated address
|
javax.ws.rs.core.Response |
saveOrDeleteAddressLabel(AddressLabel label)
Save wallet address label
|
javax.ws.rs.core.Response |
savePreferences(WalletPreferences preferences)
Save Wallet preferences
|
public EthereumWalletAccountREST(EthereumWalletService ethereumWalletService, EthereumWalletAccountService accountService)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getWalletByTypeAndID(String remoteId, String type)
remoteId - username or space pretty nametype - 'user' or 'space'@RolesAllowed(value="users") public javax.ws.rs.core.Response getWalletByAddress(String address)
address - wallet address@RolesAllowed(value="administrators") public javax.ws.rs.core.Response enableWalletByAddress(String address, boolean enable)
address - address of wallet to enable/disableenable - if true enable wallet else disable it@RolesAllowed(value="administrators") public javax.ws.rs.core.Response removeWalletByAddress(String address)
address - wallet address to remove@RolesAllowed(value="users") public javax.ws.rs.core.Response saveAddress(Wallet wallet)
wallet - wallet details to save@RolesAllowed(value={"administrators","rewarding"}) public javax.ws.rs.core.Response saveOrDeleteAddressLabel(AddressLabel label)
label - a label details to save for a given address@RolesAllowed(value="users") public javax.ws.rs.core.Response savePreferences(WalletPreferences preferences)
preferences - wallet preferences to save@RolesAllowed(value="users") public javax.ws.rs.core.Response requestFunds(FundsRequest fundsRequest)
fundsRequest - fund request details to send@RolesAllowed(value="users") public javax.ws.rs.core.Response markFundRequestAsSent(String notificationId)
notificationId - web notification id of fund request to mark as sent@RolesAllowed(value="users") public javax.ws.rs.core.Response isFundRequestSent(String notificationId)
notificationId - web notification id of fund request to check if sent@RolesAllowed(value={"administrators","rewarding"}) public javax.ws.rs.core.Response getWallets()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.