Class CreateForm
java.lang.Object
org.codelibs.fess.app.web.admin.accesstoken.CreateForm
- Direct Known Subclasses:
CreateBody,EditForm
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
FieldsModifier and TypeFieldDescription@Size(max=1000) StringThe 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]") StringThe expiration date and time for the access token.@Required @Size(max=1000) StringThe name of the access token.@Size(max=10000) StringThe parameter name for the access token.The permissions associated with this access token.@Size(max=10000) StringThe actual access token string. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the form with default values for creation.
-
Field Details
-
crudMode
The CRUD operation mode for this form. Indicates whether this is a create, read, update, or delete operation. -
name
The name of the access token. This is a required field with a maximum length of 1000 characters. -
token
The actual access token string. This is the token value that will be used for authentication. Maximum length is 10000 characters. -
permissions
The permissions associated with this access token. Defines what operations and resources this token can access. -
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 expiresThe expiration date and time for the access token. Must be in ISO 8601 format: YYYY-MM-DDTHH:MM:SS -
createdBy
The username of the user who created this access token. Maximum length is 1000 characters. -
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.
-