001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portal.model; 016 017 import com.liferay.portal.kernel.annotation.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 * <p> 032 * Never modify or reference this interface directly. All methods that expect a organization model instance should use the {@link Organization} interface instead. 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see Organization 037 * @see com.liferay.portal.model.impl.OrganizationImpl 038 * @see com.liferay.portal.model.impl.OrganizationModelImpl 039 * @generated 040 */ 041 public interface OrganizationModel extends BaseModel<Organization> { 042 /** 043 * Gets the primary key of this organization. 044 * 045 * @return the primary key of this organization 046 */ 047 public long getPrimaryKey(); 048 049 /** 050 * Sets the primary key of this organization 051 * 052 * @param pk the primary key of this organization 053 */ 054 public void setPrimaryKey(long pk); 055 056 /** 057 * Gets the organization id of this organization. 058 * 059 * @return the organization id of this organization 060 */ 061 public long getOrganizationId(); 062 063 /** 064 * Sets the organization id of this organization. 065 * 066 * @param organizationId the organization id of this organization 067 */ 068 public void setOrganizationId(long organizationId); 069 070 /** 071 * Gets the company id of this organization. 072 * 073 * @return the company id of this organization 074 */ 075 public long getCompanyId(); 076 077 /** 078 * Sets the company id of this organization. 079 * 080 * @param companyId the company id of this organization 081 */ 082 public void setCompanyId(long companyId); 083 084 /** 085 * Gets the parent organization id of this organization. 086 * 087 * @return the parent organization id of this organization 088 */ 089 public long getParentOrganizationId(); 090 091 /** 092 * Sets the parent organization id of this organization. 093 * 094 * @param parentOrganizationId the parent organization id of this organization 095 */ 096 public void setParentOrganizationId(long parentOrganizationId); 097 098 /** 099 * Gets the left organization id of this organization. 100 * 101 * @return the left organization id of this organization 102 */ 103 public long getLeftOrganizationId(); 104 105 /** 106 * Sets the left organization id of this organization. 107 * 108 * @param leftOrganizationId the left organization id of this organization 109 */ 110 public void setLeftOrganizationId(long leftOrganizationId); 111 112 /** 113 * Gets the right organization id of this organization. 114 * 115 * @return the right organization id of this organization 116 */ 117 public long getRightOrganizationId(); 118 119 /** 120 * Sets the right organization id of this organization. 121 * 122 * @param rightOrganizationId the right organization id of this organization 123 */ 124 public void setRightOrganizationId(long rightOrganizationId); 125 126 /** 127 * Gets the name of this organization. 128 * 129 * @return the name of this organization 130 */ 131 @AutoEscape 132 public String getName(); 133 134 /** 135 * Sets the name of this organization. 136 * 137 * @param name the name of this organization 138 */ 139 public void setName(String name); 140 141 /** 142 * Gets the type of this organization. 143 * 144 * @return the type of this organization 145 */ 146 public String getType(); 147 148 /** 149 * Sets the type of this organization. 150 * 151 * @param type the type of this organization 152 */ 153 public void setType(String type); 154 155 /** 156 * Gets the recursable of this organization. 157 * 158 * @return the recursable of this organization 159 */ 160 public boolean getRecursable(); 161 162 /** 163 * Determines whether this organization is recursable. 164 * 165 * @return whether this organization is recursable 166 */ 167 public boolean isRecursable(); 168 169 /** 170 * Sets whether this {$entity.humanName} is recursable. 171 * 172 * @param recursable the recursable of this organization 173 */ 174 public void setRecursable(boolean recursable); 175 176 /** 177 * Gets the region id of this organization. 178 * 179 * @return the region id of this organization 180 */ 181 public long getRegionId(); 182 183 /** 184 * Sets the region id of this organization. 185 * 186 * @param regionId the region id of this organization 187 */ 188 public void setRegionId(long regionId); 189 190 /** 191 * Gets the country id of this organization. 192 * 193 * @return the country id of this organization 194 */ 195 public long getCountryId(); 196 197 /** 198 * Sets the country id of this organization. 199 * 200 * @param countryId the country id of this organization 201 */ 202 public void setCountryId(long countryId); 203 204 /** 205 * Gets the status id of this organization. 206 * 207 * @return the status id of this organization 208 */ 209 public int getStatusId(); 210 211 /** 212 * Sets the status id of this organization. 213 * 214 * @param statusId the status id of this organization 215 */ 216 public void setStatusId(int statusId); 217 218 /** 219 * Gets the comments of this organization. 220 * 221 * @return the comments of this organization 222 */ 223 @AutoEscape 224 public String getComments(); 225 226 /** 227 * Sets the comments of this organization. 228 * 229 * @param comments the comments of this organization 230 */ 231 public void setComments(String comments); 232 233 public boolean isNew(); 234 235 public void setNew(boolean n); 236 237 public boolean isCachedModel(); 238 239 public void setCachedModel(boolean cachedModel); 240 241 public boolean isEscapedModel(); 242 243 public void setEscapedModel(boolean escapedModel); 244 245 public Serializable getPrimaryKeyObj(); 246 247 public ExpandoBridge getExpandoBridge(); 248 249 public void setExpandoBridgeAttributes(ServiceContext serviceContext); 250 251 public Object clone(); 252 253 public int compareTo(Organization organization); 254 255 public int hashCode(); 256 257 public Organization toEscapedModel(); 258 259 public String toString(); 260 261 public String toXmlString(); 262 }