protected boolean isGetDescendantsSupported(Session session) { RepositoryCapabilities cap = session.getRepositoryInfo().getCapabilities(); if (cap == null) { return false; } if (cap.isGetDescendantsSupported() == null) { return false; } return cap.isGetDescendantsSupported().booleanValue(); }
|| capabilities.getAclCapability() == CapabilityAcl.MANAGE); if (object.getBaseTypeId() == BaseTypeId.CMIS_FOLDER) { info.setSupportsDescendants(Boolean.TRUE.equals(capabilities.isGetDescendantsSupported())); info.setSupportsFolderTree(Boolean.TRUE.equals(capabilities.isGetFolderTreeSupported()));
public RepositoryCapabilitiesImpl(RepositoryCapabilities data) { allVersionsSearchable = data.isAllVersionsSearchableSupported(); capabilityAcl = data.getAclCapability(); capabilityChanges = data.getChangesCapability(); capabilityContentStreamUpdates = data.getContentStreamUpdatesCapability(); capabilityJoin = data.getJoinCapability(); capabilityQuery = data.getQueryCapability(); capabilityRendition = data.getRenditionsCapability(); isPwcSearchable = data.isPwcSearchableSupported(); isPwcUpdatable = data.isPwcUpdatableSupported(); supportsGetDescendants = data.isGetDescendantsSupported(); supportsGetFolderTree = data.isGetFolderTreeSupported(); capabilityOrderBy = data.getOrderByCapability(); supportsMultifiling = data.isMultifilingSupported(); supportsUnfiling = data.isUnfilingSupported(); supportsVersionSpecificFiling = data.isVersionSpecificFilingSupported(); creatablePropertyTypes = data.getCreatablePropertyTypes(); newTypeSettableAttributes = data.getNewTypeSettableAttributes(); setExtensions(data.getExtensions()); }
|| capabilities.getAclCapability() == CapabilityAcl.MANAGE); if (object.getBaseTypeId() == BaseTypeId.CMIS_FOLDER) { info.setSupportsDescendants(Boolean.TRUE.equals(capabilities.isGetDescendantsSupported())); info.setSupportsFolderTree(Boolean.TRUE.equals(capabilities.isGetFolderTreeSupported()));
public RepositoryCapabilitiesImpl(RepositoryCapabilities data) { allVersionsSearchable = data.isAllVersionsSearchableSupported(); capabilityAcl = data.getAclCapability(); capabilityChanges = data.getChangesCapability(); capabilityContentStreamUpdates = data.getContentStreamUpdatesCapability(); capabilityJoin = data.getJoinCapability(); capabilityQuery = data.getQueryCapability(); capabilityRendition = data.getRenditionsCapability(); isPwcSearchable = data.isPwcSearchableSupported(); isPwcUpdatable = data.isPwcUpdatableSupported(); supportsGetDescendants = data.isGetDescendantsSupported(); supportsGetFolderTree = data.isGetFolderTreeSupported(); capabilityOrderBy = data.getOrderByCapability(); supportsMultifiling = data.isMultifilingSupported(); supportsUnfiling = data.isUnfilingSupported(); supportsVersionSpecificFiling = data.isVersionSpecificFilingSupported(); creatablePropertyTypes = data.getCreatablePropertyTypes(); newTypeSettableAttributes = data.getNewTypeSettableAttributes(); setExtensions(data.getExtensions()); }
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_CONTENT_STREAM_UPDATABILITY, source.getContentStreamUpdatesCapability()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_GET_DESCENDANTS, source.isGetDescendantsSupported()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_GET_FOLDER_TREE, source.isGetFolderTreeSupported()); if (cmisVersion != CmisVersion.CMIS_1_0) {
if (cap.isGetDescendantsSupported() != null) { supportsRootDescendants = cap.isGetDescendantsSupported();
success = createResult(OK, "Get descendants capability: " + cap.isGetDescendantsSupported()); failure = createResult(FAILURE, "Get descendants capability is not set!"); addResult(assertNotNull(cap.isGetDescendantsSupported(), success, failure));
result.setCapabilityContentStreamUpdatability(convert(EnumCapabilityContentStreamUpdates.class, capabilities.getContentStreamUpdatesCapability())); result.setCapabilityGetDescendants(capabilities.isGetDescendantsSupported()); result.setCapabilityGetFolderTree(capabilities.isGetFolderTreeSupported()); if (cmisVersion != CmisVersion.CMIS_1_0) {
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_CONTENT_STREAM_UPDATABILITY, source.getContentStreamUpdatesCapability()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_GET_DESCENDANTS, source.isGetDescendantsSupported()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_GET_FOLDER_TREE, source.isGetFolderTreeSupported()); if (cmisVersion != CmisVersion.CMIS_1_0) {
result.put(JSON_CAP_CHANGES, getJSONEnumValue(capabilities.getChangesCapability())); result.put(JSON_CAP_RENDITIONS, getJSONEnumValue(capabilities.getRenditionsCapability())); result.put(JSON_CAP_GET_DESCENDANTS, capabilities.isGetDescendantsSupported()); result.put(JSON_CAP_GET_FOLDER_TREE, capabilities.isGetFolderTreeSupported()); result.put(JSON_CAP_MULTIFILING, capabilities.isMultifilingSupported());
result.put(JSON_CAP_CHANGES, getJSONEnumValue(capabilities.getChangesCapability())); result.put(JSON_CAP_RENDITIONS, getJSONEnumValue(capabilities.getRenditionsCapability())); result.put(JSON_CAP_GET_DESCENDANTS, capabilities.isGetDescendantsSupported()); result.put(JSON_CAP_GET_FOLDER_TREE, capabilities.isGetFolderTreeSupported()); result.put(JSON_CAP_MULTIFILING, capabilities.isMultifilingSupported());