Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/main/java/com/cryptlex/lexfloatclient/LexFloatClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,22 @@
throw new LexFloatClientException(status);
}

/**
* Gets the tier of the entitlement set associated with the LexFloatServer license.
*
* @return Returns the host license entitlement set tier.
* @throws LexFloatClientException
*/
public static long GetHostLicenseEntitlementSetTier() throws LexFloatClientException {

Check warning on line 383 in src/main/java/com/cryptlex/lexfloatclient/LexFloatClient.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=cryptlex_lexfloatclient-java&issues=AZy8-zk-ZhNr1N5gwdsG&open=AZy8-zk-ZhNr1N5gwdsG&pullRequest=43
int status;
LongByReference tier = new LongByReference(0);
status = LexFloatClientNative.GetHostLicenseEntitlementSetTier(tier);
if (LF_OK == status) {
return tier.getValue();
}
throw new LexFloatClientException(status);
}

/**
* Gets the feature entitlements associated with the LexFloatServer license.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@

public static native int GetHostLicenseEntitlementSetDisplayName(CharBuffer displayName, int length);

public static native int GetHostLicenseEntitlementSetTier(LongByReference tier);

Check warning on line 74 in src/main/java/com/cryptlex/lexfloatclient/LexFloatClientNative.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.

See more on https://sonarcloud.io/project/issues?id=cryptlex_lexfloatclient-java&issues=AZy8-zncZhNr1N5gwdsH&open=AZy8-zncZhNr1N5gwdsH&pullRequest=43

public static native int GetHostFeatureEntitlementsInternal(ByteBuffer featureEntitlementsJson, int length);

public static native int GetHostFeatureEntitlementsInternal(CharBuffer featureEntitlementsJson, int length);
Expand Down