use of org.apache.chemistry.opencmis.commons.definitions.MutableDocumentTypeDefinition in project structr by structr.
the class CMISRepositoryService method getDocumentTypeDefinition.
private MutableDocumentTypeDefinition getDocumentTypeDefinition(final String typeId, final boolean includePropertyDefinitions, final boolean baseType) {
final TypeDefinitionFactory factory = TypeDefinitionFactory.newInstance();
final MutableDocumentTypeDefinition def = factory.createDocumentTypeDefinition(CmisVersion.CMIS_1_1, baseType ? null : BaseTypeId.CMIS_DOCUMENT.value());
// content is required for Structr documents
def.setContentStreamAllowed(ContentStreamAllowed.REQUIRED);
initializeExtendedType(def, typeId);
if (!includePropertyDefinitions) {
def.removeAllPropertyDefinitions();
}
return def;
}
Aggregations