View Javadoc
1   package org.argeo.connect;
2   
3   /** Centralize cross-apps constants */
4   public interface ConnectConstants {
5   	// Workaround the JCR deprecation of javax.jcr.query.Query.XPATH
6   	String QUERY_XPATH = "xpath";
7   	String HOME_APP_SYS_RELPARPATH = ".local/argeo:sys";
8   
9   	// We use a key that look like a node type without declaring it for some
10  	// concepts
11  	String RESOURCE_TAG = "connect:tag";
12  	String RESOURCE_COUNTRY = "connect:country";
13  	String RESOURCE_LANG = "connect:language";
14  
15  	// System properties known by the system
16  	String SYS_PROP_ID_PREVENT_TAG_ADDITION = "org.argeo.connect.resources.preventTagAddition";
17  	
18  	// Various
19  	String EMAIL_PATTERN = "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
20  	String USERNAME_PATTERN = "^[a-zA-Z]+[.a-zA-Z0-9_-]{2,31}$";
21  	// Default English date and numbers formats
22  	String DEFAULT_SHORT_DATE_FORMAT = "dd/MM/yyyy";
23  	String DEFAULT_DATE_FORMAT = "MMM dd, yyyy";
24  	String DEFAULT_DATE_TIME_FORMAT = "MMM dd, yyyy 'at' HH:mm";
25  	String DEFAULT_NUMBER_FORMAT = "#,##0.0";
26  }