XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_TYPE_CONTENTSTREAM_ALLOWED,
docDef.getContentStreamAllowed());
}
if (source instanceof RelationshipTypeDefinition) {
RelationshipTypeDefinition relDef = (RelationshipTypeDefinition) source;
if (relDef.getAllowedSourceTypeIds() != null) {
for (String id : relDef.getAllowedSourceTypeIds()) {
if (id != null) {
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_TYPE_ALLOWED_SOURCE_TYPES, id);
}
}
}
if (relDef.getAllowedTargetTypeIds() != null) {
for (String id : relDef.getAllowedTargetTypeIds()) {
if (id != null) {
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_TYPE_ALLOWED_TARGET_TYPES, id);
}
}
}