@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 spacePrettyName
|
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 |
savePreferences(WalletPreferences preferences)
Save user preferences of Wallet
|
public EthereumWalletAccountREST(EthereumWalletService ethereumWalletService, EthereumWalletAccountService accountService)
@RolesAllowed(value="users") public javax.ws.rs.core.Response getWalletByTypeAndID(String remoteId, String type)
remoteId - type - @RolesAllowed(value="users") public javax.ws.rs.core.Response getWalletByAddress(String address)
address - @RolesAllowed(value="administrators") public javax.ws.rs.core.Response enableWalletByAddress(String address, boolean enable)
address - enable - @RolesAllowed(value="administrators") public javax.ws.rs.core.Response removeWalletByAddress(String address)
address - @RolesAllowed(value="users") public javax.ws.rs.core.Response saveAddress(Wallet wallet)
wallet - @RolesAllowed(value="users") public javax.ws.rs.core.Response savePreferences(WalletPreferences preferences)
preferences - @RolesAllowed(value="users") public javax.ws.rs.core.Response requestFunds(FundsRequest fundsRequest)
fundsRequest - @RolesAllowed(value="users") public javax.ws.rs.core.Response markFundRequestAsSent(String notificationId)
notificationId - @RolesAllowed(value="users") public javax.ws.rs.core.Response isFundRequestSent(String notificationId)
notificationId - @RolesAllowed(value="administrators") public javax.ws.rs.core.Response getWallets()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.