001    /**
002     * Copyright (c) 2000-2010 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    
018    /**
019     * <p>
020     * This interface is a model that represents the Organization_ table in the
021     * database.
022     * </p>
023     *
024     * <p>
025     * Customize {@link com.liferay.portal.model.impl.OrganizationImpl} and rerun the
026     * ServiceBuilder to generate the new methods.
027     * </p>
028     *
029     * @author    Brian Wing Shun Chan
030     * @see       OrganizationModel
031     * @see       com.liferay.portal.model.impl.OrganizationImpl
032     * @see       com.liferay.portal.model.impl.OrganizationModelImpl
033     * @generated
034     */
035    public interface Organization extends OrganizationModel {
036            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
037                    throws com.liferay.portal.kernel.exception.PortalException,
038                            com.liferay.portal.kernel.exception.SystemException;
039    
040            public com.liferay.portal.model.Organization getParentOrganization()
041                    throws com.liferay.portal.kernel.exception.PortalException,
042                            com.liferay.portal.kernel.exception.SystemException;
043    
044            public com.liferay.portal.model.Address getAddress();
045    
046            public java.util.List<com.liferay.portal.model.Address> getAddresses()
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public java.lang.String[] getChildrenTypes();
050    
051            public java.util.List<com.liferay.portal.model.Organization> getDescendants()
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public com.liferay.portal.model.Group getGroup();
055    
056            public long getLogoId();
057    
058            public javax.portlet.PortletPreferences getPreferences()
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public int getPrivateLayoutsPageCount();
062    
063            public int getPublicLayoutsPageCount();
064    
065            public java.util.Set<java.lang.String> getReminderQueryQuestions(
066                    java.util.Locale locale)
067                    throws com.liferay.portal.kernel.exception.SystemException;
068    
069            public java.util.Set<java.lang.String> getReminderQueryQuestions(
070                    java.lang.String languageId)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations()
074                    throws com.liferay.portal.kernel.exception.SystemException;
075    
076            public int getSuborganizationsSize()
077                    throws com.liferay.portal.kernel.exception.SystemException;
078    
079            public int getTypeOrder();
080    
081            public boolean hasPrivateLayouts();
082    
083            public boolean hasPublicLayouts();
084    
085            public boolean hasSuborganizations()
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            public boolean isParentable();
089    
090            public boolean isRoot();
091    }