/webs/kaleo-web/docroot/WEB-INF/service/com/liferay/portal/workflow/kaleo/model/KaleoDefinitionModel.java

https://github.com/stevenjiancao/liferay-plugins · Java · 409 lines · 80 code · 67 blank · 262 comment · 0 complexity · 4a1bc10ba7b2e11d5787016873f8dd58 MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 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.portal.workflow.kaleo.model;
  15. import com.liferay.portal.kernel.bean.AutoEscape;
  16. import com.liferay.portal.kernel.exception.SystemException;
  17. import com.liferay.portal.model.BaseModel;
  18. import com.liferay.portal.model.CacheModel;
  19. import com.liferay.portal.model.GroupedModel;
  20. import com.liferay.portal.service.ServiceContext;
  21. import com.liferay.portlet.expando.model.ExpandoBridge;
  22. import java.io.Serializable;
  23. import java.util.Date;
  24. import java.util.Locale;
  25. import java.util.Map;
  26. /**
  27. * The base model interface for the KaleoDefinition service. Represents a row in the "KaleoDefinition" database table, with each column mapped to a property of this class.
  28. *
  29. * <p>
  30. * This interface and its corresponding implementation {@link com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionModelImpl} 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.portal.workflow.kaleo.model.impl.KaleoDefinitionImpl}.
  31. * </p>
  32. *
  33. * @author Brian Wing Shun Chan
  34. * @see KaleoDefinition
  35. * @see com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionImpl
  36. * @see com.liferay.portal.workflow.kaleo.model.impl.KaleoDefinitionModelImpl
  37. * @generated
  38. */
  39. public interface KaleoDefinitionModel extends BaseModel<KaleoDefinition>,
  40. GroupedModel {
  41. /*
  42. * NOTE FOR DEVELOPERS:
  43. *
  44. * Never modify or reference this interface directly. All methods that expect a kaleo definition model instance should use the {@link KaleoDefinition} interface instead.
  45. */
  46. /**
  47. * Returns the primary key of this kaleo definition.
  48. *
  49. * @return the primary key of this kaleo definition
  50. */
  51. public long getPrimaryKey();
  52. /**
  53. * Sets the primary key of this kaleo definition.
  54. *
  55. * @param primaryKey the primary key of this kaleo definition
  56. */
  57. public void setPrimaryKey(long primaryKey);
  58. /**
  59. * Returns the kaleo definition ID of this kaleo definition.
  60. *
  61. * @return the kaleo definition ID of this kaleo definition
  62. */
  63. public long getKaleoDefinitionId();
  64. /**
  65. * Sets the kaleo definition ID of this kaleo definition.
  66. *
  67. * @param kaleoDefinitionId the kaleo definition ID of this kaleo definition
  68. */
  69. public void setKaleoDefinitionId(long kaleoDefinitionId);
  70. /**
  71. * Returns the group ID of this kaleo definition.
  72. *
  73. * @return the group ID of this kaleo definition
  74. */
  75. public long getGroupId();
  76. /**
  77. * Sets the group ID of this kaleo definition.
  78. *
  79. * @param groupId the group ID of this kaleo definition
  80. */
  81. public void setGroupId(long groupId);
  82. /**
  83. * Returns the company ID of this kaleo definition.
  84. *
  85. * @return the company ID of this kaleo definition
  86. */
  87. public long getCompanyId();
  88. /**
  89. * Sets the company ID of this kaleo definition.
  90. *
  91. * @param companyId the company ID of this kaleo definition
  92. */
  93. public void setCompanyId(long companyId);
  94. /**
  95. * Returns the user ID of this kaleo definition.
  96. *
  97. * @return the user ID of this kaleo definition
  98. */
  99. public long getUserId();
  100. /**
  101. * Sets the user ID of this kaleo definition.
  102. *
  103. * @param userId the user ID of this kaleo definition
  104. */
  105. public void setUserId(long userId);
  106. /**
  107. * Returns the user uuid of this kaleo definition.
  108. *
  109. * @return the user uuid of this kaleo definition
  110. * @throws SystemException if a system exception occurred
  111. */
  112. public String getUserUuid() throws SystemException;
  113. /**
  114. * Sets the user uuid of this kaleo definition.
  115. *
  116. * @param userUuid the user uuid of this kaleo definition
  117. */
  118. public void setUserUuid(String userUuid);
  119. /**
  120. * Returns the user name of this kaleo definition.
  121. *
  122. * @return the user name of this kaleo definition
  123. */
  124. @AutoEscape
  125. public String getUserName();
  126. /**
  127. * Sets the user name of this kaleo definition.
  128. *
  129. * @param userName the user name of this kaleo definition
  130. */
  131. public void setUserName(String userName);
  132. /**
  133. * Returns the create date of this kaleo definition.
  134. *
  135. * @return the create date of this kaleo definition
  136. */
  137. public Date getCreateDate();
  138. /**
  139. * Sets the create date of this kaleo definition.
  140. *
  141. * @param createDate the create date of this kaleo definition
  142. */
  143. public void setCreateDate(Date createDate);
  144. /**
  145. * Returns the modified date of this kaleo definition.
  146. *
  147. * @return the modified date of this kaleo definition
  148. */
  149. public Date getModifiedDate();
  150. /**
  151. * Sets the modified date of this kaleo definition.
  152. *
  153. * @param modifiedDate the modified date of this kaleo definition
  154. */
  155. public void setModifiedDate(Date modifiedDate);
  156. /**
  157. * Returns the name of this kaleo definition.
  158. *
  159. * @return the name of this kaleo definition
  160. */
  161. @AutoEscape
  162. public String getName();
  163. /**
  164. * Sets the name of this kaleo definition.
  165. *
  166. * @param name the name of this kaleo definition
  167. */
  168. public void setName(String name);
  169. /**
  170. * Returns the title of this kaleo definition.
  171. *
  172. * @return the title of this kaleo definition
  173. */
  174. public String getTitle();
  175. /**
  176. * Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
  177. *
  178. * @param locale the locale of the language
  179. * @return the localized title of this kaleo definition
  180. */
  181. public String getTitle(Locale locale);
  182. /**
  183. * Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
  184. *
  185. * @param locale the local of the language
  186. * @param useDefault whether to use the default language if no localization exists for the requested language
  187. * @return the localized title of this kaleo definition. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
  188. */
  189. public String getTitle(Locale locale, boolean useDefault);
  190. /**
  191. * Returns the localized title of this kaleo definition in the language. Uses the default language if no localization exists for the requested language.
  192. *
  193. * @param languageId the ID of the language
  194. * @return the localized title of this kaleo definition
  195. */
  196. public String getTitle(String languageId);
  197. /**
  198. * Returns the localized title of this kaleo definition in the language, optionally using the default language if no localization exists for the requested language.
  199. *
  200. * @param languageId the ID of the language
  201. * @param useDefault whether to use the default language if no localization exists for the requested language
  202. * @return the localized title of this kaleo definition
  203. */
  204. public String getTitle(String languageId, boolean useDefault);
  205. /**
  206. * Returns a map of the locales and localized titles of this kaleo definition.
  207. *
  208. * @return the locales and localized titles of this kaleo definition
  209. */
  210. public Map<Locale, String> getTitleMap();
  211. /**
  212. * Sets the title of this kaleo definition.
  213. *
  214. * @param title the title of this kaleo definition
  215. */
  216. public void setTitle(String title);
  217. /**
  218. * Sets the localized title of this kaleo definition in the language.
  219. *
  220. * @param title the localized title of this kaleo definition
  221. * @param locale the locale of the language
  222. */
  223. public void setTitle(String title, Locale locale);
  224. /**
  225. * Sets the localized title of this kaleo definition in the language, and sets the default locale.
  226. *
  227. * @param title the localized title of this kaleo definition
  228. * @param locale the locale of the language
  229. * @param defaultLocale the default locale
  230. */
  231. public void setTitle(String title, Locale locale, Locale defaultLocale);
  232. /**
  233. * Sets the localized titles of this kaleo definition from the map of locales and localized titles.
  234. *
  235. * @param titleMap the locales and localized titles of this kaleo definition
  236. */
  237. public void setTitleMap(Map<Locale, String> titleMap);
  238. /**
  239. * Sets the localized titles of this kaleo definition from the map of locales and localized titles, and sets the default locale.
  240. *
  241. * @param titleMap the locales and localized titles of this kaleo definition
  242. * @param defaultLocale the default locale
  243. */
  244. public void setTitleMap(Map<Locale, String> titleMap, Locale defaultLocale);
  245. /**
  246. * Returns the description of this kaleo definition.
  247. *
  248. * @return the description of this kaleo definition
  249. */
  250. @AutoEscape
  251. public String getDescription();
  252. /**
  253. * Sets the description of this kaleo definition.
  254. *
  255. * @param description the description of this kaleo definition
  256. */
  257. public void setDescription(String description);
  258. /**
  259. * Returns the content of this kaleo definition.
  260. *
  261. * @return the content of this kaleo definition
  262. */
  263. @AutoEscape
  264. public String getContent();
  265. /**
  266. * Sets the content of this kaleo definition.
  267. *
  268. * @param content the content of this kaleo definition
  269. */
  270. public void setContent(String content);
  271. /**
  272. * Returns the version of this kaleo definition.
  273. *
  274. * @return the version of this kaleo definition
  275. */
  276. public int getVersion();
  277. /**
  278. * Sets the version of this kaleo definition.
  279. *
  280. * @param version the version of this kaleo definition
  281. */
  282. public void setVersion(int version);
  283. /**
  284. * Returns the active of this kaleo definition.
  285. *
  286. * @return the active of this kaleo definition
  287. */
  288. public boolean getActive();
  289. /**
  290. * Returns <code>true</code> if this kaleo definition is active.
  291. *
  292. * @return <code>true</code> if this kaleo definition is active; <code>false</code> otherwise
  293. */
  294. public boolean isActive();
  295. /**
  296. * Sets whether this kaleo definition is active.
  297. *
  298. * @param active the active of this kaleo definition
  299. */
  300. public void setActive(boolean active);
  301. /**
  302. * Returns the scope of this kaleo definition.
  303. *
  304. * @return the scope of this kaleo definition
  305. */
  306. public long getScope();
  307. /**
  308. * Sets the scope of this kaleo definition.
  309. *
  310. * @param scope the scope of this kaleo definition
  311. */
  312. public void setScope(long scope);
  313. /**
  314. * Returns the start kaleo node ID of this kaleo definition.
  315. *
  316. * @return the start kaleo node ID of this kaleo definition
  317. */
  318. public long getStartKaleoNodeId();
  319. /**
  320. * Sets the start kaleo node ID of this kaleo definition.
  321. *
  322. * @param startKaleoNodeId the start kaleo node ID of this kaleo definition
  323. */
  324. public void setStartKaleoNodeId(long startKaleoNodeId);
  325. public boolean isNew();
  326. public void setNew(boolean n);
  327. public boolean isCachedModel();
  328. public void setCachedModel(boolean cachedModel);
  329. public boolean isEscapedModel();
  330. public void setEscapedModel(boolean escapedModel);
  331. public Serializable getPrimaryKeyObj();
  332. public void setPrimaryKeyObj(Serializable primaryKeyObj);
  333. public ExpandoBridge getExpandoBridge();
  334. public void setExpandoBridgeAttributes(ServiceContext serviceContext);
  335. public Object clone();
  336. public int compareTo(KaleoDefinition kaleoDefinition);
  337. public int hashCode();
  338. public CacheModel<KaleoDefinition> toCacheModel();
  339. public KaleoDefinition toEscapedModel();
  340. public String toString();
  341. public String toXmlString();
  342. }