001    /**
002     * Copyright (c) 2000-present 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                            @Override
045                            public Class<String> getAttributeClass() {
046                                    return String.class;
047                            }
048    
049                            @Override
050                            public Class<Organization> getTypeClass() {
051                                    return Organization.class;
052                            }
053                    };
054    
055            public com.liferay.portal.model.Address getAddress();
056    
057            public java.util.List<com.liferay.portal.model.Address> getAddresses();
058    
059            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
060                    throws com.liferay.portal.kernel.exception.PortalException;
061    
062            public java.lang.String[] getChildrenTypes();
063    
064            public java.util.List<com.liferay.portal.model.Organization> getDescendants();
065    
066            public com.liferay.portal.model.Group getGroup();
067    
068            public long getGroupId();
069    
070            public com.liferay.portal.model.Organization getParentOrganization()
071                    throws com.liferay.portal.kernel.exception.PortalException;
072    
073            public java.lang.String getParentOrganizationName();
074    
075            public javax.portlet.PortletPreferences getPreferences();
076    
077            public int getPrivateLayoutsPageCount();
078    
079            public int getPublicLayoutsPageCount();
080    
081            public java.util.Set<java.lang.String> getReminderQueryQuestions(
082                    java.util.Locale locale);
083    
084            public java.util.Set<java.lang.String> getReminderQueryQuestions(
085                    java.lang.String languageId);
086    
087            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations();
088    
089            public int getSuborganizationsSize();
090    
091            public int getTypeOrder();
092    
093            public boolean hasPrivateLayouts();
094    
095            public boolean hasPublicLayouts();
096    
097            public boolean hasSuborganizations();
098    
099            public boolean isParentable();
100    
101            public boolean isRoot();
102    }