PageRenderTime 49ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/apps/foundation/mobile-device-rules/mobile-device-rules-api/src/main/java/com/liferay/mobile/device/rules/model/MDRRuleGroupModel.java

http://github.com/liferay/liferay-portal
Java | 501 lines | 150 code | 80 blank | 271 comment | 0 complexity | 2344da0881da728503e510499194bdb4 MD5 | raw file
Possible License(s): LGPL-2.0
  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.mobile.device.rules.model;
  15. import aQute.bnd.annotation.ProviderType;
  16. import com.liferay.expando.kernel.model.ExpandoBridge;
  17. import com.liferay.portal.kernel.bean.AutoEscape;
  18. import com.liferay.portal.kernel.exception.LocaleException;
  19. import com.liferay.portal.kernel.model.BaseModel;
  20. import com.liferay.portal.kernel.model.CacheModel;
  21. import com.liferay.portal.kernel.model.LocalizedModel;
  22. import com.liferay.portal.kernel.model.ShardedModel;
  23. import com.liferay.portal.kernel.model.StagedGroupedModel;
  24. import com.liferay.portal.kernel.service.ServiceContext;
  25. import java.io.Serializable;
  26. import java.util.Date;
  27. import java.util.Locale;
  28. import java.util.Map;
  29. /**
  30. * The base model interface for the MDRRuleGroup service. Represents a row in the "MDRRuleGroup" database table, with each column mapped to a property of this class.
  31. *
  32. * <p>
  33. * This interface and its corresponding implementation {@link com.liferay.mobile.device.rules.model.impl.MDRRuleGroupModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.mobile.device.rules.model.impl.MDRRuleGroupImpl}.
  34. * </p>
  35. *
  36. * @author Edward C. Han
  37. * @see MDRRuleGroup
  38. * @see com.liferay.mobile.device.rules.model.impl.MDRRuleGroupImpl
  39. * @see com.liferay.mobile.device.rules.model.impl.MDRRuleGroupModelImpl
  40. * @generated
  41. */
  42. @ProviderType
  43. public interface MDRRuleGroupModel extends BaseModel<MDRRuleGroup>,
  44. LocalizedModel, ShardedModel, StagedGroupedModel {
  45. /*
  46. * NOTE FOR DEVELOPERS:
  47. *
  48. * Never modify or reference this interface directly. All methods that expect a m d r rule group model instance should use the {@link MDRRuleGroup} interface instead.
  49. */
  50. /**
  51. * Returns the primary key of this m d r rule group.
  52. *
  53. * @return the primary key of this m d r rule group
  54. */
  55. public long getPrimaryKey();
  56. /**
  57. * Sets the primary key of this m d r rule group.
  58. *
  59. * @param primaryKey the primary key of this m d r rule group
  60. */
  61. public void setPrimaryKey(long primaryKey);
  62. /**
  63. * Returns the uuid of this m d r rule group.
  64. *
  65. * @return the uuid of this m d r rule group
  66. */
  67. @AutoEscape
  68. @Override
  69. public String getUuid();
  70. /**
  71. * Sets the uuid of this m d r rule group.
  72. *
  73. * @param uuid the uuid of this m d r rule group
  74. */
  75. @Override
  76. public void setUuid(String uuid);
  77. /**
  78. * Returns the rule group ID of this m d r rule group.
  79. *
  80. * @return the rule group ID of this m d r rule group
  81. */
  82. public long getRuleGroupId();
  83. /**
  84. * Sets the rule group ID of this m d r rule group.
  85. *
  86. * @param ruleGroupId the rule group ID of this m d r rule group
  87. */
  88. public void setRuleGroupId(long ruleGroupId);
  89. /**
  90. * Returns the group ID of this m d r rule group.
  91. *
  92. * @return the group ID of this m d r rule group
  93. */
  94. @Override
  95. public long getGroupId();
  96. /**
  97. * Sets the group ID of this m d r rule group.
  98. *
  99. * @param groupId the group ID of this m d r rule group
  100. */
  101. @Override
  102. public void setGroupId(long groupId);
  103. /**
  104. * Returns the company ID of this m d r rule group.
  105. *
  106. * @return the company ID of this m d r rule group
  107. */
  108. @Override
  109. public long getCompanyId();
  110. /**
  111. * Sets the company ID of this m d r rule group.
  112. *
  113. * @param companyId the company ID of this m d r rule group
  114. */
  115. @Override
  116. public void setCompanyId(long companyId);
  117. /**
  118. * Returns the user ID of this m d r rule group.
  119. *
  120. * @return the user ID of this m d r rule group
  121. */
  122. @Override
  123. public long getUserId();
  124. /**
  125. * Sets the user ID of this m d r rule group.
  126. *
  127. * @param userId the user ID of this m d r rule group
  128. */
  129. @Override
  130. public void setUserId(long userId);
  131. /**
  132. * Returns the user uuid of this m d r rule group.
  133. *
  134. * @return the user uuid of this m d r rule group
  135. */
  136. @Override
  137. public String getUserUuid();
  138. /**
  139. * Sets the user uuid of this m d r rule group.
  140. *
  141. * @param userUuid the user uuid of this m d r rule group
  142. */
  143. @Override
  144. public void setUserUuid(String userUuid);
  145. /**
  146. * Returns the user name of this m d r rule group.
  147. *
  148. * @return the user name of this m d r rule group
  149. */
  150. @AutoEscape
  151. @Override
  152. public String getUserName();
  153. /**
  154. * Sets the user name of this m d r rule group.
  155. *
  156. * @param userName the user name of this m d r rule group
  157. */
  158. @Override
  159. public void setUserName(String userName);
  160. /**
  161. * Returns the create date of this m d r rule group.
  162. *
  163. * @return the create date of this m d r rule group
  164. */
  165. @Override
  166. public Date getCreateDate();
  167. /**
  168. * Sets the create date of this m d r rule group.
  169. *
  170. * @param createDate the create date of this m d r rule group
  171. */
  172. @Override
  173. public void setCreateDate(Date createDate);
  174. /**
  175. * Returns the modified date of this m d r rule group.
  176. *
  177. * @return the modified date of this m d r rule group
  178. */
  179. @Override
  180. public Date getModifiedDate();
  181. /**
  182. * Sets the modified date of this m d r rule group.
  183. *
  184. * @param modifiedDate the modified date of this m d r rule group
  185. */
  186. @Override
  187. public void setModifiedDate(Date modifiedDate);
  188. /**
  189. * Returns the name of this m d r rule group.
  190. *
  191. * @return the name of this m d r rule group
  192. */
  193. public String getName();
  194. /**
  195. * Returns the localized name of this m d r rule group in the language. Uses the default language if no localization exists for the requested language.
  196. *
  197. * @param locale the locale of the language
  198. * @return the localized name of this m d r rule group
  199. */
  200. @AutoEscape
  201. public String getName(Locale locale);
  202. /**
  203. * Returns the localized name of this m d r rule group in the language, optionally using the default language if no localization exists for the requested language.
  204. *
  205. * @param locale the local of the language
  206. * @param useDefault whether to use the default language if no localization exists for the requested language
  207. * @return the localized name of this m d r rule group. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
  208. */
  209. @AutoEscape
  210. public String getName(Locale locale, boolean useDefault);
  211. /**
  212. * Returns the localized name of this m d r rule group in the language. Uses the default language if no localization exists for the requested language.
  213. *
  214. * @param languageId the ID of the language
  215. * @return the localized name of this m d r rule group
  216. */
  217. @AutoEscape
  218. public String getName(String languageId);
  219. /**
  220. * Returns the localized name of this m d r rule group in the language, optionally using the default language if no localization exists for the requested language.
  221. *
  222. * @param languageId the ID of the language
  223. * @param useDefault whether to use the default language if no localization exists for the requested language
  224. * @return the localized name of this m d r rule group
  225. */
  226. @AutoEscape
  227. public String getName(String languageId, boolean useDefault);
  228. @AutoEscape
  229. public String getNameCurrentLanguageId();
  230. @AutoEscape
  231. public String getNameCurrentValue();
  232. /**
  233. * Returns a map of the locales and localized names of this m d r rule group.
  234. *
  235. * @return the locales and localized names of this m d r rule group
  236. */
  237. public Map<Locale, String> getNameMap();
  238. /**
  239. * Sets the name of this m d r rule group.
  240. *
  241. * @param name the name of this m d r rule group
  242. */
  243. public void setName(String name);
  244. /**
  245. * Sets the localized name of this m d r rule group in the language.
  246. *
  247. * @param name the localized name of this m d r rule group
  248. * @param locale the locale of the language
  249. */
  250. public void setName(String name, Locale locale);
  251. /**
  252. * Sets the localized name of this m d r rule group in the language, and sets the default locale.
  253. *
  254. * @param name the localized name of this m d r rule group
  255. * @param locale the locale of the language
  256. * @param defaultLocale the default locale
  257. */
  258. public void setName(String name, Locale locale, Locale defaultLocale);
  259. public void setNameCurrentLanguageId(String languageId);
  260. /**
  261. * Sets the localized names of this m d r rule group from the map of locales and localized names.
  262. *
  263. * @param nameMap the locales and localized names of this m d r rule group
  264. */
  265. public void setNameMap(Map<Locale, String> nameMap);
  266. /**
  267. * Sets the localized names of this m d r rule group from the map of locales and localized names, and sets the default locale.
  268. *
  269. * @param nameMap the locales and localized names of this m d r rule group
  270. * @param defaultLocale the default locale
  271. */
  272. public void setNameMap(Map<Locale, String> nameMap, Locale defaultLocale);
  273. /**
  274. * Returns the description of this m d r rule group.
  275. *
  276. * @return the description of this m d r rule group
  277. */
  278. public String getDescription();
  279. /**
  280. * Returns the localized description of this m d r rule group in the language. Uses the default language if no localization exists for the requested language.
  281. *
  282. * @param locale the locale of the language
  283. * @return the localized description of this m d r rule group
  284. */
  285. @AutoEscape
  286. public String getDescription(Locale locale);
  287. /**
  288. * Returns the localized description of this m d r rule group in the language, optionally using the default language if no localization exists for the requested language.
  289. *
  290. * @param locale the local of the language
  291. * @param useDefault whether to use the default language if no localization exists for the requested language
  292. * @return the localized description of this m d r rule group. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
  293. */
  294. @AutoEscape
  295. public String getDescription(Locale locale, boolean useDefault);
  296. /**
  297. * Returns the localized description of this m d r rule group in the language. Uses the default language if no localization exists for the requested language.
  298. *
  299. * @param languageId the ID of the language
  300. * @return the localized description of this m d r rule group
  301. */
  302. @AutoEscape
  303. public String getDescription(String languageId);
  304. /**
  305. * Returns the localized description of this m d r rule group in the language, optionally using the default language if no localization exists for the requested language.
  306. *
  307. * @param languageId the ID of the language
  308. * @param useDefault whether to use the default language if no localization exists for the requested language
  309. * @return the localized description of this m d r rule group
  310. */
  311. @AutoEscape
  312. public String getDescription(String languageId, boolean useDefault);
  313. @AutoEscape
  314. public String getDescriptionCurrentLanguageId();
  315. @AutoEscape
  316. public String getDescriptionCurrentValue();
  317. /**
  318. * Returns a map of the locales and localized descriptions of this m d r rule group.
  319. *
  320. * @return the locales and localized descriptions of this m d r rule group
  321. */
  322. public Map<Locale, String> getDescriptionMap();
  323. /**
  324. * Sets the description of this m d r rule group.
  325. *
  326. * @param description the description of this m d r rule group
  327. */
  328. public void setDescription(String description);
  329. /**
  330. * Sets the localized description of this m d r rule group in the language.
  331. *
  332. * @param description the localized description of this m d r rule group
  333. * @param locale the locale of the language
  334. */
  335. public void setDescription(String description, Locale locale);
  336. /**
  337. * Sets the localized description of this m d r rule group in the language, and sets the default locale.
  338. *
  339. * @param description the localized description of this m d r rule group
  340. * @param locale the locale of the language
  341. * @param defaultLocale the default locale
  342. */
  343. public void setDescription(String description, Locale locale,
  344. Locale defaultLocale);
  345. public void setDescriptionCurrentLanguageId(String languageId);
  346. /**
  347. * Sets the localized descriptions of this m d r rule group from the map of locales and localized descriptions.
  348. *
  349. * @param descriptionMap the locales and localized descriptions of this m d r rule group
  350. */
  351. public void setDescriptionMap(Map<Locale, String> descriptionMap);
  352. /**
  353. * Sets the localized descriptions of this m d r rule group from the map of locales and localized descriptions, and sets the default locale.
  354. *
  355. * @param descriptionMap the locales and localized descriptions of this m d r rule group
  356. * @param defaultLocale the default locale
  357. */
  358. public void setDescriptionMap(Map<Locale, String> descriptionMap,
  359. Locale defaultLocale);
  360. /**
  361. * Returns the last publish date of this m d r rule group.
  362. *
  363. * @return the last publish date of this m d r rule group
  364. */
  365. @Override
  366. public Date getLastPublishDate();
  367. /**
  368. * Sets the last publish date of this m d r rule group.
  369. *
  370. * @param lastPublishDate the last publish date of this m d r rule group
  371. */
  372. @Override
  373. public void setLastPublishDate(Date lastPublishDate);
  374. @Override
  375. public boolean isNew();
  376. @Override
  377. public void setNew(boolean n);
  378. @Override
  379. public boolean isCachedModel();
  380. @Override
  381. public void setCachedModel(boolean cachedModel);
  382. @Override
  383. public boolean isEscapedModel();
  384. @Override
  385. public Serializable getPrimaryKeyObj();
  386. @Override
  387. public void setPrimaryKeyObj(Serializable primaryKeyObj);
  388. @Override
  389. public ExpandoBridge getExpandoBridge();
  390. @Override
  391. public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
  392. @Override
  393. public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
  394. @Override
  395. public void setExpandoBridgeAttributes(ServiceContext serviceContext);
  396. @Override
  397. public String[] getAvailableLanguageIds();
  398. @Override
  399. public String getDefaultLanguageId();
  400. @Override
  401. public void prepareLocalizedFieldsForImport() throws LocaleException;
  402. @Override
  403. public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
  404. throws LocaleException;
  405. @Override
  406. public Object clone();
  407. @Override
  408. public int compareTo(MDRRuleGroup mdrRuleGroup);
  409. @Override
  410. public int hashCode();
  411. @Override
  412. public CacheModel<MDRRuleGroup> toCacheModel();
  413. @Override
  414. public MDRRuleGroup toEscapedModel();
  415. @Override
  416. public MDRRuleGroup toUnescapedModel();
  417. @Override
  418. public String toString();
  419. @Override
  420. public String toXmlString();
  421. }