protected boolean isGetFolderTreeSupported(Session session) { RepositoryCapabilities cap = session.getRepositoryInfo().getCapabilities(); if (cap == null) { return false; } if (cap.isGetFolderTreeSupported() == null) { return false; } return cap.isGetFolderTreeSupported().booleanValue(); }
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()); }
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()); }
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) { XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_ORDER_BY, source.getOrderByCapability());
if (cap.isGetFolderTreeSupported() != null) { supportsFolderTree = cap.isGetFolderTreeSupported();
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));
capabilities.getContentStreamUpdatesCapability())); result.setCapabilityGetDescendants(capabilities.isGetDescendantsSupported()); result.setCapabilityGetFolderTree(capabilities.isGetFolderTreeSupported()); if (cmisVersion != CmisVersion.CMIS_1_0) { result.setCapabilityOrderBy(convert(EnumCapabilityOrderBy.class, capabilities.getOrderByCapability()));
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) { XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_ORDER_BY, source.getOrderByCapability());
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_UNFILING, capabilities.isUnfilingSupported());
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_UNFILING, capabilities.isUnfilingSupported());