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 com.liferay.portal.kernel.bean.AutoEscape;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.service.ServiceContext;
020    
021    import com.liferay.portlet.expando.model.ExpandoBridge;
022    
023    import java.io.Serializable;
024    
025    import java.util.Date;
026    
027    /**
028     * 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.
029     *
030     * <p>
031     * 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}.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see Organization
036     * @see com.liferay.portal.model.impl.OrganizationImpl
037     * @see com.liferay.portal.model.impl.OrganizationModelImpl
038     * @generated
039     */
040    public interface OrganizationModel extends BaseModel<Organization>, StagedModel {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. All methods that expect a organization model instance should use the {@link Organization} interface instead.
045             */
046    
047            /**
048             * Returns the primary key of this organization.
049             *
050             * @return the primary key of this organization
051             */
052            public long getPrimaryKey();
053    
054            /**
055             * Sets the primary key of this organization.
056             *
057             * @param primaryKey the primary key of this organization
058             */
059            public void setPrimaryKey(long primaryKey);
060    
061            /**
062             * Returns the uuid of this organization.
063             *
064             * @return the uuid of this organization
065             */
066            @AutoEscape
067            public String getUuid();
068    
069            /**
070             * Sets the uuid of this organization.
071             *
072             * @param uuid the uuid of this organization
073             */
074            public void setUuid(String uuid);
075    
076            /**
077             * Returns the organization ID of this organization.
078             *
079             * @return the organization ID of this organization
080             */
081            public long getOrganizationId();
082    
083            /**
084             * Sets the organization ID of this organization.
085             *
086             * @param organizationId the organization ID of this organization
087             */
088            public void setOrganizationId(long organizationId);
089    
090            /**
091             * Returns the company ID of this organization.
092             *
093             * @return the company ID of this organization
094             */
095            public long getCompanyId();
096    
097            /**
098             * Sets the company ID of this organization.
099             *
100             * @param companyId the company ID of this organization
101             */
102            public void setCompanyId(long companyId);
103    
104            /**
105             * Returns the user ID of this organization.
106             *
107             * @return the user ID of this organization
108             */
109            public long getUserId();
110    
111            /**
112             * Sets the user ID of this organization.
113             *
114             * @param userId the user ID of this organization
115             */
116            public void setUserId(long userId);
117    
118            /**
119             * Returns the user uuid of this organization.
120             *
121             * @return the user uuid of this organization
122             * @throws SystemException if a system exception occurred
123             */
124            public String getUserUuid() throws SystemException;
125    
126            /**
127             * Sets the user uuid of this organization.
128             *
129             * @param userUuid the user uuid of this organization
130             */
131            public void setUserUuid(String userUuid);
132    
133            /**
134             * Returns the user name of this organization.
135             *
136             * @return the user name of this organization
137             */
138            @AutoEscape
139            public String getUserName();
140    
141            /**
142             * Sets the user name of this organization.
143             *
144             * @param userName the user name of this organization
145             */
146            public void setUserName(String userName);
147    
148            /**
149             * Returns the create date of this organization.
150             *
151             * @return the create date of this organization
152             */
153            public Date getCreateDate();
154    
155            /**
156             * Sets the create date of this organization.
157             *
158             * @param createDate the create date of this organization
159             */
160            public void setCreateDate(Date createDate);
161    
162            /**
163             * Returns the modified date of this organization.
164             *
165             * @return the modified date of this organization
166             */
167            public Date getModifiedDate();
168    
169            /**
170             * Sets the modified date of this organization.
171             *
172             * @param modifiedDate the modified date of this organization
173             */
174            public void setModifiedDate(Date modifiedDate);
175    
176            /**
177             * Returns the parent organization ID of this organization.
178             *
179             * @return the parent organization ID of this organization
180             */
181            public long getParentOrganizationId();
182    
183            /**
184             * Sets the parent organization ID of this organization.
185             *
186             * @param parentOrganizationId the parent organization ID of this organization
187             */
188            public void setParentOrganizationId(long parentOrganizationId);
189    
190            /**
191             * Returns the tree path of this organization.
192             *
193             * @return the tree path of this organization
194             */
195            @AutoEscape
196            public String getTreePath();
197    
198            /**
199             * Sets the tree path of this organization.
200             *
201             * @param treePath the tree path of this organization
202             */
203            public void setTreePath(String treePath);
204    
205            /**
206             * Returns the name of this organization.
207             *
208             * @return the name of this organization
209             */
210            @AutoEscape
211            public String getName();
212    
213            /**
214             * Sets the name of this organization.
215             *
216             * @param name the name of this organization
217             */
218            public void setName(String name);
219    
220            /**
221             * Returns the type of this organization.
222             *
223             * @return the type of this organization
224             */
225            public String getType();
226    
227            /**
228             * Sets the type of this organization.
229             *
230             * @param type the type of this organization
231             */
232            public void setType(String type);
233    
234            /**
235             * Returns the recursable of this organization.
236             *
237             * @return the recursable of this organization
238             */
239            public boolean getRecursable();
240    
241            /**
242             * Returns <code>true</code> if this organization is recursable.
243             *
244             * @return <code>true</code> if this organization is recursable; <code>false</code> otherwise
245             */
246            public boolean isRecursable();
247    
248            /**
249             * Sets whether this organization is recursable.
250             *
251             * @param recursable the recursable of this organization
252             */
253            public void setRecursable(boolean recursable);
254    
255            /**
256             * Returns the region ID of this organization.
257             *
258             * @return the region ID of this organization
259             */
260            public long getRegionId();
261    
262            /**
263             * Sets the region ID of this organization.
264             *
265             * @param regionId the region ID of this organization
266             */
267            public void setRegionId(long regionId);
268    
269            /**
270             * Returns the country ID of this organization.
271             *
272             * @return the country ID of this organization
273             */
274            public long getCountryId();
275    
276            /**
277             * Sets the country ID of this organization.
278             *
279             * @param countryId the country ID of this organization
280             */
281            public void setCountryId(long countryId);
282    
283            /**
284             * Returns the status ID of this organization.
285             *
286             * @return the status ID of this organization
287             */
288            public int getStatusId();
289    
290            /**
291             * Sets the status ID of this organization.
292             *
293             * @param statusId the status ID of this organization
294             */
295            public void setStatusId(int statusId);
296    
297            /**
298             * Returns the comments of this organization.
299             *
300             * @return the comments of this organization
301             */
302            @AutoEscape
303            public String getComments();
304    
305            /**
306             * Sets the comments of this organization.
307             *
308             * @param comments the comments of this organization
309             */
310            public void setComments(String comments);
311    
312            public boolean isNew();
313    
314            public void setNew(boolean n);
315    
316            public boolean isCachedModel();
317    
318            public void setCachedModel(boolean cachedModel);
319    
320            public boolean isEscapedModel();
321    
322            public Serializable getPrimaryKeyObj();
323    
324            public void setPrimaryKeyObj(Serializable primaryKeyObj);
325    
326            public ExpandoBridge getExpandoBridge();
327    
328            public void setExpandoBridgeAttributes(BaseModel<?> baseModel);
329    
330            public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge);
331    
332            public void setExpandoBridgeAttributes(ServiceContext serviceContext);
333    
334            public Object clone();
335    
336            public int compareTo(Organization organization);
337    
338            public int hashCode();
339    
340            public CacheModel<Organization> toCacheModel();
341    
342            public Organization toEscapedModel();
343    
344            public Organization toUnescapedModel();
345    
346            public String toString();
347    
348            public String toXmlString();
349    }