getRepositoryInfo() returns a
RepositoryInfo object representing the repository the session is connected
to.
Parameters
None
Returns
Returns a RepositoryInfo object.
Example
try { RepositorySession session = RepositorySession.connect(url, username, password); if (session) { RepositoryInfo repoInfo = session.getRepositoryInfo(); Log.d(TAG, "repoId: " + repoInfo.getIdentifier()); Log.d(TAG, "repoName: " + repoInfo.getName()); Log.d(TAG, "repoDescription: " + repoInfo.getDescription()); Log.d(TAG, "repoVersion: " + repoInfo.getVersion()); Log.d(TAG, "repoEdition: " + repoInfo.getEdition()); Log.d(TAG, "isAlfresco: " + repoInfo.isAlfrescoProduct()); ... } else { Log.d(TAG, "No Session available!"); } } catch (AlfrescoSessionException e) { Log.e(TAG, "Failed to connect: " + e.toString()); }