Class WomClientService

java.lang.Object
io.meeds.tenant.hub.rest.client.WomClientService

@Component public class WomClientService extends Object
  • Constructor Details

    • WomClientService

      public WomClientService()
  • Method Details

    • isDeedManager

      public boolean isDeedManager(String address, long nftId) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • getHub

      public io.meeds.wom.api.model.Hub getHub(String hubAddress, boolean forceRefresh) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • generateToken

      public String generateToken() throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • connectToWom

      public io.meeds.wom.api.model.WomConnectionResponse connectToWom(io.meeds.wom.api.model.WomConnectionRequest connectionRequest) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • disconnectFromWom

      public String disconnectFromWom(io.meeds.wom.api.model.WomDisconnectionRequest disconnectionRequest) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • saveReport

      public io.meeds.wom.api.model.HubReport saveReport(io.meeds.wom.api.model.HubReportVerifiableData reportRequest) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • retrieveReport

      public io.meeds.wom.api.model.HubReport retrieveReport(long reportId) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • saveHub

      public String saveHub(io.meeds.wom.api.model.Hub hub, String hubSignedMessage, String token) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • saveHubAvatar

      public void saveHubAvatar(String hubAddress, String signedMessage, String token, InputStream inputStream) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • saveHubBanner

      public void saveHubBanner(String hubAddress, String signedMessage, String rawMessage, String token, InputStream inputStream) throws io.meeds.wom.api.constant.WomException
      Throws:
      io.meeds.wom.api.constant.WomException
    • getWomUrl

      public String getWomUrl()