// capabilities
if (ri.getCapabilities() == null) {
addResult(createResult(FAILURE, "Capabilities are not set!"));
} else {
RepositoryCapabilities cap = ri.getCapabilities();
// ACL capability
success = createResult(OK, "ACL capability: " + cap.getAclCapability());
failure = createResult(FAILURE, "ACL capability is not set!");
addResult(assertNotNull(cap.getAclCapability(), success, failure));
// changes capability
success = createResult(OK, "Changes capability: " + cap.getChangesCapability());
failure = createResult(WARNING, "Changes capability is not set!");
addResult(assertNotNull(cap.getChangesCapability(), success, failure));
// content stream updates capability
success = createResult(OK, "Content stream updates capability: " + cap.getContentStreamUpdatesCapability());
failure = createResult(FAILURE, "Content stream updates is not set!");
addResult(assertNotNull(cap.getContentStreamUpdatesCapability(), success, failure));
// get descendants capability
success = createResult(OK, "Get descendants capability: " + cap.isGetDescendantsSupported());
failure = createResult(FAILURE, "Get descendants capability is not set!");
addResult(assertNotNull(cap.isGetDescendantsSupported(), success, failure));
// get folder tree capability
success = createResult(OK, "Get folder tree capability: " + cap.isGetFolderTreeSupported());
failure = createResult(FAILURE, "Get folder tree capability is not set!");
addResult(assertNotNull(cap.isGetFolderTreeSupported(), success, failure));
// multifiling capability
success = createResult(OK, "Multifiling capability: " + cap.isMultifilingSupported());
failure = createResult(FAILURE, "Multifiling capability is not set!");
addResult(assertNotNull(cap.isMultifilingSupported(), success, failure));
// unfiling capability
success = createResult(OK, "Unfiling capability: " + cap.isUnfilingSupported());
failure = createResult(FAILURE, "Unfiling capability is not set!");
addResult(assertNotNull(cap.isUnfilingSupported(), success, failure));
// version specific filing capability
success = createResult(OK, "Version specific filing capability: " + cap.isVersionSpecificFilingSupported());
failure = createResult(FAILURE, "Version specific filing capability is not set!");
addResult(assertNotNull(cap.isVersionSpecificFilingSupported(), success, failure));
// query capability
success = createResult(OK, "Query capability: " + cap.getQueryCapability());
failure = createResult(FAILURE, "Query capability is not set!");
addResult(assertNotNull(cap.getQueryCapability(), success, failure));
// JOIN capability
success = createResult(OK, "JOIN capability: " + cap.getJoinCapability());
failure = createResult(FAILURE, "JOIN capability is not set!");
addResult(assertNotNull(cap.getJoinCapability(), success, failure));
// all versions searchable capability
success = createResult(OK, "All versions searchable capability: " + cap.isAllVersionsSearchableSupported());
failure = createResult(FAILURE, "All versions searchable capability is not set!");
addResult(assertNotNull(cap.isAllVersionsSearchableSupported(), success, failure));
// PWC searchable capability
success = createResult(OK, "PWC searchable capability: " + cap.isPwcSearchableSupported());
failure = createResult(FAILURE, "PWC searchable capability is not set!");
addResult(assertNotNull(cap.isPwcSearchableSupported(), success, failure));
// PWC updatable capability
success = createResult(OK, "PWC updatable capability: " + cap.isPwcUpdatableSupported());
failure = createResult(FAILURE, "PWC updatable capability is not set!");
addResult(assertNotNull(cap.isPwcUpdatableSupported(), success, failure));
// renditions capability
success = createResult(OK, "Renditions capability: " + cap.getRenditionsCapability());
failure = createResult(FAILURE, "Renditions capability is not set!");
addResult(assertNotNull(cap.getRenditionsCapability(), success, failure));
}
// ACL capabilities
if (ri.getAclCapabilities() == null) {
addResult(createResult(WARNING, "ACL capabilities are not set!"));