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 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> { 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 resource block ID of this resource block. 063 * 064 * @return the resource block ID of this resource block 065 */ 066 public long getResourceBlockId(); 067 068 /** 069 * Sets the resource block ID of this resource block. 070 * 071 * @param resourceBlockId the resource block ID of this resource block 072 */ 073 public void setResourceBlockId(long resourceBlockId); 074 075 /** 076 * Returns the company ID of this resource block. 077 * 078 * @return the company ID of this resource block 079 */ 080 public long getCompanyId(); 081 082 /** 083 * Sets the company ID of this resource block. 084 * 085 * @param companyId the company ID of this resource block 086 */ 087 public void setCompanyId(long companyId); 088 089 /** 090 * Returns the group ID of this resource block. 091 * 092 * @return the group ID of this resource block 093 */ 094 public long getGroupId(); 095 096 /** 097 * Sets the group ID of this resource block. 098 * 099 * @param groupId the group ID of this resource block 100 */ 101 public void setGroupId(long groupId); 102 103 /** 104 * Returns the name of this resource block. 105 * 106 * @return the name of this resource block 107 */ 108 @AutoEscape 109 public String getName(); 110 111 /** 112 * Sets the name of this resource block. 113 * 114 * @param name the name of this resource block 115 */ 116 public void setName(String name); 117 118 /** 119 * Returns the permissions hash of this resource block. 120 * 121 * @return the permissions hash of this resource block 122 */ 123 @AutoEscape 124 public String getPermissionsHash(); 125 126 /** 127 * Sets the permissions hash of this resource block. 128 * 129 * @param permissionsHash the permissions hash of this resource block 130 */ 131 public void setPermissionsHash(String permissionsHash); 132 133 /** 134 * Returns the reference count of this resource block. 135 * 136 * @return the reference count of this resource block 137 */ 138 public long getReferenceCount(); 139 140 /** 141 * Sets the reference count of this resource block. 142 * 143 * @param referenceCount the reference count of this resource block 144 */ 145 public void setReferenceCount(long referenceCount); 146 147 @Override 148 public boolean isNew(); 149 150 @Override 151 public void setNew(boolean n); 152 153 @Override 154 public boolean isCachedModel(); 155 156 @Override 157 public void setCachedModel(boolean cachedModel); 158 159 @Override 160 public boolean isEscapedModel(); 161 162 @Override 163 public Serializable getPrimaryKeyObj(); 164 165 @Override 166 public void setPrimaryKeyObj(Serializable primaryKeyObj); 167 168 @Override 169 public ExpandoBridge getExpandoBridge(); 170 171 @Override 172 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 173 174 @Override 175 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 176 177 @Override 178 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 179 180 @Override 181 public Object clone(); 182 183 @Override 184 public int compareTo(ResourceBlock resourceBlock); 185 186 @Override 187 public int hashCode(); 188 189 @Override 190 public CacheModel<ResourceBlock> toCacheModel(); 191 192 @Override 193 public ResourceBlock toEscapedModel(); 194 195 @Override 196 public ResourceBlock toUnescapedModel(); 197 198 @Override 199 public String toString(); 200 201 @Override 202 public String toXmlString(); 203 }