1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions 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.PropsUtil;
31  
32  /**
33   * <a href="ListTypeImpl.java.html"><b><i>View Source</i></b></a>
34   *
35   * @author Brian Wing Shun Chan
36   *
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(PropsUtil.
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(PropsUtil.
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(PropsUtil.
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(PropsUtil.
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 }