001 /** 002 * Copyright (c) 2000-present 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 MVCCModel { 042 /* 043 * NOTE FOR DEVELOPERS: 044 * 045 * Never modify or reference this interface directly. All methods that expect a resource permission model instance should use the {@link ResourcePermission} interface instead. 046 */ 047 048 /** 049 * Returns the primary key of this resource permission. 050 * 051 * @return the primary key of this resource permission 052 */ 053 public long getPrimaryKey(); 054 055 /** 056 * Sets the primary key of this resource permission. 057 * 058 * @param primaryKey the primary key of this resource permission 059 */ 060 public void setPrimaryKey(long primaryKey); 061 062 /** 063 * Returns the mvcc version of this resource permission. 064 * 065 * @return the mvcc version of this resource permission 066 */ 067 @Override 068 public long getMvccVersion(); 069 070 /** 071 * Sets the mvcc version of this resource permission. 072 * 073 * @param mvccVersion the mvcc version of this resource permission 074 */ 075 @Override 076 public void setMvccVersion(long mvccVersion); 077 078 /** 079 * Returns the resource permission ID of this resource permission. 080 * 081 * @return the resource permission ID of this resource permission 082 */ 083 public long getResourcePermissionId(); 084 085 /** 086 * Sets the resource permission ID of this resource permission. 087 * 088 * @param resourcePermissionId the resource permission ID of this resource permission 089 */ 090 public void setResourcePermissionId(long resourcePermissionId); 091 092 /** 093 * Returns the company ID of this resource permission. 094 * 095 * @return the company ID of this resource permission 096 */ 097 public long getCompanyId(); 098 099 /** 100 * Sets the company ID of this resource permission. 101 * 102 * @param companyId the company ID of this resource permission 103 */ 104 public void setCompanyId(long companyId); 105 106 /** 107 * Returns the name of this resource permission. 108 * 109 * @return the name of this resource permission 110 */ 111 @AutoEscape 112 public String getName(); 113 114 /** 115 * Sets the name of this resource permission. 116 * 117 * @param name the name of this resource permission 118 */ 119 public void setName(String name); 120 121 /** 122 * Returns the scope of this resource permission. 123 * 124 * @return the scope of this resource permission 125 */ 126 public int getScope(); 127 128 /** 129 * Sets the scope of this resource permission. 130 * 131 * @param scope the scope of this resource permission 132 */ 133 public void setScope(int scope); 134 135 /** 136 * Returns the prim key of this resource permission. 137 * 138 * @return the prim key of this resource permission 139 */ 140 @AutoEscape 141 public String getPrimKey(); 142 143 /** 144 * Sets the prim key of this resource permission. 145 * 146 * @param primKey the prim key of this resource permission 147 */ 148 public void setPrimKey(String primKey); 149 150 /** 151 * Returns the prim key ID of this resource permission. 152 * 153 * @return the prim key ID of this resource permission 154 */ 155 public long getPrimKeyId(); 156 157 /** 158 * Sets the prim key ID of this resource permission. 159 * 160 * @param primKeyId the prim key ID of this resource permission 161 */ 162 public void setPrimKeyId(long primKeyId); 163 164 /** 165 * Returns the role ID of this resource permission. 166 * 167 * @return the role ID of this resource permission 168 */ 169 public long getRoleId(); 170 171 /** 172 * Sets the role ID of this resource permission. 173 * 174 * @param roleId the role ID of this resource permission 175 */ 176 public void setRoleId(long roleId); 177 178 /** 179 * Returns the owner ID of this resource permission. 180 * 181 * @return the owner ID of this resource permission 182 */ 183 public long getOwnerId(); 184 185 /** 186 * Sets the owner ID of this resource permission. 187 * 188 * @param ownerId the owner ID of this resource permission 189 */ 190 public void setOwnerId(long ownerId); 191 192 /** 193 * Returns the action IDs of this resource permission. 194 * 195 * @return the action IDs of this resource permission 196 */ 197 public long getActionIds(); 198 199 /** 200 * Sets the action IDs of this resource permission. 201 * 202 * @param actionIds the action IDs of this resource permission 203 */ 204 public void setActionIds(long actionIds); 205 206 /** 207 * Returns the view action ID of this resource permission. 208 * 209 * @return the view action ID of this resource permission 210 */ 211 public boolean getViewActionId(); 212 213 /** 214 * Returns <code>true</code> if this resource permission is view action ID. 215 * 216 * @return <code>true</code> if this resource permission is view action ID; <code>false</code> otherwise 217 */ 218 public boolean isViewActionId(); 219 220 /** 221 * Sets whether this resource permission is view action ID. 222 * 223 * @param viewActionId the view action ID of this resource permission 224 */ 225 public void setViewActionId(boolean viewActionId); 226 227 @Override 228 public boolean isNew(); 229 230 @Override 231 public void setNew(boolean n); 232 233 @Override 234 public boolean isCachedModel(); 235 236 @Override 237 public void setCachedModel(boolean cachedModel); 238 239 @Override 240 public boolean isEscapedModel(); 241 242 @Override 243 public Serializable getPrimaryKeyObj(); 244 245 @Override 246 public void setPrimaryKeyObj(Serializable primaryKeyObj); 247 248 @Override 249 public ExpandoBridge getExpandoBridge(); 250 251 @Override 252 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 253 254 @Override 255 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 256 257 @Override 258 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 259 260 @Override 261 public Object clone(); 262 263 @Override 264 public int compareTo( 265 com.liferay.portal.model.ResourcePermission resourcePermission); 266 267 @Override 268 public int hashCode(); 269 270 @Override 271 public CacheModel<com.liferay.portal.model.ResourcePermission> toCacheModel(); 272 273 @Override 274 public com.liferay.portal.model.ResourcePermission toEscapedModel(); 275 276 @Override 277 public com.liferay.portal.model.ResourcePermission toUnescapedModel(); 278 279 @Override 280 public String toString(); 281 282 @Override 283 public String toXmlString(); 284 }