1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.model.impl;
24  
25  import com.liferay.portal.kernel.util.GetterUtil;
26  import com.liferay.portal.model.Account;
27  import com.liferay.portal.model.Contact;
28  import com.liferay.portal.model.ListType;
29  import com.liferay.portal.model.Organization;
30  import com.liferay.portal.util.PropsKeys;
31  import com.liferay.portal.util.PropsUtil;
32  
33  /**
34   * <a href="ListTypeImpl.java.html"><b><i>View Source</i></b></a>
35   *
36   * @author Brian Wing Shun Chan
37   */
38  public class ListTypeImpl extends ListTypeModelImpl implements ListType {
39  
40      // Common
41  
42      public static final String ADDRESS = ".address";
43  
44      public static final String EMAIL_ADDRESS = ".emailAddress";
45  
46      public static final String PHONE = ".phone";
47  
48      public static final String WEBSITE = ".website";
49  
50      // Account
51  
52      public static final String ACCOUNT_ADDRESS =
53          Account.class.getName() + ADDRESS;
54  
55      public static final int ACCOUNT_ADDRESS_DEFAULT =
56          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
57              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_ADDRESS));
58  
59      public static final String ACCOUNT_EMAIL_ADDRESS =
60          Account.class.getName() + EMAIL_ADDRESS;
61  
62      public static final int ACCOUNT_EMAIL_ADDRESS_DEFAULT =
63          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
64              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ACCOUNT_EMAIL_ADDRESS));
65  
66      public static final String ACCOUNT_PHONE =
67          Account.class.getName() + PHONE;
68  
69      public static final String ACCOUNT_WEBSITE =
70          Account.class.getName() + WEBSITE;
71  
72      // Contact
73  
74      public static final String CONTACT_ADDRESS =
75          Contact.class.getName() + ADDRESS;
76  
77      public static final String CONTACT_EMAIL_ADDRESS =
78          Contact.class.getName() + EMAIL_ADDRESS;
79  
80      public static final int CONTACT_EMAIL_ADDRESS_DEFAULT =
81          GetterUtil.getInteger(PropsUtil.get(PropsKeys.
82              SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_CONTACT_EMAIL_ADDRESS));
83  
84      public static final String CONTACT_PHONE =
85          Contact.class.getName() + PHONE;
86  
87      public static final String CONTACT_PREFIX =
88          Contact.class.getName() + ".prefix";
89  
90      public static final String CONTACT_SUFFIX =
91          Contact.class.getName() + ".suffix";
92  
93      public static final String CONTACT_WEBSITE =
94          Contact.class.getName() + WEBSITE;
95  
96      // Organization
97  
98      public static final String ORGANIZATION_ADDRESS =
99          Organization.class.getName() + ADDRESS;
100 
101     public static final String ORGANIZATION_EMAIL_ADDRESS =
102         Organization.class.getName() + EMAIL_ADDRESS;
103 
104     public static final String ORGANIZATION_PHONE =
105         Organization.class.getName() + PHONE;
106 
107     public static final String ORGANIZATION_SERVICE =
108         Organization.class.getName() + ".service";
109 
110     public static final String ORGANIZATION_STATUS =
111         Organization.class.getName() + ".status";
112 
113     public static final int ORGANIZATION_STATUS_DEFAULT =
114         GetterUtil.getInteger(PropsUtil.get(PropsKeys.
115             SQL_DATA_COM_LIFERAY_PORTAL_MODEL_LISTTYPE_ORGANIZATION_STATUS));
116 
117     public static final String ORGANIZATION_WEBSITE =
118         Organization.class.getName() + WEBSITE;
119 
120     public ListTypeImpl() {
121     }
122 
123 }