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