private void createTypeWithProperties(Session session, ObjectType parentType) { CmisTestResult failure = null; CreatablePropertyTypes cpt = session.getRepositoryInfo().getCapabilities().getCreatablePropertyTypes(); if (cpt == null || cpt.canCreate() == null || cpt.canCreate().isEmpty()) { addResult(createResult(FAILURE, "Repository Info does not indicate, which property types can be created!"));
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()); }
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_JOIN, source.getJoinCapability()); if (cmisVersion != CmisVersion.CMIS_1_0) { if (source.getCreatablePropertyTypes() != null) { CreatablePropertyTypes creatablePropertyTypes = source.getCreatablePropertyTypes();
if (capabilities.getCreatablePropertyTypes() != null) { CreatablePropertyTypes creatablePropertyTypes = capabilities.getCreatablePropertyTypes();
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_JOIN, source.getJoinCapability()); if (cmisVersion != CmisVersion.CMIS_1_0) { if (source.getCreatablePropertyTypes() != null) { CreatablePropertyTypes creatablePropertyTypes = source.getCreatablePropertyTypes();
result.put(JSON_CAP_ACL, getJSONEnumValue(capabilities.getAclCapability())); if (capabilities.getCreatablePropertyTypes() != null) { CreatablePropertyTypes creatablePropertyTypes = capabilities.getCreatablePropertyTypes();
result.put(JSON_CAP_ACL, getJSONEnumValue(capabilities.getAclCapability())); if (capabilities.getCreatablePropertyTypes() != null) { CreatablePropertyTypes creatablePropertyTypes = capabilities.getCreatablePropertyTypes();
addResult(assertNotNull(cap.getCreatablePropertyTypes(), success, failure));