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()); }
writer.writeEndElement(); if (source.getNewTypeSettableAttributes() != null) { NewTypeSettableAttributes newTypeSettableAttributes = source.getNewTypeSettableAttributes();
.getNewTypeSettableAttributes(); if (settableAttributes == null) { addResult(createResult(WARNING, "Capability NewTypeSettableAttributes is not set!"));
/** * Creates a new type. */ protected ObjectType createType(Session session, TypeDefinition typeDef) { NewTypeSettableAttributes settableAttributes = session.getRepositoryInfo().getCapabilities() .getNewTypeSettableAttributes(); if (settableAttributes == null) { addResult(createResult(WARNING, "Repository Info does not indicate, which type attributes can be set!")); } else { // TODO: add more tests } ObjectType newType = null; try { newType = session.createType(typeDef); addResult(createInfoResult("Created type '" + typeDef.getId() + "'. Repository assigned the following type ID: " + newType.getId())); } catch (CmisBaseException e) { addResult(createResult(FAILURE, "Creating type '" + typeDef.getId() + "' failed: " + e.getMessage(), e, false)); return null; } addResult(checkTypeDefinition(session, newType, "Newly created type spec compliance.")); if (newType.getTypeMutability() == null) { addResult(createResult(FAILURE, "Newly created type does not provide type mutability data! ID: " + newType.getId())); } return newType; }
if (capabilities.getNewTypeSettableAttributes() != null) { NewTypeSettableAttributes newTypeSettableAttributes = capabilities.getNewTypeSettableAttributes();
writer.endTag(NAMESPACE_CMIS, TAG_CAP_CREATABLE_PROPERTY_TYPES); if (source.getNewTypeSettableAttributes() != null) { NewTypeSettableAttributes newTypeSettableAttributes = source.getNewTypeSettableAttributes();
if (capabilities.getNewTypeSettableAttributes() != null) { NewTypeSettableAttributes newTypeSettableAttributes = capabilities.getNewTypeSettableAttributes();
if (capabilities.getNewTypeSettableAttributes() != null) { NewTypeSettableAttributes newTypeSettableAttributes = capabilities.getNewTypeSettableAttributes();
addResult(assertNotNull(cap.getNewTypeSettableAttributes(), success, failure));