01: /******************************************************************************
02: * JBoss, a division of Red Hat *
03: * Copyright 2006, Red Hat Middleware, LLC, and individual *
04: * contributors as indicated by the @authors tag. See the *
05: * copyright.txt in the distribution for a full listing of *
06: * individual contributors. *
07: * *
08: * This is free software; you can redistribute it and/or modify it *
09: * under the terms of the GNU Lesser General Public License as *
10: * published by the Free Software Foundation; either version 2.1 of *
11: * the License, or (at your option) any later version. *
12: * *
13: * This software is distributed in the hope that it will be useful, *
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16: * Lesser General Public License for more details. *
17: * *
18: * You should have received a copy of the GNU Lesser General Public *
19: * License along with this software; if not, write to the Free *
20: * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA *
21: * 02110-1301 USA, or see the FSF site: http://www.fsf.org. *
22: ******************************************************************************/package org.jboss.portal.core.identity.services;
23:
24: /**
25: * @author <a href="mailto:emuckenh@redhat.com">Emanuel Muckenhuber</a>
26: * @version $Revision$
27: */
28: public class IdentityConstants {
29: /** The command factory url */
30: public static final String VALIDATE_EMAIL = "validateEmail";
31:
32: /** Salt */
33: public static final String HASH_SALT = "fuDrupRunEP2BRuspADr";
34:
35: /** Automatic subscription mode */
36: public static final String SUBSCRIPTION_MODE_AUTOMATIC = "automatic";
37:
38: /** jBPM validate email process */
39: public final static String jbp_identity_validate_email_process_name = "jbp_identity_validate_email";
40:
41: /** jBPM nodes */
42: public final static String JBPM_NODE_EMAIL_VALIDATION = "validate_email";
43: public final static String JBPM_NODE_APPROVAL = "admin_approval";
44: public final static String JBPM_TRANSITION_VALIDATED = "validated";
45: public final static String JBPM_TRANSITION_REJECTED = "rejected";
46: public final static String JBPM_TRANSITION_APPROVED = "approved";
47:
48: /** Static predefined component values */
49: public static final String COMPONENT_VALUE_LOCALE = "org.jboss.portal.core.identity.locale";
50: public static final String COMPONENT_VALUE_THEME = "org.jboss.portal.core.identity.theme";
51: public static final String COMPONENT_VALUE_TIMEZONE = "org.jboss.portal.core.identity.timezone";
52:
53: /** Available actions */
54: public static final String ACTION = "action";
55: public static final String ACTION_REGISTER_USER = "register";
56: public static final String ACTION_CHANGE_EMAIL = "changeEmail";
57: public static final String ACTION_LOST_PASSWORD = "lostPassword";
58:
59: /** Registration and validation status */
60: public static final String REGISTRATION_REGISTERED = "registered";
61: public static final String REGISTRATION_PENDING = "registration_pending";
62: public static final String VALIDATION_FAILED = "validation_failed";
63: public static final String VALIDATION_VALIDATED = "validated";
64: public static final String VALIDATION_ERROR = "validation_error";
65:
66: /** jBPM process variables */
67: public static final String PORTAL_URL = "portalURL";
68: public static final String VALIDATION_HASH = "validationHash";
69: public static final String VARIABLE_LOCALE = "locale";
70: public static final String VARIABLE_EMAIL = "email";
71: public static final String VARIABLE_USER = "user";
72:
73: /** Email constants */
74: public static final String EMAIL_TO = "to";
75: public static final String EMAIL_FROM = "from";
76: public static final String EMAIL_DOMAIN = "emailDomain";
77: public static final String EMAIL_TEXT = "emailText";
78:
79: /** Default language */
80: public static final String DEFAULT_LOCALE = "en";
81:
82: /** Default role */
83: public static final String DEFAULT_ROLE = "User";
84:
85: /** Bundle prefix for dynamic value localization */
86: public static final String DYNAMIC_VALUE_PREFIX = "IDENTITY_DYNAMIC_VALUE_";
87:
88: }
|