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 Group service. Represents a row in the "Group_" database table, with each column mapped to a property of this class.
023     *
024     * @author Brian Wing Shun Chan
025     * @see GroupModel
026     * @see com.liferay.portal.model.impl.GroupImpl
027     * @see com.liferay.portal.model.impl.GroupModelImpl
028     * @generated
029     */
030    @ProviderType
031    public interface Group extends GroupModel, PersistedModel, TreeModel {
032            /*
033             * NOTE FOR DEVELOPERS:
034             *
035             * Never modify this interface directly. Add methods to {@link com.liferay.portal.model.impl.GroupImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
036             */
037            public static final Accessor<Group, Long> GROUP_ID_ACCESSOR = new Accessor<Group, Long>() {
038                            @Override
039                            public Long get(Group group) {
040                                    return group.getGroupId();
041                            }
042    
043                            @Override
044                            public Class<Long> getAttributeClass() {
045                                    return Long.class;
046                            }
047    
048                            @Override
049                            public Class<Group> getTypeClass() {
050                                    return Group.class;
051                            }
052                    };
053    
054            public void clearStagingGroup();
055    
056            public java.util.List<com.liferay.portal.model.Group> getAncestors()
057                    throws com.liferay.portal.kernel.exception.PortalException;
058    
059            public java.util.List<com.liferay.portal.model.Group> getChildren(
060                    boolean site);
061    
062            /**
063            * @deprecated As of 7.0.0, replaced by {@link
064            #getChildrenWithLayouts(boolean, int, int,
065            OrderByComparator)}
066            */
067            @java.lang.Deprecated()
068            public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
069                    boolean site, int start, int end);
070    
071            public java.util.List<com.liferay.portal.model.Group> getChildrenWithLayouts(
072                    boolean site, int start, int end,
073                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Group> obc);
074    
075            public int getChildrenWithLayoutsCount(boolean site);
076    
077            public long getDefaultPrivatePlid();
078    
079            public long getDefaultPublicPlid();
080    
081            public java.util.List<com.liferay.portal.model.Group> getDescendants(
082                    boolean site);
083    
084            public java.lang.String getDescriptiveName()
085                    throws com.liferay.portal.kernel.exception.PortalException;
086    
087            public java.lang.String getDescriptiveName(java.util.Locale locale)
088                    throws com.liferay.portal.kernel.exception.PortalException;
089    
090            public java.lang.String getDisplayURL(
091                    com.liferay.portal.theme.ThemeDisplay themeDisplay);
092    
093            public java.lang.String getDisplayURL(
094                    com.liferay.portal.theme.ThemeDisplay themeDisplay,
095                    boolean privateLayout);
096    
097            public java.lang.String getIconCssClass();
098    
099            public java.lang.String getIconURL(
100                    com.liferay.portal.theme.ThemeDisplay themeDisplay);
101    
102            public java.lang.String getLayoutRootNodeName(boolean privateLayout,
103                    java.util.Locale locale);
104    
105            public com.liferay.portal.model.Group getLiveGroup();
106    
107            public java.lang.String getLiveParentTypeSettingsProperty(
108                    java.lang.String key);
109    
110            public long getOrganizationId();
111    
112            public com.liferay.portal.model.Group getParentGroup()
113                    throws com.liferay.portal.kernel.exception.PortalException;
114    
115            public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties();
116    
117            public java.lang.String getPathFriendlyURL(boolean privateLayout,
118                    com.liferay.portal.theme.ThemeDisplay themeDisplay);
119    
120            public com.liferay.portal.model.LayoutSet getPrivateLayoutSet();
121    
122            public int getPrivateLayoutsPageCount();
123    
124            public com.liferay.portal.model.LayoutSet getPublicLayoutSet();
125    
126            public int getPublicLayoutsPageCount();
127    
128            public long getRemoteLiveGroupId();
129    
130            public java.lang.String getScopeDescriptiveName(
131                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
132                    throws com.liferay.portal.kernel.exception.PortalException;
133    
134            public java.lang.String getScopeLabel(
135                    com.liferay.portal.theme.ThemeDisplay themeDisplay);
136    
137            public com.liferay.portal.model.Group getStagingGroup();
138    
139            public java.lang.String getTypeLabel();
140    
141            public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties();
142    
143            public java.lang.String getTypeSettingsProperty(java.lang.String key);
144    
145            public java.lang.String getUnambiguousName(java.lang.String name,
146                    java.util.Locale locale);
147    
148            public boolean hasAncestor(long groupId);
149    
150            public boolean hasLocalOrRemoteStagingGroup();
151    
152            public boolean hasPrivateLayouts();
153    
154            public boolean hasPublicLayouts();
155    
156            public boolean hasRemoteStagingGroup();
157    
158            public boolean hasStagingGroup();
159    
160            /**
161            * @deprecated As of 7.0.0, replaced by {@link #hasAncestor}
162            */
163            @java.lang.Deprecated()
164            public boolean isChild(long groupId);
165    
166            /**
167            * @deprecated As of 6.1.0, renamed to {@link #isRegularSite}
168            */
169            @java.lang.Deprecated()
170            public boolean isCommunity();
171    
172            public boolean isCompany();
173    
174            public boolean isCompanyStagingGroup();
175    
176            public boolean isControlPanel();
177    
178            public boolean isGuest();
179    
180            public boolean isInStagingPortlet(java.lang.String portletId);
181    
182            public boolean isLayout();
183    
184            public boolean isLayoutPrototype();
185    
186            public boolean isLayoutSetPrototype();
187    
188            public boolean isLimitedToParentSiteMembers();
189    
190            public boolean isOrganization();
191    
192            public boolean isRegularSite();
193    
194            public boolean isRoot();
195    
196            public boolean isShowSite(
197                    com.liferay.portal.security.permission.PermissionChecker permissionChecker,
198                    boolean privateSite)
199                    throws com.liferay.portal.kernel.exception.PortalException;
200    
201            public boolean isStaged();
202    
203            public boolean isStagedPortlet(java.lang.String portletId);
204    
205            public boolean isStagedRemotely();
206    
207            public boolean isStagingGroup();
208    
209            public boolean isUser();
210    
211            public boolean isUserGroup();
212    
213            public boolean isUserPersonalSite();
214    
215            public void setTypeSettingsProperties(
216                    com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties);
217    }