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, Long> ORGANIZATION_ID_ACCESSOR = new Accessor<Organization, Long>() {
039                            @Override
040                            public Long get(Organization organization) {
041                                    return organization.getOrganizationId();
042                            }
043    
044                            @Override
045                            public Class<Long> getAttributeClass() {
046                                    return Long.class;
047                            }
048    
049                            @Override
050                            public Class<Organization> getTypeClass() {
051                                    return Organization.class;
052                            }
053                    };
054    
055            public static final Accessor<Organization, String> NAME_ACCESSOR = new Accessor<Organization, String>() {
056                            @Override
057                            public String get(Organization organization) {
058                                    return organization.getName();
059                            }
060    
061                            @Override
062                            public Class<String> getAttributeClass() {
063                                    return String.class;
064                            }
065    
066                            @Override
067                            public Class<Organization> getTypeClass() {
068                                    return Organization.class;
069                            }
070                    };
071    
072            public com.liferay.portal.model.Address getAddress();
073    
074            public java.util.List<com.liferay.portal.model.Address> getAddresses();
075    
076            public long[] getAncestorOrganizationIds()
077                    throws com.liferay.portal.kernel.exception.PortalException;
078    
079            public java.util.List<com.liferay.portal.model.Organization> getAncestors()
080                    throws com.liferay.portal.kernel.exception.PortalException;
081    
082            public java.lang.String[] getChildrenTypes();
083    
084            public java.util.List<com.liferay.portal.model.Organization> getDescendants();
085    
086            public com.liferay.portal.model.Group getGroup();
087    
088            public long getGroupId();
089    
090            public com.liferay.portal.model.Organization getParentOrganization()
091                    throws com.liferay.portal.kernel.exception.PortalException;
092    
093            public java.lang.String getParentOrganizationName();
094    
095            public javax.portlet.PortletPreferences getPreferences();
096    
097            public int getPrivateLayoutsPageCount();
098    
099            public int getPublicLayoutsPageCount();
100    
101            public java.util.Set<java.lang.String> getReminderQueryQuestions(
102                    java.util.Locale locale);
103    
104            public java.util.Set<java.lang.String> getReminderQueryQuestions(
105                    java.lang.String languageId);
106    
107            public java.util.List<com.liferay.portal.model.Organization> getSuborganizations();
108    
109            public int getSuborganizationsSize();
110    
111            public int getTypeOrder();
112    
113            public boolean hasPrivateLayouts();
114    
115            public boolean hasPublicLayouts();
116    
117            public boolean hasSuborganizations();
118    
119            public boolean isParentable();
120    
121            public boolean isRoot();
122    }