public String getEdition() returns a string representing the
repository edition: Community or Enterprise.
Parameters
None
Returns
Returns a String representing the repository edition, Community or Enterprise.
Example
// the easy way to get repo info, not the only way RepositoryInfo repoInfo = session.getRepositoryInfo(); Log.d(TAG, "buildNumber: " + repoInfo.getBuildNumber()); Log.d(TAG, "description: " + repoInfo.getDescription()); Log.d(TAG, "edition: " + repoInfo.getEdition()); Log.d(TAG, "identifier: " + repoInfo.getIdentifier()); Log.d(TAG, "maintenanceVersion: " + repoInfo.getMaintenanceVersion()); Log.d(TAG, "majorVersion: " + repoInfo.getMajorVersion()); Log.d(TAG, "minorVersion: " + repoInfo.getMinorVersion()); Log.d(TAG, "name: " + repoInfo.getName()); Log.d(TAG, "version: " + repoInfo.getVersion()); // get capabilities RepositoryCapabilities caps = repoInfo.getCapabilities(); // capabilities are CAPABILITY_COMMENTS_COUNT and CAPABILITY_LIKE Log.d(TAG, "doesSupportCapability(CAPABILITY_LIKE): " + caps.doesSupportCapability(CAPABILITY_LIKE)); Log.d(TAG, "doesSupportCommentsCount" + caps.doesSupportCommentsCount()); Log.d(TAG, "doesSupportLikingNodes" + caps.doesSupportLikingNodes());
Would produce output such as the following: