Package com.vaadin.copilot.userinfo
Class UserInfoServerClient
java.lang.Object
com.vaadin.copilot.CopilotServerClient
com.vaadin.copilot.userinfo.UserInfoServerClient
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.copilot.CopilotServerClient
CopilotServerClient.AccessControlData -
Field Summary
Fields inherited from class com.vaadin.copilot.CopilotServerClient
SERVER_URL_ENV -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserInfoRequests to Copilot Server to get user information with local pro key if presentstatic voidThrows a AIUsageDisabledException if data cannot leave localhost.Methods inherited from class com.vaadin.copilot.CopilotServerClient
buildRequest, getHttpClient, getQueryURI, getServerBaseUrl, readValue, sendCopilotRequest, sendReactive, writeAsJsonString
-
Constructor Details
-
UserInfoServerClient
public UserInfoServerClient()
-
-
Method Details
-
getUserInfoWithLocalProKey
Requests to Copilot Server to get user information with local pro key if present- Returns:
- Returns null when pro key not exist or when request is not succeeded.
-
throwIfAIUsageDisabled
public static void throwIfAIUsageDisabled()Throws a AIUsageDisabledException if data cannot leave localhost.
-