org.teamapps.dto.UiPasswordField Maven / Gradle / Ivy
package org.teamapps.dto;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.function.Supplier;
import java.util.stream.Collectors;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver;
/**
* THIS IS GENERATED CODE!
* PLEASE DO NOT MODIFY - ALL YOUR WORK WOULD BE LOST!
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.CUSTOM, property = "_type")
@JsonTypeIdResolver(TeamAppsJacksonTypeIdResolver.class)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UiPasswordField extends UiTextField implements UiObject {
protected boolean sendValueAsMd5;
protected String salt;
public UiPasswordField() {
super();
}
@com.fasterxml.jackson.annotation.JsonIgnore
public UiObjectType getUiObjectType() {
return UiObjectType.UI_PASSWORD_FIELD;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("id=" + id).append(", ")
.append("visible=" + visible).append(", ")
.append("stylesBySelector=" + stylesBySelector).append(", ")
.append("editingMode=" + editingMode).append(", ")
.append("value=" + value).append(", ")
.append("maxCharacters=" + maxCharacters).append(", ")
.append("showClearButton=" + showClearButton).append(", ")
.append("emptyText=" + emptyText).append(", ")
.append("sendValueAsMd5=" + sendValueAsMd5).append(", ")
.append("salt=" + salt).append(", ")
.append(fieldMessages != null ? "fieldMessages={" + fieldMessages.toString() + "}" : "")
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("sendValueAsMd5")
public boolean getSendValueAsMd5() {
return sendValueAsMd5;
}
@com.fasterxml.jackson.annotation.JsonGetter("salt")
public String getSalt() {
return salt;
}
@com.fasterxml.jackson.annotation.JsonSetter("id")
public UiPasswordField setId(String id) {
this.id = id;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("visible")
public UiPasswordField setVisible(boolean visible) {
this.visible = visible;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("stylesBySelector")
public UiPasswordField setStylesBySelector(Map> stylesBySelector) {
this.stylesBySelector = stylesBySelector;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("editingMode")
public UiPasswordField setEditingMode(UiFieldEditingMode editingMode) {
this.editingMode = editingMode;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("value")
public UiPasswordField setValue(Object value) {
this.value = value;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("fieldMessages")
public UiPasswordField setFieldMessages(List fieldMessages) {
this.fieldMessages = fieldMessages;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("maxCharacters")
public UiPasswordField setMaxCharacters(int maxCharacters) {
this.maxCharacters = maxCharacters;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("showClearButton")
public UiPasswordField setShowClearButton(boolean showClearButton) {
this.showClearButton = showClearButton;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("emptyText")
public UiPasswordField setEmptyText(String emptyText) {
this.emptyText = emptyText;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("sendValueAsMd5")
public UiPasswordField setSendValueAsMd5(boolean sendValueAsMd5) {
this.sendValueAsMd5 = sendValueAsMd5;
return this;
}
@com.fasterxml.jackson.annotation.JsonSetter("salt")
public UiPasswordField setSalt(String salt) {
this.salt = salt;
return this;
}
public static class SetSendValueAsMd5Command implements UiCommand {
@UiComponentId protected String componentId;
protected boolean sendValueAsMd5;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetSendValueAsMd5Command() {
// default constructor for Jackson
}
public SetSendValueAsMd5Command(String componentId, boolean sendValueAsMd5) {
this.componentId = componentId;
this.sendValueAsMd5 = sendValueAsMd5;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("sendValueAsMd5=" + sendValueAsMd5)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("sendValueAsMd5")
public boolean getSendValueAsMd5() {
return sendValueAsMd5;
}
}
public static class SetSaltCommand implements UiCommand {
@UiComponentId protected String componentId;
protected String salt;
/**
* @deprecated Only for Jackson deserialization. Use the other constructor instead.
*/
@Deprecated
public SetSaltCommand() {
// default constructor for Jackson
}
public SetSaltCommand(String componentId, String salt) {
this.componentId = componentId;
this.salt = salt;
}
@SuppressWarnings("unchecked")
public String toString() {
return new StringBuilder(getClass().getSimpleName()).append(": ")
.append("componentId=" + componentId).append(", ")
.append("salt=" + salt)
.toString();
}
@com.fasterxml.jackson.annotation.JsonGetter("componentId")
public String getComponentId() {
return componentId;
}
@com.fasterxml.jackson.annotation.JsonGetter("salt")
public String getSalt() {
return salt;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy