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 long[] getAncestorOrganizationIds()
060                    throws com.liferay.portal.kernel.exception.PortalException;
061    
062            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
063                    throws com.liferay.portal.kernel.exception.PortalException;
064    
065            public java.lang.String[] getChildrenTypes();
066    
067            public java.util.List<com.liferay.portal.model.Organization> getDescendants();
068    
069            public com.liferay.portal.model.Group getGroup();
070    
071            public long getGroupId();
072    
073            public com.liferay.portal.model.Organization getParentOrganization()
074                    throws com.liferay.portal.kernel.exception.PortalException;
075    
076            public java.lang.String getParentOrganizationName();
077    
078            public javax.portlet.PortletPreferences getPreferences();
079    
080            public int getPrivateLayoutsPageCount();
081    
082            public int getPublicLayoutsPageCount();
083    
084            public java.util.Set<java.lang.String> getReminderQueryQuestions(
085                    java.util.Locale locale);
086    
087            public java.util.Set<java.lang.String> getReminderQueryQuestions(
088                    java.lang.String languageId);
089    
090            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations();
091    
092            public int getSuborganizationsSize();
093    
094            public int getTypeOrder();
095    
096            public boolean hasPrivateLayouts();
097    
098            public boolean hasPublicLayouts();
099    
100            public boolean hasSuborganizations();
101    
102            public boolean isParentable();
103    
104            public boolean isRoot();
105    }