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