All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apereo.cas.acct.AccountRegistrationProperty Maven / Gradle / Ivy

There is a newer version: 7.2.0-RC3
Show newest version
package org.apereo.cas.acct;

import com.fasterxml.jackson.annotation.JsonTypeInfo;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * This is {@link AccountRegistrationProperty}.
 *
 * @author Misagh Moayyed
 * @since 6.5.0
 */
@Getter
@Setter
@JsonTypeInfo(use = JsonTypeInfo.Id.CLASS)
@SuperBuilder
@NoArgsConstructor
public class AccountRegistrationProperty implements Serializable {
    @Serial
    private static final long serialVersionUID = -7637969227639901358L;

    private int order;

    private String name;

    @Builder.Default
    private String type = "text";

    @Builder.Default
    private String pattern = ".+";

    private boolean required;

    private String label;

    @Builder.Default
    private String cssClass = "account-registration-field";

    private String title;

    @Builder.Default
    private String validationMessage = "cas.screen.acct.error.invalid-value";

    @Builder.Default
    private List values = new ArrayList<>();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy