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 ResourceBlock service. Represents a row in the "ResourceBlock" 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.ResourceBlockModelImpl} 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.ResourceBlockImpl}. 031 * </p> 032 * 033 * @author Brian Wing Shun Chan 034 * @see ResourceBlock 035 * @see com.liferay.portal.model.impl.ResourceBlockImpl 036 * @see com.liferay.portal.model.impl.ResourceBlockModelImpl 037 * @generated 038 */ 039 @ProviderType 040 public interface ResourceBlockModel extends BaseModel<ResourceBlock>, MVCCModel { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify or reference this interface directly. All methods that expect a resource block model instance should use the {@link ResourceBlock} interface instead. 045 */ 046 047 /** 048 * Returns the primary key of this resource block. 049 * 050 * @return the primary key of this resource block 051 */ 052 public long getPrimaryKey(); 053 054 /** 055 * Sets the primary key of this resource block. 056 * 057 * @param primaryKey the primary key of this resource block 058 */ 059 public void setPrimaryKey(long primaryKey); 060 061 /** 062 * Returns the mvcc version of this resource block. 063 * 064 * @return the mvcc version of this resource block 065 */ 066 @Override 067 public long getMvccVersion(); 068 069 /** 070 * Sets the mvcc version of this resource block. 071 * 072 * @param mvccVersion the mvcc version of this resource block 073 */ 074 @Override 075 public void setMvccVersion(long mvccVersion); 076 077 /** 078 * Returns the resource block ID of this resource block. 079 * 080 * @return the resource block ID of this resource block 081 */ 082 public long getResourceBlockId(); 083 084 /** 085 * Sets the resource block ID of this resource block. 086 * 087 * @param resourceBlockId the resource block ID of this resource block 088 */ 089 public void setResourceBlockId(long resourceBlockId); 090 091 /** 092 * Returns the company ID of this resource block. 093 * 094 * @return the company ID of this resource block 095 */ 096 public long getCompanyId(); 097 098 /** 099 * Sets the company ID of this resource block. 100 * 101 * @param companyId the company ID of this resource block 102 */ 103 public void setCompanyId(long companyId); 104 105 /** 106 * Returns the group ID of this resource block. 107 * 108 * @return the group ID of this resource block 109 */ 110 public long getGroupId(); 111 112 /** 113 * Sets the group ID of this resource block. 114 * 115 * @param groupId the group ID of this resource block 116 */ 117 public void setGroupId(long groupId); 118 119 /** 120 * Returns the name of this resource block. 121 * 122 * @return the name of this resource block 123 */ 124 @AutoEscape 125 public String getName(); 126 127 /** 128 * Sets the name of this resource block. 129 * 130 * @param name the name of this resource block 131 */ 132 public void setName(String name); 133 134 /** 135 * Returns the permissions hash of this resource block. 136 * 137 * @return the permissions hash of this resource block 138 */ 139 @AutoEscape 140 public String getPermissionsHash(); 141 142 /** 143 * Sets the permissions hash of this resource block. 144 * 145 * @param permissionsHash the permissions hash of this resource block 146 */ 147 public void setPermissionsHash(String permissionsHash); 148 149 /** 150 * Returns the reference count of this resource block. 151 * 152 * @return the reference count of this resource block 153 */ 154 public long getReferenceCount(); 155 156 /** 157 * Sets the reference count of this resource block. 158 * 159 * @param referenceCount the reference count of this resource block 160 */ 161 public void setReferenceCount(long referenceCount); 162 163 @Override 164 public boolean isNew(); 165 166 @Override 167 public void setNew(boolean n); 168 169 @Override 170 public boolean isCachedModel(); 171 172 @Override 173 public void setCachedModel(boolean cachedModel); 174 175 @Override 176 public boolean isEscapedModel(); 177 178 @Override 179 public Serializable getPrimaryKeyObj(); 180 181 @Override 182 public void setPrimaryKeyObj(Serializable primaryKeyObj); 183 184 @Override 185 public ExpandoBridge getExpandoBridge(); 186 187 @Override 188 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 189 190 @Override 191 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 192 193 @Override 194 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 195 196 @Override 197 public Object clone(); 198 199 @Override 200 public int compareTo(com.liferay.portal.model.ResourceBlock resourceBlock); 201 202 @Override 203 public int hashCode(); 204 205 @Override 206 public CacheModel<com.liferay.portal.model.ResourceBlock> toCacheModel(); 207 208 @Override 209 public com.liferay.portal.model.ResourceBlock toEscapedModel(); 210 211 @Override 212 public com.liferay.portal.model.ResourceBlock toUnescapedModel(); 213 214 @Override 215 public String toString(); 216 217 @Override 218 public String toXmlString(); 219 }