001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.mobiledevicerules.model;
016    
017    import com.liferay.portal.LocaleException;
018    import com.liferay.portal.kernel.bean.AutoEscape;
019    import com.liferay.portal.kernel.exception.SystemException;
020    import com.liferay.portal.model.BaseModel;
021    import com.liferay.portal.model.CacheModel;
022    import com.liferay.portal.model.GroupedModel;
023    import com.liferay.portal.service.ServiceContext;
024    
025    import com.liferay.portlet.expando.model.ExpandoBridge;
026    
027    import java.io.Serializable;
028    
029    import java.util.Date;
030    import java.util.Locale;
031    import java.util.Map;
032    
033    /**
034     * The base model interface for the MDRRule service. Represents a row in the "MDRRule" database table, with each column mapped to a property of this class.
035     *
036     * <p>
037     * This interface and its corresponding implementation {@link com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleModelImpl} 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.portlet.mobiledevicerules.model.impl.MDRRuleImpl}.
038     * </p>
039     *
040     * @author Edward C. Han
041     * @see MDRRule
042     * @see com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleImpl
043     * @see com.liferay.portlet.mobiledevicerules.model.impl.MDRRuleModelImpl
044     * @generated
045     */
046    public interface MDRRuleModel extends BaseModel<MDRRule>, GroupedModel {
047            /*
048             * NOTE FOR DEVELOPERS:
049             *
050             * Never modify or reference this interface directly. All methods that expect a m d r rule model instance should use the {@link MDRRule} interface instead.
051             */
052    
053            /**
054             * Returns the primary key of this m d r rule.
055             *
056             * @return the primary key of this m d r rule
057             */
058            public long getPrimaryKey();
059    
060            /**
061             * Sets the primary key of this m d r rule.
062             *
063             * @param primaryKey the primary key of this m d r rule
064             */
065            public void setPrimaryKey(long primaryKey);
066    
067            /**
068             * Returns the uuid of this m d r rule.
069             *
070             * @return the uuid of this m d r rule
071             */
072            @AutoEscape
073            public String getUuid();
074    
075            /**
076             * Sets the uuid of this m d r rule.
077             *
078             * @param uuid the uuid of this m d r rule
079             */
080            public void setUuid(String uuid);
081    
082            /**
083             * Returns the rule ID of this m d r rule.
084             *
085             * @return the rule ID of this m d r rule
086             */
087            public long getRuleId();
088    
089            /**
090             * Sets the rule ID of this m d r rule.
091             *
092             * @param ruleId the rule ID of this m d r rule
093             */
094            public void setRuleId(long ruleId);
095    
096            /**
097             * Returns the group ID of this m d r rule.
098             *
099             * @return the group ID of this m d r rule
100             */
101            public long getGroupId();
102    
103            /**
104             * Sets the group ID of this m d r rule.
105             *
106             * @param groupId the group ID of this m d r rule
107             */
108            public void setGroupId(long groupId);
109    
110            /**
111             * Returns the company ID of this m d r rule.
112             *
113             * @return the company ID of this m d r rule
114             */
115            public long getCompanyId();
116    
117            /**
118             * Sets the company ID of this m d r rule.
119             *
120             * @param companyId the company ID of this m d r rule
121             */
122            public void setCompanyId(long companyId);
123    
124            /**
125             * Returns the user ID of this m d r rule.
126             *
127             * @return the user ID of this m d r rule
128             */
129            public long getUserId();
130    
131            /**
132             * Sets the user ID of this m d r rule.
133             *
134             * @param userId the user ID of this m d r rule
135             */
136            public void setUserId(long userId);
137    
138            /**
139             * Returns the user uuid of this m d r rule.
140             *
141             * @return the user uuid of this m d r rule
142             * @throws SystemException if a system exception occurred
143             */
144            public String getUserUuid() throws SystemException;
145    
146            /**
147             * Sets the user uuid of this m d r rule.
148             *
149             * @param userUuid the user uuid of this m d r rule
150             */
151            public void setUserUuid(String userUuid);
152    
153            /**
154             * Returns the user name of this m d r rule.
155             *
156             * @return the user name of this m d r rule
157             */
158            @AutoEscape
159            public String getUserName();
160    
161            /**
162             * Sets the user name of this m d r rule.
163             *
164             * @param userName the user name of this m d r rule
165             */
166            public void setUserName(String userName);
167    
168            /**
169             * Returns the create date of this m d r rule.
170             *
171             * @return the create date of this m d r rule
172             */
173            public Date getCreateDate();
174    
175            /**
176             * Sets the create date of this m d r rule.
177             *
178             * @param createDate the create date of this m d r rule
179             */
180            public void setCreateDate(Date createDate);
181    
182            /**
183             * Returns the modified date of this m d r rule.
184             *
185             * @return the modified date of this m d r rule
186             */
187            public Date getModifiedDate();
188    
189            /**
190             * Sets the modified date of this m d r rule.
191             *
192             * @param modifiedDate the modified date of this m d r rule
193             */
194            public void setModifiedDate(Date modifiedDate);
195    
196            /**
197             * Returns the rule group ID of this m d r rule.
198             *
199             * @return the rule group ID of this m d r rule
200             */
201            public long getRuleGroupId();
202    
203            /**
204             * Sets the rule group ID of this m d r rule.
205             *
206             * @param ruleGroupId the rule group ID of this m d r rule
207             */
208            public void setRuleGroupId(long ruleGroupId);
209    
210            /**
211             * Returns the name of this m d r rule.
212             *
213             * @return the name of this m d r rule
214             */
215            public String getName();
216    
217            /**
218             * Returns the localized name of this m d r rule in the language. Uses the default language if no localization exists for the requested language.
219             *
220             * @param locale the locale of the language
221             * @return the localized name of this m d r rule
222             */
223            @AutoEscape
224            public String getName(Locale locale);
225    
226            /**
227             * Returns the localized name of this m d r rule in the language, optionally using the default language if no localization exists for the requested language.
228             *
229             * @param locale the local of the language
230             * @param useDefault whether to use the default language if no localization exists for the requested language
231             * @return the localized name of this m d r rule. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
232             */
233            @AutoEscape
234            public String getName(Locale locale, boolean useDefault);
235    
236            /**
237             * Returns the localized name of this m d r rule in the language. Uses the default language if no localization exists for the requested language.
238             *
239             * @param languageId the ID of the language
240             * @return the localized name of this m d r rule
241             */
242            @AutoEscape
243            public String getName(String languageId);
244    
245            /**
246             * Returns the localized name of this m d r rule in the language, optionally using the default language if no localization exists for the requested language.
247             *
248             * @param languageId the ID of the language
249             * @param useDefault whether to use the default language if no localization exists for the requested language
250             * @return the localized name of this m d r rule
251             */
252            @AutoEscape
253            public String getName(String languageId, boolean useDefault);
254    
255            @AutoEscape
256            public String getNameCurrentLanguageId();
257    
258            @AutoEscape
259            public String getNameCurrentValue();
260    
261            /**
262             * Returns a map of the locales and localized names of this m d r rule.
263             *
264             * @return the locales and localized names of this m d r rule
265             */
266            public Map<Locale, String> getNameMap();
267    
268            /**
269             * Sets the name of this m d r rule.
270             *
271             * @param name the name of this m d r rule
272             */
273            public void setName(String name);
274    
275            /**
276             * Sets the localized name of this m d r rule in the language.
277             *
278             * @param name the localized name of this m d r rule
279             * @param locale the locale of the language
280             */
281            public void setName(String name, Locale locale);
282    
283            /**
284             * Sets the localized name of this m d r rule in the language, and sets the default locale.
285             *
286             * @param name the localized name of this m d r rule
287             * @param locale the locale of the language
288             * @param defaultLocale the default locale
289             */
290            public void setName(String name, Locale locale, Locale defaultLocale);
291    
292            public void setNameCurrentLanguageId(String languageId);
293    
294            /**
295             * Sets the localized names of this m d r rule from the map of locales and localized names.
296             *
297             * @param nameMap the locales and localized names of this m d r rule
298             */
299            public void setNameMap(Map<Locale, String> nameMap);
300    
301            /**
302             * Sets the localized names of this m d r rule from the map of locales and localized names, and sets the default locale.
303             *
304             * @param nameMap the locales and localized names of this m d r rule
305             * @param defaultLocale the default locale
306             */
307            public void setNameMap(Map<Locale, String> nameMap, Locale defaultLocale);
308    
309            /**
310             * Returns the description of this m d r rule.
311             *
312             * @return the description of this m d r rule
313             */
314            public String getDescription();
315    
316            /**
317             * Returns the localized description of this m d r rule in the language. Uses the default language if no localization exists for the requested language.
318             *
319             * @param locale the locale of the language
320             * @return the localized description of this m d r rule
321             */
322            @AutoEscape
323            public String getDescription(Locale locale);
324    
325            /**
326             * Returns the localized description of this m d r rule in the language, optionally using the default language if no localization exists for the requested language.
327             *
328             * @param locale the local of the language
329             * @param useDefault whether to use the default language if no localization exists for the requested language
330             * @return the localized description of this m d r rule. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
331             */
332            @AutoEscape
333            public String getDescription(Locale locale, boolean useDefault);
334    
335            /**
336             * Returns the localized description of this m d r rule in the language. Uses the default language if no localization exists for the requested language.
337             *
338             * @param languageId the ID of the language
339             * @return the localized description of this m d r rule
340             */
341            @AutoEscape
342            public String getDescription(String languageId);
343    
344            /**
345             * Returns the localized description of this m d r rule in the language, optionally using the default language if no localization exists for the requested language.
346             *
347             * @param languageId the ID of the language
348             * @param useDefault whether to use the default language if no localization exists for the requested language
349             * @return the localized description of this m d r rule
350             */
351            @AutoEscape
352            public String getDescription(String languageId, boolean useDefault);
353    
354            @AutoEscape
355            public String getDescriptionCurrentLanguageId();
356    
357            @AutoEscape
358            public String getDescriptionCurrentValue();
359    
360            /**
361             * Returns a map of the locales and localized descriptions of this m d r rule.
362             *
363             * @return the locales and localized descriptions of this m d r rule
364             */
365            public Map<Locale, String> getDescriptionMap();
366    
367            /**
368             * Sets the description of this m d r rule.
369             *
370             * @param description the description of this m d r rule
371             */
372            public void setDescription(String description);
373    
374            /**
375             * Sets the localized description of this m d r rule in the language.
376             *
377             * @param description the localized description of this m d r rule
378             * @param locale the locale of the language
379             */
380            public void setDescription(String description, Locale locale);
381    
382            /**
383             * Sets the localized description of this m d r rule in the language, and sets the default locale.
384             *
385             * @param description the localized description of this m d r rule
386             * @param locale the locale of the language
387             * @param defaultLocale the default locale
388             */
389            public void setDescription(String description, Locale locale,
390                    Locale defaultLocale);
391    
392            public void setDescriptionCurrentLanguageId(String languageId);
393    
394            /**
395             * Sets the localized descriptions of this m d r rule from the map of locales and localized descriptions.
396             *
397             * @param descriptionMap the locales and localized descriptions of this m d r rule
398             */
399            public void setDescriptionMap(Map<Locale, String> descriptionMap);
400    
401            /**
402             * Sets the localized descriptions of this m d r rule from the map of locales and localized descriptions, and sets the default locale.
403             *
404             * @param descriptionMap the locales and localized descriptions of this m d r rule
405             * @param defaultLocale the default locale
406             */
407            public void setDescriptionMap(Map<Locale, String> descriptionMap,
408                    Locale defaultLocale);
409    
410            /**
411             * Returns the type of this m d r rule.
412             *
413             * @return the type of this m d r rule
414             */
415            @AutoEscape
416            public String getType();
417    
418            /**
419             * Sets the type of this m d r rule.
420             *
421             * @param type the type of this m d r rule
422             */
423            public void setType(String type);
424    
425            /**
426             * Returns the type settings of this m d r rule.
427             *
428             * @return the type settings of this m d r rule
429             */
430            @AutoEscape
431            public String getTypeSettings();
432    
433            /**
434             * Sets the type settings of this m d r rule.
435             *
436             * @param typeSettings the type settings of this m d r rule
437             */
438            public void setTypeSettings(String typeSettings);
439    
440            public boolean isNew();
441    
442            public void setNew(boolean n);
443    
444            public boolean isCachedModel();
445    
446            public void setCachedModel(boolean cachedModel);
447    
448            public boolean isEscapedModel();
449    
450            public Serializable getPrimaryKeyObj();
451    
452            public void setPrimaryKeyObj(Serializable primaryKeyObj);
453    
454            public ExpandoBridge getExpandoBridge();
455    
456            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
457    
458            public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
459                    throws LocaleException;
460    
461            public Object clone();
462    
463            public int compareTo(MDRRule mdrRule);
464    
465            public int hashCode();
466    
467            public CacheModel<MDRRule> toCacheModel();
468    
469            public MDRRule toEscapedModel();
470    
471            public MDRRule toUnescapedModel();
472    
473            public String toString();
474    
475            public String toXmlString();
476    }