throw new CmisConstraintException("acl set for type: " + typeDef.getDisplayName() + " that is not controllableACL");
}
}
public static void validateContentAllowed(DocumentTypeDefinition typeDef, boolean hasContent) {
ContentStreamAllowed contentAllowed = typeDef.getContentStreamAllowed();
if (ContentStreamAllowed.REQUIRED == contentAllowed && !hasContent) {
throw new CmisConstraintException("Type " + typeDef.getId() + " requires content but document has no content.");
} else if (ContentStreamAllowed.NOTALLOWED == contentAllowed && hasContent) {
throw new CmisConstraintException("Type " + typeDef.getId() + " does not allow content but document has content.");
}