001    /**
002     * Copyright (c) 2000-2010 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 com.liferay.portal.kernel.annotation.AutoEscape;
018    import com.liferay.portal.service.ServiceContext;
019    
020    import com.liferay.portlet.expando.model.ExpandoBridge;
021    
022    import java.io.Serializable;
023    
024    /**
025     * <p>
026     * This interface is a model that represents the ResourcePermission table in the
027     * database.
028     * </p>
029     *
030     * @author    Brian Wing Shun Chan
031     * @see       ResourcePermission
032     * @see       com.liferay.portal.model.impl.ResourcePermissionImpl
033     * @see       com.liferay.portal.model.impl.ResourcePermissionModelImpl
034     * @generated
035     */
036    public interface ResourcePermissionModel extends BaseModel<ResourcePermission> {
037            public long getPrimaryKey();
038    
039            public void setPrimaryKey(long pk);
040    
041            public long getResourcePermissionId();
042    
043            public void setResourcePermissionId(long resourcePermissionId);
044    
045            public long getCompanyId();
046    
047            public void setCompanyId(long companyId);
048    
049            @AutoEscape
050            public String getName();
051    
052            public void setName(String name);
053    
054            public int getScope();
055    
056            public void setScope(int scope);
057    
058            @AutoEscape
059            public String getPrimKey();
060    
061            public void setPrimKey(String primKey);
062    
063            public long getRoleId();
064    
065            public void setRoleId(long roleId);
066    
067            public long getActionIds();
068    
069            public void setActionIds(long actionIds);
070    
071            public ResourcePermission toEscapedModel();
072    
073            public boolean isNew();
074    
075            public void setNew(boolean n);
076    
077            public boolean isCachedModel();
078    
079            public void setCachedModel(boolean cachedModel);
080    
081            public boolean isEscapedModel();
082    
083            public void setEscapedModel(boolean escapedModel);
084    
085            public Serializable getPrimaryKeyObj();
086    
087            public ExpandoBridge getExpandoBridge();
088    
089            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
090    
091            public Object clone();
092    
093            public int compareTo(ResourcePermission resourcePermission);
094    
095            public int hashCode();
096    
097            public String toString();
098    
099            public String toXmlString();
100    }