java.lang.Object
org.codelibs.fess.app.web.admin.accesstoken.CreateForm
Direct Known Subclasses:
CreateBody, EditForm

public class CreateForm extends Object
Form class for creating access tokens in the admin interface. This form handles the creation of API access tokens with configurable permissions and expiration dates.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    @Size(max=1000) String
    The username of the user who created this access token.
    The timestamp when this access token was created.
    The CRUD operation mode for this form.
    @Pattern(regexp="[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]") String
    The expiration date and time for the access token.
    @Required @Size(max=1000) String
    The name of the access token.
    @Size(max=10000) String
    The parameter name for the access token.
    The permissions associated with this access token.
    @Size(max=10000) String
    The actual access token string.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new CreateForm instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Initializes the form with default values for creation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • crudMode

      @ValidateTypeFailure public Integer crudMode
      The CRUD operation mode for this form. Indicates whether this is a create, read, update, or delete operation.
    • name

      @Required @Size(max=1000) public @Required @Size(max=1000) String name
      The name of the access token. This is a required field with a maximum length of 1000 characters.
    • token

      @Size(max=10000) public @Size(max=10000) String token
      The actual access token string. This is the token value that will be used for authentication. Maximum length is 10000 characters.
    • permissions

      @CustomSize(maxKey="form.admin.max.input.size") public String permissions
      The permissions associated with this access token. Defines what operations and resources this token can access.
    • parameterName

      @Size(max=10000) public @Size(max=10000) String parameterName
      The parameter name for the access token. This field specifies how the token should be passed in API requests. Maximum length is 10000 characters.
    • expires

      @Pattern(regexp="[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]") public @Pattern(regexp="[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]") String expires
      The expiration date and time for the access token. Must be in ISO 8601 format: YYYY-MM-DDTHH:MM:SS
    • createdBy

      @Size(max=1000) public @Size(max=1000) String createdBy
      The username of the user who created this access token. Maximum length is 1000 characters.
    • createdTime

      @ValidateTypeFailure public Long createdTime
      The timestamp when this access token was created. Stored as a long value representing milliseconds since epoch.
  • Constructor Details

    • CreateForm

      public CreateForm()
      Creates a new CreateForm instance.
  • Method Details

    • initialize

      public void initialize()
      Initializes the form with default values for creation. Sets the CRUD mode to CREATE and populates created by and created time fields with current user and timestamp information.