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 import java.util.Date; 027 028 /** 029 * The base model interface for the Website service. Represents a row in the "Website" database table, with each column mapped to a property of this class. 030 * 031 * <p> 032 * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.WebsiteModelImpl} 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.WebsiteImpl}. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see Website 037 * @see com.liferay.portal.model.impl.WebsiteImpl 038 * @see com.liferay.portal.model.impl.WebsiteModelImpl 039 * @generated 040 */ 041 @ProviderType 042 public interface WebsiteModel extends AttachedModel, BaseModel<Website>, 043 MVCCModel, ShardedModel, StagedAuditedModel { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify or reference this interface directly. All methods that expect a website model instance should use the {@link Website} interface instead. 048 */ 049 050 /** 051 * Returns the primary key of this website. 052 * 053 * @return the primary key of this website 054 */ 055 public long getPrimaryKey(); 056 057 /** 058 * Sets the primary key of this website. 059 * 060 * @param primaryKey the primary key of this website 061 */ 062 public void setPrimaryKey(long primaryKey); 063 064 /** 065 * Returns the mvcc version of this website. 066 * 067 * @return the mvcc version of this website 068 */ 069 @Override 070 public long getMvccVersion(); 071 072 /** 073 * Sets the mvcc version of this website. 074 * 075 * @param mvccVersion the mvcc version of this website 076 */ 077 @Override 078 public void setMvccVersion(long mvccVersion); 079 080 /** 081 * Returns the uuid of this website. 082 * 083 * @return the uuid of this website 084 */ 085 @AutoEscape 086 @Override 087 public String getUuid(); 088 089 /** 090 * Sets the uuid of this website. 091 * 092 * @param uuid the uuid of this website 093 */ 094 @Override 095 public void setUuid(String uuid); 096 097 /** 098 * Returns the website ID of this website. 099 * 100 * @return the website ID of this website 101 */ 102 public long getWebsiteId(); 103 104 /** 105 * Sets the website ID of this website. 106 * 107 * @param websiteId the website ID of this website 108 */ 109 public void setWebsiteId(long websiteId); 110 111 /** 112 * Returns the company ID of this website. 113 * 114 * @return the company ID of this website 115 */ 116 @Override 117 public long getCompanyId(); 118 119 /** 120 * Sets the company ID of this website. 121 * 122 * @param companyId the company ID of this website 123 */ 124 @Override 125 public void setCompanyId(long companyId); 126 127 /** 128 * Returns the user ID of this website. 129 * 130 * @return the user ID of this website 131 */ 132 @Override 133 public long getUserId(); 134 135 /** 136 * Sets the user ID of this website. 137 * 138 * @param userId the user ID of this website 139 */ 140 @Override 141 public void setUserId(long userId); 142 143 /** 144 * Returns the user uuid of this website. 145 * 146 * @return the user uuid of this website 147 */ 148 @Override 149 public String getUserUuid(); 150 151 /** 152 * Sets the user uuid of this website. 153 * 154 * @param userUuid the user uuid of this website 155 */ 156 @Override 157 public void setUserUuid(String userUuid); 158 159 /** 160 * Returns the user name of this website. 161 * 162 * @return the user name of this website 163 */ 164 @AutoEscape 165 @Override 166 public String getUserName(); 167 168 /** 169 * Sets the user name of this website. 170 * 171 * @param userName the user name of this website 172 */ 173 @Override 174 public void setUserName(String userName); 175 176 /** 177 * Returns the create date of this website. 178 * 179 * @return the create date of this website 180 */ 181 @Override 182 public Date getCreateDate(); 183 184 /** 185 * Sets the create date of this website. 186 * 187 * @param createDate the create date of this website 188 */ 189 @Override 190 public void setCreateDate(Date createDate); 191 192 /** 193 * Returns the modified date of this website. 194 * 195 * @return the modified date of this website 196 */ 197 @Override 198 public Date getModifiedDate(); 199 200 /** 201 * Sets the modified date of this website. 202 * 203 * @param modifiedDate the modified date of this website 204 */ 205 @Override 206 public void setModifiedDate(Date modifiedDate); 207 208 /** 209 * Returns the fully qualified class name of this website. 210 * 211 * @return the fully qualified class name of this website 212 */ 213 @Override 214 public String getClassName(); 215 216 public void setClassName(String className); 217 218 /** 219 * Returns the class name ID of this website. 220 * 221 * @return the class name ID of this website 222 */ 223 @Override 224 public long getClassNameId(); 225 226 /** 227 * Sets the class name ID of this website. 228 * 229 * @param classNameId the class name ID of this website 230 */ 231 @Override 232 public void setClassNameId(long classNameId); 233 234 /** 235 * Returns the class p k of this website. 236 * 237 * @return the class p k of this website 238 */ 239 @Override 240 public long getClassPK(); 241 242 /** 243 * Sets the class p k of this website. 244 * 245 * @param classPK the class p k of this website 246 */ 247 @Override 248 public void setClassPK(long classPK); 249 250 /** 251 * Returns the url of this website. 252 * 253 * @return the url of this website 254 */ 255 @AutoEscape 256 public String getUrl(); 257 258 /** 259 * Sets the url of this website. 260 * 261 * @param url the url of this website 262 */ 263 public void setUrl(String url); 264 265 /** 266 * Returns the type ID of this website. 267 * 268 * @return the type ID of this website 269 */ 270 public long getTypeId(); 271 272 /** 273 * Sets the type ID of this website. 274 * 275 * @param typeId the type ID of this website 276 */ 277 public void setTypeId(long typeId); 278 279 /** 280 * Returns the primary of this website. 281 * 282 * @return the primary of this website 283 */ 284 public boolean getPrimary(); 285 286 /** 287 * Returns <code>true</code> if this website is primary. 288 * 289 * @return <code>true</code> if this website is primary; <code>false</code> otherwise 290 */ 291 public boolean isPrimary(); 292 293 /** 294 * Sets whether this website is primary. 295 * 296 * @param primary the primary of this website 297 */ 298 public void setPrimary(boolean primary); 299 300 /** 301 * Returns the last publish date of this website. 302 * 303 * @return the last publish date of this website 304 */ 305 public Date getLastPublishDate(); 306 307 /** 308 * Sets the last publish date of this website. 309 * 310 * @param lastPublishDate the last publish date of this website 311 */ 312 public void setLastPublishDate(Date lastPublishDate); 313 314 @Override 315 public boolean isNew(); 316 317 @Override 318 public void setNew(boolean n); 319 320 @Override 321 public boolean isCachedModel(); 322 323 @Override 324 public void setCachedModel(boolean cachedModel); 325 326 @Override 327 public boolean isEscapedModel(); 328 329 @Override 330 public Serializable getPrimaryKeyObj(); 331 332 @Override 333 public void setPrimaryKeyObj(Serializable primaryKeyObj); 334 335 @Override 336 public ExpandoBridge getExpandoBridge(); 337 338 @Override 339 public void setExpandoBridgeAttributes(BaseModel<?> baseModel); 340 341 @Override 342 public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); 343 344 @Override 345 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 346 347 @Override 348 public Object clone(); 349 350 @Override 351 public int compareTo(com.liferay.portal.model.Website website); 352 353 @Override 354 public int hashCode(); 355 356 @Override 357 public CacheModel<com.liferay.portal.model.Website> toCacheModel(); 358 359 @Override 360 public com.liferay.portal.model.Website toEscapedModel(); 361 362 @Override 363 public com.liferay.portal.model.Website toUnescapedModel(); 364 365 @Override 366 public String toString(); 367 368 @Override 369 public String toXmlString(); 370 }