Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package base.jee;
 import java.util.UUID;

A collection of global static final variables.
public class Constants {
	public static final int SESSION_TOKEN_LENGTH = 36;
	public static final int MAX_USERNAME_LENGTH = 100;
	public static final int MAX_PASSWORD_LENGTH = 256;
	public static final int MIN_PASSWORD_LENGTH = 6;
	public static final int MAX_FIRST_NAME_LENGTH = 100;
	public static final int MAX_LAST_NAME_LENGTH = 100;
	public static final int MAX_EMAIL_LENGTH = 250;
	public static final int MAX_PERSON_INITIAL_ROLES_LENGTH = 1000;
	public static final int MAX_GROUP_NAME_LENGTH = 100;
	public static final int MAX_ROLE_NAME_LENGTH = 100;
	public static final int MAX_ROLE_RESOURCE_LENGTH = 100;
	public static final int MAX_ROLE_RESOURCE_UID_LENGTH = 100;
	public static final int MAX_TOKEN_LENGTH = 100;
	public static final int MAX_IP_ADDRESS_LENGTH = 45;
	public static final String GROUP_MANAGE_ROLE = "GroupManage";
	public static final String PERSON_MANAGE_ROLE = "PersonManage";
	public static final String AUDIT_ROLE = "Audit";
	public static final String SETTING_MANAGE_ROLE = "SettingManage";
	public static final String TEMPLATE_MANAGE_ROLE = "TemplateManage";
	public static final String DATE_FORMAT_STRING = "dd/MM/yyyy hh:mma";
	public static final DateFormat DATE_FORMAT = new SimpleDateFormat();
	public static final UUID ALL_USERS_GROUP = new UUID(0xb0, 10);
	public static final UUID AUTHENTICATED_USERS_GROUP = new UUID(0xb0, 20);
New to GrepCode? Check out our FAQ X