1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.model;
16  
17  import com.liferay.portal.kernel.annotation.AutoEscape;
18  import com.liferay.portal.service.ServiceContext;
19  
20  import com.liferay.portlet.expando.model.ExpandoBridge;
21  
22  import java.io.Serializable;
23  
24  import java.util.Locale;
25  import java.util.Map;
26  
27  /**
28   * <a href="RoleModel.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * <p>
36   * This interface is a model that represents the Role_ table in the
37   * database.
38   * </p>
39   *
40   * @author    Brian Wing Shun Chan
41   * @see       Role
42   * @see       com.liferay.portal.model.impl.RoleImpl
43   * @see       com.liferay.portal.model.impl.RoleModelImpl
44   * @generated
45   */
46  public interface RoleModel extends BaseModel<Role> {
47      public long getPrimaryKey();
48  
49      public void setPrimaryKey(long pk);
50  
51      public long getRoleId();
52  
53      public void setRoleId(long roleId);
54  
55      public long getCompanyId();
56  
57      public void setCompanyId(long companyId);
58  
59      public String getClassName();
60  
61      public long getClassNameId();
62  
63      public void setClassNameId(long classNameId);
64  
65      public long getClassPK();
66  
67      public void setClassPK(long classPK);
68  
69      @AutoEscape
70      public String getName();
71  
72      public void setName(String name);
73  
74      public String getTitle();
75  
76      public String getTitle(Locale locale);
77  
78      public String getTitle(Locale locale, boolean useDefault);
79  
80      public String getTitle(String languageId);
81  
82      public String getTitle(String languageId, boolean useDefault);
83  
84      public Map<Locale, String> getTitleMap();
85  
86      public void setTitle(String title);
87  
88      public void setTitle(Locale locale, String title);
89  
90      public void setTitleMap(Map<Locale, String> titleMap);
91  
92      @AutoEscape
93      public String getDescription();
94  
95      public void setDescription(String description);
96  
97      public int getType();
98  
99      public void setType(int type);
100 
101     @AutoEscape
102     public String getSubtype();
103 
104     public void setSubtype(String subtype);
105 
106     public boolean isNew();
107 
108     public boolean setNew(boolean n);
109 
110     public boolean isCachedModel();
111 
112     public void setCachedModel(boolean cachedModel);
113 
114     public boolean isEscapedModel();
115 
116     public void setEscapedModel(boolean escapedModel);
117 
118     public Serializable getPrimaryKeyObj();
119 
120     public ExpandoBridge getExpandoBridge();
121 
122     public void setExpandoBridgeAttributes(ServiceContext serviceContext);
123 
124     public Object clone();
125 
126     public int compareTo(Role role);
127 
128     public int hashCode();
129 
130     public Role toEscapedModel();
131 
132     public String toString();
133 
134     public String toXmlString();
135 }