/**
* Sets the field specified by the given field name with the given value of the given type. <br>
* Can only be set and saved if extension field is registered in the database
*
* @param fieldName
* the field name
* @param value
* the new value
* @param type
* the scim2 type of the field
* @return the builder itself
*/
@JsonAnySetter
public <T> Builder setField(String fieldName, T value, ExtensionFieldType<T> type, boolean isMultiValued) {
if (fieldName == null || fieldName.isEmpty()) {
throw new IllegalArgumentException("The field name can't be null or empty.");
}
if (value == null) {
throw new IllegalArgumentException("The value can't be null.");
}
if (type == null) {
throw new IllegalArgumentException("The type can't be null.");
}
fields.put(fieldName, new Field(type, type.toString(value), isMultiValued));
return this;
}
Extension.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:gluu
作者:
评论列表
文章目录