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