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.util.Accessor;
018    
019    /**
020     * The extended model interface for the Organization service. Represents a row in the "Organization_" database table, with each column mapped to a property of this class.
021     *
022     * @author Brian Wing Shun Chan
023     * @see OrganizationModel
024     * @see com.liferay.portal.model.impl.OrganizationImpl
025     * @see com.liferay.portal.model.impl.OrganizationModelImpl
026     * @generated
027     */
028    public interface Organization extends OrganizationModel, PersistedModel {
029            /*
030             * NOTE FOR DEVELOPERS:
031             *
032             * Never modify this interface directly. Add methods to {@link com.liferay.portal.model.impl.OrganizationImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
033             */
034            public static final Accessor<Organization, String> NAME_ACCESSOR = new Accessor<Organization, String>() {
035                            public String get(Organization organization) {
036                                    return organization.getName();
037                            }
038                    };
039    
040            public com.liferay.portal.model.Address getAddress();
041    
042            public java.util.List<com.liferay.portal.model.Address> getAddresses()
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
046                    throws com.liferay.portal.kernel.exception.PortalException,
047                            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 com.liferay.portal.model.Organization getParentOrganization()
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException;
061    
062            public javax.portlet.PortletPreferences getPreferences()
063                    throws com.liferay.portal.kernel.exception.SystemException;
064    
065            public int getPrivateLayoutsPageCount();
066    
067            public int getPublicLayoutsPageCount();
068    
069            public java.util.Set<java.lang.String> getReminderQueryQuestions(
070                    java.util.Locale locale)
071                    throws com.liferay.portal.kernel.exception.SystemException;
072    
073            public java.util.Set<java.lang.String> getReminderQueryQuestions(
074                    java.lang.String languageId)
075                    throws com.liferay.portal.kernel.exception.SystemException;
076    
077            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations()
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            public int getSuborganizationsSize()
081                    throws com.liferay.portal.kernel.exception.SystemException;
082    
083            public int getTypeOrder();
084    
085            public boolean hasPrivateLayouts();
086    
087            public boolean hasPublicLayouts();
088    
089            public boolean hasSuborganizations()
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public boolean isParentable();
093    
094            public boolean isRoot();
095    }