Package io.meeds.tenant.hub.service
Class HubService
java.lang.Object
io.meeds.tenant.hub.service.HubService
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.meeds.wom.api.model.WomConnectionResponseconnectToWoM(io.meeds.wom.api.model.WomConnectionRequest connectionRequest) voiddisconnectFromWom(io.meeds.wom.api.model.WomDisconnectionRequest disconnectionRequest) shortlongshortgetHub()getHub(boolean forceRefresh) booleanbooleanisDeedManager(String address) booleanisDeedManager(String address, long nftId) voidvoid
-
Field Details
-
MAX_START_TENTATIVES
public static final int MAX_START_TENTATIVES- See Also:
-
HUB_CONNECTED_EVENT
- See Also:
-
HUB_DISCONNECTED_EVENT
- See Also:
-
HUB_UPDATE_ON_WOM_EVENT
- See Also:
-
MANAGER_DEFAULT_ROLES_PARAM
- See Also:
-
PUBLIC_SITE_NAME
- See Also:
-
PUBLIC_ACCESS_PERMISSION
- See Also:
-
PUBLIC_HUB_SUMMARY_SETTING_NAME
- See Also:
-
-
Constructor Details
-
HubService
public HubService()
-
-
Method Details
-
getHubAddress
-
isConnected
public boolean isConnected() -
getHub
-
getHub
-
getDeedId
public long getDeedId() -
getDeedCity
public short getDeedCity() -
getDeedType
public short getDeedType() -
getDeedManager
-
getHubJoinDate
-
isDeedManager
-
isDeedManager
public boolean isDeedManager(String address, long nftId) throws io.meeds.wom.api.constant.WomException - Throws:
io.meeds.wom.api.constant.WomException
-
generateWomToken
- 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 void disconnectFromWom(io.meeds.wom.api.model.WomDisconnectionRequest disconnectionRequest) throws io.meeds.wom.api.constant.WomException - Throws:
io.meeds.wom.api.constant.WomException
-
updateHubCard
public void updateHubCard() throws io.meeds.wom.api.constant.WomException- Throws:
io.meeds.wom.api.constant.WomException
-
saveHubAvatar
public void saveHubAvatar() throws io.meeds.wom.api.constant.WomException- Throws:
io.meeds.wom.api.constant.WomException
-