Getting repository information
Now when we get a connection to the repository, we can take a look at its capabilities. The session
object that we got a reference to has a method named getRepositoryInfo
, which returns a RepositoryInfo
object that can be used to get to the repository capabilities.
In the CmisClient
class, add a new method named listRepoCapabilities
as follows:
public void listRepoCapabilities(RepositoryInfo repositoryInfo) { RepositoryCapabilities repoCapabilities = repositoryInfo.getCapabilities(); logger.info("aclCapability = " + repoCapabilities.getAclCapability().name()); logger.info("changesCapability = " + repoCapabilities.getChangesCapability().name()); logger.info("contentStreamUpdatable = " + repoCapabilities.getContentStreamUpdatesCapability().name()); logger.info("joinCapability = " + repoCapabilities.getJoinCapability().name()); logger.info("queryCapability = " + repoCapabilities.getQueryCapability().name()); logger.info...