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  /**
25   * <a href="PortletModel.java.html"><b><i>View Source</i></b></a>
26   *
27   * <p>
28   * ServiceBuilder generated this class. Modifications in this class will be
29   * overwritten the next time is generated.
30   * </p>
31   *
32   * <p>
33   * This interface is a model that represents the Portlet table in the
34   * database.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       Portlet
39   * @see       com.liferay.portal.model.impl.PortletImpl
40   * @see       com.liferay.portal.model.impl.PortletModelImpl
41   * @generated
42   */
43  public interface PortletModel extends BaseModel<Portlet> {
44      public long getPrimaryKey();
45  
46      public void setPrimaryKey(long pk);
47  
48      public long getId();
49  
50      public void setId(long id);
51  
52      public long getCompanyId();
53  
54      public void setCompanyId(long companyId);
55  
56      @AutoEscape
57      public String getPortletId();
58  
59      public void setPortletId(String portletId);
60  
61      @AutoEscape
62      public String getRoles();
63  
64      public void setRoles(String roles);
65  
66      public boolean getActive();
67  
68      public boolean isActive();
69  
70      public void setActive(boolean active);
71  
72      public boolean isNew();
73  
74      public boolean setNew(boolean n);
75  
76      public boolean isCachedModel();
77  
78      public void setCachedModel(boolean cachedModel);
79  
80      public boolean isEscapedModel();
81  
82      public void setEscapedModel(boolean escapedModel);
83  
84      public Serializable getPrimaryKeyObj();
85  
86      public ExpandoBridge getExpandoBridge();
87  
88      public void setExpandoBridgeAttributes(ServiceContext serviceContext);
89  
90      public Object clone();
91  
92      public int compareTo(Portlet portlet);
93  
94      public int hashCode();
95  
96      public Portlet toEscapedModel();
97  
98      public String toString();
99  
100     public String toXmlString();
101 }