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.portal.model;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.AutoEscape;
020    import com.liferay.portal.service.ServiceContext;
021    
022    import com.liferay.portlet.expando.model.ExpandoBridge;
023    
024    import java.io.Serializable;
025    
026    /**
027     * The base model interface for the ResourcePermission service. Represents a row in the "ResourcePermission" database table, with each column mapped to a property of this class.
028     *
029     * <p>
030     * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.ResourcePermissionModelImpl} 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.model.impl.ResourcePermissionImpl}.
031     * </p>
032     *
033     * @author Brian Wing Shun Chan
034     * @see ResourcePermission
035     * @see com.liferay.portal.model.impl.ResourcePermissionImpl
036     * @see com.liferay.portal.model.impl.ResourcePermissionModelImpl
037     * @generated
038     */
039    @ProviderType
040    public interface ResourcePermissionModel extends BaseModel<ResourcePermission> {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. All methods that expect a resource permission model instance should use the {@link ResourcePermission} interface instead.
045             */
046    
047            /**
048             * Returns the primary key of this resource permission.
049             *
050             * @return the primary key of this resource permission
051             */
052            public long getPrimaryKey();
053    
054            /**
055             * Sets the primary key of this resource permission.
056             *
057             * @param primaryKey the primary key of this resource permission
058             */
059            public void setPrimaryKey(long primaryKey);
060    
061            /**
062             * Returns the resource permission ID of this resource permission.
063             *
064             * @return the resource permission ID of this resource permission
065             */
066            public long getResourcePermissionId();
067    
068            /**
069             * Sets the resource permission ID of this resource permission.
070             *
071             * @param resourcePermissionId the resource permission ID of this resource permission
072             */
073            public void setResourcePermissionId(long resourcePermissionId);
074    
075            /**
076             * Returns the company ID of this resource permission.
077             *
078             * @return the company ID of this resource permission
079             */
080            public long getCompanyId();
081    
082            /**
083             * Sets the company ID of this resource permission.
084             *
085             * @param companyId the company ID of this resource permission
086             */
087            public void setCompanyId(long companyId);
088    
089            /**
090             * Returns the name of this resource permission.
091             *
092             * @return the name of this resource permission
093             */
094            @AutoEscape
095            public String getName();
096    
097            /**
098             * Sets the name of this resource permission.
099             *
100             * @param name the name of this resource permission
101             */
102            public void setName(String name);
103    
104            /**
105             * Returns the scope of this resource permission.
106             *
107             * @return the scope of this resource permission
108             */
109            public int getScope();
110    
111            /**
112             * Sets the scope of this resource permission.
113             *
114             * @param scope the scope of this resource permission
115             */
116            public void setScope(int scope);
117    
118            /**
119             * Returns the prim key of this resource permission.
120             *
121             * @return the prim key of this resource permission
122             */
123            @AutoEscape
124            public String getPrimKey();
125    
126            /**
127             * Sets the prim key of this resource permission.
128             *
129             * @param primKey the prim key of this resource permission
130             */
131            public void setPrimKey(String primKey);
132    
133            /**
134             * Returns the role ID of this resource permission.
135             *
136             * @return the role ID of this resource permission
137             */
138            public long getRoleId();
139    
140            /**
141             * Sets the role ID of this resource permission.
142             *
143             * @param roleId the role ID of this resource permission
144             */
145            public void setRoleId(long roleId);
146    
147            /**
148             * Returns the owner ID of this resource permission.
149             *
150             * @return the owner ID of this resource permission
151             */
152            public long getOwnerId();
153    
154            /**
155             * Sets the owner ID of this resource permission.
156             *
157             * @param ownerId the owner ID of this resource permission
158             */
159            public void setOwnerId(long ownerId);
160    
161            /**
162             * Returns the action IDs of this resource permission.
163             *
164             * @return the action IDs of this resource permission
165             */
166            public long getActionIds();
167    
168            /**
169             * Sets the action IDs of this resource permission.
170             *
171             * @param actionIds the action IDs of this resource permission
172             */
173            public void setActionIds(long actionIds);
174    
175            @Override
176            public boolean isNew();
177    
178            @Override
179            public void setNew(boolean n);
180    
181            @Override
182            public boolean isCachedModel();
183    
184            @Override
185            public void setCachedModel(boolean cachedModel);
186    
187            @Override
188            public boolean isEscapedModel();
189    
190            @Override
191            public Serializable getPrimaryKeyObj();
192    
193            @Override
194            public void setPrimaryKeyObj(Serializable primaryKeyObj);
195    
196            @Override
197            public ExpandoBridge getExpandoBridge();
198    
199            @Override
200            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
201    
202            @Override
203            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
204    
205            @Override
206            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
207    
208            @Override
209            public Object clone();
210    
211            @Override
212            public int compareTo(ResourcePermission resourcePermission);
213    
214            @Override
215            public int hashCode();
216    
217            @Override
218            public CacheModel<ResourcePermission> toCacheModel();
219    
220            @Override
221            public ResourcePermission toEscapedModel();
222    
223            @Override
224            public ResourcePermission toUnescapedModel();
225    
226            @Override
227            public String toString();
228    
229            @Override
230            public String toXmlString();
231    }