2 /*********************************************************************************
3 * SugarCRM Community Edition is a customer relationship management program developed by
4 * SugarCRM, Inc. Copyright (C) 2004-2011 SugarCRM Inc.
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU Affero General Public License version 3 as published by the
8 * Free Software Foundation with the addition of the following permission added
9 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK
10 * IN WHICH THE COPYRIGHT IS OWNED BY SUGARCRM, SUGARCRM DISCLAIMS THE WARRANTY
11 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS.
13 * This program is distributed in the hope that it will be useful, but WITHOUT
14 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
18 * You should have received a copy of the GNU Affero General Public License along with
19 * this program; if not, see http://www.gnu.org/licenses or write to the Free
20 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
23 * You can contact SugarCRM, Inc. headquarters at 10050 North Wolfe Road,
24 * SW2-130, Cupertino, CA 95014, USA. or at email address contact@sugarcrm.com.
26 * The interactive user interfaces in modified source and object code versions
27 * of this program must display Appropriate Legal Notices, as required under
28 * Section 5 of the GNU Affero General Public License version 3.
30 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
31 * these Appropriate Legal Notices must retain the display of the "Powered by
32 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
33 * technical reasons, the Appropriate Legal Notices must display the words
34 * "Powered by SugarCRM".
35 ********************************************************************************/
37 $dictionary['EAPM'] = array(
45 'vname' => 'LBL_PASSWORD',
47 'dbtype' => 'varchar',
51 'importable' => 'true',
52 'duplicate_merge' => 'disabled',
53 'duplicate_merge_dom_value' => '0',
55 'reportable' => false,
68 'importable' => 'true',
69 'duplicate_merge' => 'disabled',
70 'duplicate_merge_dom_value' => '0',
79 'name' => 'application',
80 'vname' => 'LBL_APPLICATION',
85 'importable' => 'true',
86 'duplicate_merge' => 'disabled',
87 'duplicate_merge_dom_value' => '0',
92 'function' => 'getEAPMExternalApiDropDown',
93 'studio' => 'visible',
99 'vname' => 'LBL_NAME',
101 'dbType' => 'varchar',
103 'unified_search' => true,
104 // 'required' => true,
105 'importable' => 'required',
109 'duplicate_merge' => 'disabled',
110 'duplicate_merge_dom_value' => '0',
112 'reportable' => true,
117 'name' => 'api_data',
118 'vname' => 'LBL_API_DATA',
120 'comment' => 'Any API data that the external API may wish to store on a per-user basis',
124 'consumer_key' => array(
125 'name' => 'consumer_key',
127 'vname' => 'LBL_API_CONSKEY',
128 // 'required' => true,
129 'importable' => 'required',
132 'reportable' => false,
133 'studio' => 'hidden',
135 'consumer_secret' => array(
136 'name' => 'consumer_secret',
138 'vname' => 'LBL_API_CONSSECRET',
139 // 'required' => true,
140 'importable' => 'required',
143 'reportable' => false,
144 'studio' => 'hidden',
146 'oauth_token' => array(
147 'name' => 'oauth_token',
149 'vname' => 'LBL_API_OAUTHTOKEN',
150 'importable' => false,
153 'reportable' => false,
155 'dbtype' => 'varchar',
156 'studio' => 'hidden',
158 'oauth_secret' => array(
159 'name' => 'oauth_secret',
161 'vname' => 'LBL_API_OAUTHSECRET',
162 'importable' => false,
165 'reportable' => false,
167 'dbtype' => 'varchar',
168 'studio' => 'hidden',
170 'validated' => array(
172 'name' => 'validated',
173 'vname' => 'LBL_VALIDATED',
179 'vname' => 'LBL_NOTE',
181 'reportable' => false,
182 'importable' => false,
183 'massupdate' => false,
184 'studio' => 'hidden',
186 'source' => 'non-db',
190 'relationships'=>array (
194 'name' => 'idx_app_active',
196 'fields'=> array('assigned_user_id', 'application', 'validated'),
199 'optimistic_locking'=>true,
201 if (!class_exists('VardefManager')){
202 require_once('include/SugarObjects/VardefManager.php');
204 VardefManager::createVardef('EAPM','EAPM', array('basic','assignable'));