if (settableAttributes == null || Boolean.TRUE.equals(settableAttributes.canSetDisplayName())) { result.setDisplayName("TCK Document Type"); } else if (settableAttributes != null) { failure = createResult(WARNING, "Flag 'displayName' in capability NewTypeSettableAttributes is not set!"); addResult(assertNotNull(settableAttributes.canSetDisplayName(), null, failure));
newTypeSettableAttributes.canSetLocalNamespace()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME, newTypeSettableAttributes.canSetDisplayName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName());
target.setLocalNamespace(newTypeSettableAttributes.canSetLocalNamespace() == null ? true : newTypeSettableAttributes.canSetLocalNamespace()); target.setDisplayName(newTypeSettableAttributes.canSetDisplayName() == null ? true : newTypeSettableAttributes.canSetDisplayName()); target.setQueryName(newTypeSettableAttributes.canSetQueryName() == null ? true : newTypeSettableAttributes.canSetQueryName());
newTypeSettableAttributes.canSetLocalNamespace()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME, newTypeSettableAttributes.canSetDisplayName()); XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName());
newTypeSettableAttributes.canSetLocalNamespace()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME, newTypeSettableAttributes.canSetDisplayName()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName());
newTypeSettableAttributes.canSetLocalNamespace()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_DISPLAYNAME, newTypeSettableAttributes.canSetDisplayName()); newTypeSettableAttributesJson.put(JSON_CAP_NEW_TYPE_SETTABLE_ATTRIBUTES_QUERYNAME, newTypeSettableAttributes.canSetQueryName());