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 aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.util.Accessor;
020    
021    /**
022     * 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.
023     *
024     * @author Brian Wing Shun Chan
025     * @see OrganizationModel
026     * @see com.liferay.portal.model.impl.OrganizationImpl
027     * @see com.liferay.portal.model.impl.OrganizationModelImpl
028     * @generated
029     */
030    @ProviderType
031    public interface Organization extends OrganizationModel, PersistedModel,
032            TreeModel {
033            /*
034             * NOTE FOR DEVELOPERS:
035             *
036             * 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.
037             */
038            public static final Accessor<Organization, String> NAME_ACCESSOR = new Accessor<Organization, String>() {
039                            @Override
040                            public String get(Organization organization) {
041                                    return organization.getName();
042                            }
043                    };
044    
045            public com.liferay.portal.model.Address getAddress();
046    
047            public java.util.List<com.liferay.portal.model.Address> getAddresses()
048                    throws com.liferay.portal.kernel.exception.SystemException;
049    
050            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
051                    throws com.liferay.portal.kernel.exception.PortalException,
052                            com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.lang.String[] getChildrenTypes();
055    
056            public java.util.List<com.liferay.portal.model.Organization> getDescendants()
057                    throws com.liferay.portal.kernel.exception.SystemException;
058    
059            public com.liferay.portal.model.Group getGroup();
060    
061            public long getGroupId();
062    
063            public long getLogoId();
064    
065            public com.liferay.portal.model.Organization getParentOrganization()
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException;
068    
069            public javax.portlet.PortletPreferences getPreferences()
070                    throws com.liferay.portal.kernel.exception.SystemException;
071    
072            public int getPrivateLayoutsPageCount();
073    
074            public int getPublicLayoutsPageCount();
075    
076            public java.util.Set<java.lang.String> getReminderQueryQuestions(
077                    java.util.Locale locale)
078                    throws com.liferay.portal.kernel.exception.SystemException;
079    
080            public java.util.Set<java.lang.String> getReminderQueryQuestions(
081                    java.lang.String languageId)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations()
085                    throws com.liferay.portal.kernel.exception.SystemException;
086    
087            public int getSuborganizationsSize()
088                    throws com.liferay.portal.kernel.exception.SystemException;
089    
090            public int getTypeOrder();
091    
092            public boolean hasPrivateLayouts();
093    
094            public boolean hasPublicLayouts();
095    
096            public boolean hasSuborganizations()
097                    throws com.liferay.portal.kernel.exception.SystemException;
098    
099            public boolean isParentable();
100    
101            public boolean isRoot();
102    }