001 /** 002 * Copyright (c) 2000-2011 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.bean.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 * The base model interface for the Organization service. Represents a row in the "Organization_" database table, with each column mapped to a property of this class. 026 * 027 * <p> 028 * This interface and its corresponding implementation {@link com.liferay.portal.model.impl.OrganizationModelImpl} 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.OrganizationImpl}. 029 * </p> 030 * 031 * @author Brian Wing Shun Chan 032 * @see Organization 033 * @see com.liferay.portal.model.impl.OrganizationImpl 034 * @see com.liferay.portal.model.impl.OrganizationModelImpl 035 * @generated 036 */ 037 public interface OrganizationModel extends BaseModel<Organization> { 038 /* 039 * NOTE FOR DEVELOPERS: 040 * 041 * Never modify or reference this interface directly. All methods that expect a organization model instance should use the {@link Organization} interface instead. 042 */ 043 044 /** 045 * Returns the primary key of this organization. 046 * 047 * @return the primary key of this organization 048 */ 049 public long getPrimaryKey(); 050 051 /** 052 * Sets the primary key of this organization. 053 * 054 * @param primaryKey the primary key of this organization 055 */ 056 public void setPrimaryKey(long primaryKey); 057 058 /** 059 * Returns the organization ID of this organization. 060 * 061 * @return the organization ID of this organization 062 */ 063 public long getOrganizationId(); 064 065 /** 066 * Sets the organization ID of this organization. 067 * 068 * @param organizationId the organization ID of this organization 069 */ 070 public void setOrganizationId(long organizationId); 071 072 /** 073 * Returns the company ID of this organization. 074 * 075 * @return the company ID of this organization 076 */ 077 public long getCompanyId(); 078 079 /** 080 * Sets the company ID of this organization. 081 * 082 * @param companyId the company ID of this organization 083 */ 084 public void setCompanyId(long companyId); 085 086 /** 087 * Returns the parent organization ID of this organization. 088 * 089 * @return the parent organization ID of this organization 090 */ 091 public long getParentOrganizationId(); 092 093 /** 094 * Sets the parent organization ID of this organization. 095 * 096 * @param parentOrganizationId the parent organization ID of this organization 097 */ 098 public void setParentOrganizationId(long parentOrganizationId); 099 100 /** 101 * Returns the left organization ID of this organization. 102 * 103 * @return the left organization ID of this organization 104 */ 105 public long getLeftOrganizationId(); 106 107 /** 108 * Sets the left organization ID of this organization. 109 * 110 * @param leftOrganizationId the left organization ID of this organization 111 */ 112 public void setLeftOrganizationId(long leftOrganizationId); 113 114 /** 115 * Returns the right organization ID of this organization. 116 * 117 * @return the right organization ID of this organization 118 */ 119 public long getRightOrganizationId(); 120 121 /** 122 * Sets the right organization ID of this organization. 123 * 124 * @param rightOrganizationId the right organization ID of this organization 125 */ 126 public void setRightOrganizationId(long rightOrganizationId); 127 128 /** 129 * Returns the name of this organization. 130 * 131 * @return the name of this organization 132 */ 133 @AutoEscape 134 public String getName(); 135 136 /** 137 * Sets the name of this organization. 138 * 139 * @param name the name of this organization 140 */ 141 public void setName(String name); 142 143 /** 144 * Returns the type of this organization. 145 * 146 * @return the type of this organization 147 */ 148 public String getType(); 149 150 /** 151 * Sets the type of this organization. 152 * 153 * @param type the type of this organization 154 */ 155 public void setType(String type); 156 157 /** 158 * Returns the recursable of this organization. 159 * 160 * @return the recursable of this organization 161 */ 162 public boolean getRecursable(); 163 164 /** 165 * Returns <code>true</code> if this organization is recursable. 166 * 167 * @return <code>true</code> if this organization is recursable; <code>false</code> otherwise 168 */ 169 public boolean isRecursable(); 170 171 /** 172 * Sets whether this organization is recursable. 173 * 174 * @param recursable the recursable of this organization 175 */ 176 public void setRecursable(boolean recursable); 177 178 /** 179 * Returns the region ID of this organization. 180 * 181 * @return the region ID of this organization 182 */ 183 public long getRegionId(); 184 185 /** 186 * Sets the region ID of this organization. 187 * 188 * @param regionId the region ID of this organization 189 */ 190 public void setRegionId(long regionId); 191 192 /** 193 * Returns the country ID of this organization. 194 * 195 * @return the country ID of this organization 196 */ 197 public long getCountryId(); 198 199 /** 200 * Sets the country ID of this organization. 201 * 202 * @param countryId the country ID of this organization 203 */ 204 public void setCountryId(long countryId); 205 206 /** 207 * Returns the status ID of this organization. 208 * 209 * @return the status ID of this organization 210 */ 211 public int getStatusId(); 212 213 /** 214 * Sets the status ID of this organization. 215 * 216 * @param statusId the status ID of this organization 217 */ 218 public void setStatusId(int statusId); 219 220 /** 221 * Returns the comments of this organization. 222 * 223 * @return the comments of this organization 224 */ 225 @AutoEscape 226 public String getComments(); 227 228 /** 229 * Sets the comments of this organization. 230 * 231 * @param comments the comments of this organization 232 */ 233 public void setComments(String comments); 234 235 public boolean isNew(); 236 237 public void setNew(boolean n); 238 239 public boolean isCachedModel(); 240 241 public void setCachedModel(boolean cachedModel); 242 243 public boolean isEscapedModel(); 244 245 public Serializable getPrimaryKeyObj(); 246 247 public void setPrimaryKeyObj(Serializable primaryKeyObj); 248 249 public ExpandoBridge getExpandoBridge(); 250 251 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 252 253 public Object clone(); 254 255 public int compareTo(Organization organization); 256 257 public int hashCode(); 258 259 public CacheModel<Organization> toCacheModel(); 260 261 public Organization toEscapedModel(); 262 263 public String toString(); 264 265 public String toXmlString(); 266 }