addYesNoLabel("Changes incomplete:").setValue(is(repInfo.getChangesIncomplete()));
addLine("Changes on type:").setText(
repInfo.getChangesOnType() == null ? "" : repInfo.getChangesOnType().toString());
if (repInfo.getCapabilities() != null) {
RepositoryCapabilities cap = repInfo.getCapabilities();
addLine("Capabilities", true).setText("");
addYesNoLabel("Get descendants supported:").setValue(is(cap.isGetDescendantsSupported()));
addYesNoLabel("Get folder tree supported:").setValue(is(cap.isGetFolderTreeSupported()));
addYesNoLabel("Unfiling supported:").setValue(is(cap.isUnfilingSupported()));
addYesNoLabel("Multifiling supported:").setValue(is(cap.isMultifilingSupported()));
addYesNoLabel("Version specific filing supported:")
.setValue(is(cap.isVersionSpecificFilingSupported()));
addLine("Query:").setText(str(cap.getQueryCapability()));
addLine("Joins:").setText(str(cap.getJoinCapability()));
addYesNoLabel("All versions searchable:").setValue(is(cap.isAllVersionsSearchableSupported()));
addYesNoLabel("PWC searchable:").setValue(is(cap.isPwcSearchableSupported()));
addYesNoLabel("PWC updatable:").setValue(is(cap.isPwcUpdatableSupported()));
addLine("Content stream updates:").setText(str(cap.getContentStreamUpdatesCapability()));
addLine("Renditions:").setText(str(cap.getRenditionsCapability()));
addLine("Changes:").setText(str(cap.getChangesCapability()));
addLine("ACLs:").setText(str(cap.getAclCapability()));
}
if (repInfo.getAclCapabilities() != null) {
AclCapabilities cap = repInfo.getAclCapabilities();
addLine("ACL Capabilities:", true).setText("");
addLine("Supported permissions:").setText(str(cap.getSupportedPermissions()));
addLine("ACL propagation:").setText(str(cap.getAclPropagation()));
if (cap.getPermissions() != null) {
String[][] data = new String[cap.getPermissions().size()][2];
int i = 0;
for (PermissionDefinition pd : cap.getPermissions()) {
data[i][0] = pd.getId();
data[i][1] = pd.getDescription();
i++;
}
JTable permTable = new JTable(data, new String[] { "Permission", "Description" });
permTable.setFillsViewportHeight(true);
addComponent("Permissions:", new JScrollPane(permTable));
}
if (cap.getPermissionMapping() != null) {
String[][] data = new String[cap.getPermissionMapping().size()][2];
int i = 0;
for (PermissionMapping pm : cap.getPermissionMapping().values()) {
data[i][0] = pm.getKey();
data[i][1] = (pm.getPermissions() == null ? "" : pm.getPermissions().toString());
i++;
}