@JSON(strict=true) public class GroupImpl extends GroupBaseImpl
Groups are most used in Liferay as a resource container for permissioning and content scoping purposes. For instance, an site is group, meaning that it can contain layouts, web content, wiki entries, etc. However, a single layout can also be a group containing its own unique set of resources. An example of this would be a site that has several distinct wikis on different layouts. Each of these layouts would have its own group, and all of the nodes in the wiki for a certain layout would be associated with that layout's group. This allows users to be given different permissions on each of the wikis, even though they are all within the same site. In addition to sites and layouts, users and organizations are also groups.
Groups also have a second, partially conflicting purpose in Liferay. For legacy reasons, groups are also the model used to represent sites (known as communities before Liferay v6.1). Confusion may arise from the fact that a site group is both the resource container and the site itself, whereas a layout or organization would have both a primary model and an associated group.
ACTIVE_COLUMN_BITMASK, CLASSNAMEID_COLUMN_BITMASK, CLASSPK_COLUMN_BITMASK, COLUMN_BITMASK_ENABLED, COMPANYID_COLUMN_BITMASK, DATA_SOURCE, ENTITY_CACHE_ENABLED, FINDER_CACHE_ENABLED, FINDER_CACHE_ENABLED_GROUPS_ORGS, FINDER_CACHE_ENABLED_GROUPS_ROLES, FINDER_CACHE_ENABLED_GROUPS_USERGROUPS, FINDER_CACHE_ENABLED_USERS_GROUPS, FRIENDLYURL_COLUMN_BITMASK, GROUPID_COLUMN_BITMASK, GROUPKEY_COLUMN_BITMASK, INHERITCONTENT_COLUMN_BITMASK, LIVEGROUPID_COLUMN_BITMASK, LOCK_EXPIRATION_TIME, MAPPING_TABLE_GROUPS_ORGS_COLUMNS, MAPPING_TABLE_GROUPS_ORGS_NAME, MAPPING_TABLE_GROUPS_ORGS_SQL_CREATE, MAPPING_TABLE_GROUPS_ROLES_COLUMNS, MAPPING_TABLE_GROUPS_ROLES_NAME, MAPPING_TABLE_GROUPS_ROLES_SQL_CREATE, MAPPING_TABLE_GROUPS_USERGROUPS_COLUMNS, MAPPING_TABLE_GROUPS_USERGROUPS_NAME, MAPPING_TABLE_GROUPS_USERGROUPS_SQL_CREATE, MAPPING_TABLE_USERS_GROUPS_COLUMNS, MAPPING_TABLE_USERS_GROUPS_NAME, MAPPING_TABLE_USERS_GROUPS_SQL_CREATE, NAME_COLUMN_BITMASK, ORDER_BY_JPQL, ORDER_BY_SQL, PARENTGROUPID_COLUMN_BITMASK, SESSION_FACTORY, SITE_COLUMN_BITMASK, TABLE_COLUMNS, TABLE_COLUMNS_MAP, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TREEPATH_COLUMN_BITMASK, TX_MANAGER, TYPE_COLUMN_BITMASK, UUID_COLUMN_BITMASK
Constructor and Description |
---|
GroupImpl() |
Modifier and Type | Method and Description |
---|---|
void |
clearStagingGroup() |
List<com.liferay.portal.kernel.model.Group> |
getAncestors() |
List<com.liferay.portal.kernel.model.Group> |
getChildren(boolean site) |
List<com.liferay.portal.kernel.model.Group> |
getChildrenWithLayouts(boolean site,
int start,
int end)
Deprecated.
As of Wilberforce (7.0.x), replaced by
getChildrenWithLayouts(boolean, int, int,
OrderByComparator) |
List<com.liferay.portal.kernel.model.Group> |
getChildrenWithLayouts(boolean site,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> obc) |
int |
getChildrenWithLayoutsCount(boolean site) |
protected long |
getDefaultPlid(boolean privateLayout) |
long |
getDefaultPrivatePlid() |
long |
getDefaultPublicPlid() |
List<com.liferay.portal.kernel.model.Group> |
getDescendants(boolean site) |
String |
getDescriptiveName() |
String |
getDescriptiveName(Locale locale) |
String |
getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
String |
getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
boolean privateLayout) |
String |
getIconCssClass() |
String |
getIconURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
String |
getLayoutRootNodeName(boolean privateLayout,
Locale locale) |
com.liferay.portal.kernel.model.Group |
getLiveGroup() |
String |
getLiveParentTypeSettingsProperty(String key) |
String |
getLogoURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay,
boolean useDefault) |
long |
getOrganizationId() |
com.liferay.portal.kernel.model.Group |
getParentGroup() |
com.liferay.portal.kernel.util.UnicodeProperties |
getParentLiveGroupTypeSettingsProperties() |
String |
getPathFriendlyURL(boolean privateLayout,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
com.liferay.portal.kernel.model.LayoutSet |
getPrivateLayoutSet() |
int |
getPrivateLayoutsPageCount() |
com.liferay.portal.kernel.model.LayoutSet |
getPublicLayoutSet() |
int |
getPublicLayoutsPageCount() |
long |
getRemoteLiveGroupId() |
String |
getScopeDescriptiveName(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
String |
getScopeLabel(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
com.liferay.portal.kernel.model.Group |
getStagingGroup() |
String |
getTypeLabel() |
String |
getTypeSettings() |
com.liferay.portal.kernel.util.UnicodeProperties |
getTypeSettingsProperties() |
String |
getTypeSettingsProperty(String key) |
String |
getUnambiguousName(String name,
Locale locale) |
boolean |
hasAncestor(long groupId) |
boolean |
hasLocalOrRemoteStagingGroup() |
boolean |
hasPrivateLayouts() |
boolean |
hasPublicLayouts() |
boolean |
hasRemoteStagingGroup() |
boolean |
hasStagingGroup() |
boolean |
isChild(long groupId)
Deprecated.
As of Wilberforce (7.0.x), replaced by
hasAncestor(long) |
boolean |
isCompany() |
boolean |
isCompanyStagingGroup() |
boolean |
isControlPanel() |
boolean |
isGuest() |
boolean |
isInStagingPortlet(String portletId) |
boolean |
isLayout() |
boolean |
isLayoutPrototype() |
boolean |
isLayoutSetPrototype() |
boolean |
isLimitedToParentSiteMembers() |
boolean |
isOrganization() |
boolean |
isRegularSite() |
boolean |
isRoot() |
boolean |
isShowSite(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker,
boolean privateSite) |
boolean |
isStaged() |
boolean |
isStagedPortlet(String portletId) |
boolean |
isStagedRemotely() |
boolean |
isStagingGroup() |
boolean |
isUser() |
boolean |
isUserGroup() |
boolean |
isUserPersonalSite() |
void |
setTypeSettings(String typeSettings) |
void |
setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties) |
buildTreePath, persist, updateTreePath
clone, compareTo, equals, getActive, getAvailableLanguageIds, getClassName, getClassNameId, getClassPK, getColumnBitmask, getCompanyId, getCreatorUserId, getCreatorUserUuid, getDefaultLanguageId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getFriendlyURL, getGroupId, getGroupKey, getInheritContent, getLiveGroupId, getManualMembership, getMembershipRestriction, getModelAttributes, getModelClass, getModelClassName, getMvccVersion, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getOriginalActive, getOriginalClassNameId, getOriginalClassPK, getOriginalCompanyId, getOriginalFriendlyURL, getOriginalGroupId, getOriginalGroupKey, getOriginalInheritContent, getOriginalLiveGroupId, getOriginalName, getOriginalParentGroupId, getOriginalSite, getOriginalTreePath, getOriginalType, getOriginalUuid, getParentGroupId, getPrimaryKey, getPrimaryKeyObj, getRemoteStagingGroupCount, getSite, getTreePath, getType, getUuid, hashCode, isActive, isEntityCacheEnabled, isFinderCacheEnabled, isInheritContent, isManualMembership, isSite, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, resetOriginalValues, setActive, setClassName, setClassNameId, setClassPK, setCompanyId, setCreatorUserId, setCreatorUserUuid, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setFriendlyURL, setGroupId, setGroupKey, setInheritContent, setLiveGroupId, setManualMembership, setMembershipRestriction, setModelAttributes, setMvccVersion, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setParentGroupId, setPrimaryKey, setPrimaryKeyObj, setRemoteStagingGroupCount, setSite, setTreePath, setType, setUuid, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
clone, compareTo, getActive, getAvailableLanguageIds, getClassName, getClassNameId, getClassPK, getCompanyId, getCreatorUserId, getCreatorUserUuid, getDefaultLanguageId, getDescription, getDescription, getDescription, getDescription, getDescription, getDescriptionCurrentLanguageId, getDescriptionCurrentValue, getDescriptionMap, getExpandoBridge, getFriendlyURL, getGroupId, getGroupKey, getInheritContent, getLiveGroupId, getManualMembership, getMembershipRestriction, getMvccVersion, getName, getName, getName, getName, getName, getNameCurrentLanguageId, getNameCurrentValue, getNameMap, getParentGroupId, getPrimaryKey, getPrimaryKeyObj, getRemoteStagingGroupCount, getSite, getTreePath, getType, getUuid, hashCode, isActive, isCachedModel, isEscapedModel, isInheritContent, isManualMembership, isNew, isSite, prepareLocalizedFieldsForImport, prepareLocalizedFieldsForImport, setActive, setCachedModel, setClassName, setClassNameId, setClassPK, setCompanyId, setCreatorUserId, setCreatorUserUuid, setDescription, setDescription, setDescription, setDescriptionCurrentLanguageId, setDescriptionMap, setDescriptionMap, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setFriendlyURL, setGroupId, setGroupKey, setInheritContent, setLiveGroupId, setManualMembership, setMembershipRestriction, setMvccVersion, setName, setName, setName, setNameCurrentLanguageId, setNameMap, setNameMap, setNew, setParentGroupId, setPrimaryKey, setPrimaryKeyObj, setRemoteStagingGroupCount, setSite, setTreePath, setType, setUuid, toCacheModel, toEscapedModel, toString, toUnescapedModel, toXmlString
getModelAttributes, isEntityCacheEnabled, isFinderCacheEnabled, resetOriginalValues, setModelAttributes
public void clearStagingGroup()
public List<com.liferay.portal.kernel.model.Group> getAncestors() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public List<com.liferay.portal.kernel.model.Group> getChildren(boolean site)
@Deprecated public List<com.liferay.portal.kernel.model.Group> getChildrenWithLayouts(boolean site, int start, int end)
getChildrenWithLayouts(boolean, int, int,
OrderByComparator)
public List<com.liferay.portal.kernel.model.Group> getChildrenWithLayouts(boolean site, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> obc)
public int getChildrenWithLayoutsCount(boolean site)
public long getDefaultPrivatePlid()
public long getDefaultPublicPlid()
public List<com.liferay.portal.kernel.model.Group> getDescendants(boolean site)
@JSON public String getDescriptiveName() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public String getDescriptiveName(Locale locale) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public String getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public String getDisplayURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, boolean privateLayout)
public String getIconCssClass()
public String getIconURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public String getLayoutRootNodeName(boolean privateLayout, Locale locale)
public com.liferay.portal.kernel.model.Group getLiveGroup()
public String getLiveParentTypeSettingsProperty(String key)
public String getLogoURL(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay, boolean useDefault)
public long getOrganizationId()
public com.liferay.portal.kernel.model.Group getParentGroup() throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public com.liferay.portal.kernel.util.UnicodeProperties getParentLiveGroupTypeSettingsProperties()
public String getPathFriendlyURL(boolean privateLayout, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public com.liferay.portal.kernel.model.LayoutSet getPrivateLayoutSet()
public int getPrivateLayoutsPageCount()
public com.liferay.portal.kernel.model.LayoutSet getPublicLayoutSet()
public int getPublicLayoutsPageCount()
public long getRemoteLiveGroupId()
public String getScopeDescriptiveName(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public String getScopeLabel(com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
public com.liferay.portal.kernel.model.Group getStagingGroup()
public String getTypeLabel()
public String getTypeSettings()
getTypeSettings
in interface com.liferay.portal.kernel.model.GroupModel
getTypeSettings
in class GroupModelImpl
public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()
public String getTypeSettingsProperty(String key)
public String getUnambiguousName(String name, Locale locale)
public boolean hasAncestor(long groupId)
public boolean hasLocalOrRemoteStagingGroup()
public boolean hasPrivateLayouts()
public boolean hasPublicLayouts()
public boolean hasRemoteStagingGroup()
public boolean hasStagingGroup()
@Deprecated public boolean isChild(long groupId)
hasAncestor(long)
public boolean isCompany()
public boolean isCompanyStagingGroup()
public boolean isControlPanel()
public boolean isGuest()
public boolean isInStagingPortlet(String portletId)
public boolean isLayout()
public boolean isLayoutPrototype()
public boolean isLayoutSetPrototype()
public boolean isLimitedToParentSiteMembers()
public boolean isOrganization()
public boolean isRegularSite()
public boolean isRoot()
public boolean isShowSite(com.liferay.portal.kernel.security.permission.PermissionChecker permissionChecker, boolean privateSite) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public boolean isStaged()
public boolean isStagedPortlet(String portletId)
public boolean isStagedRemotely()
public boolean isStagingGroup()
public boolean isUser()
public boolean isUserGroup()
public boolean isUserPersonalSite()
public void setTypeSettings(String typeSettings)
setTypeSettings
in interface com.liferay.portal.kernel.model.GroupModel
setTypeSettings
in class GroupModelImpl
public void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
protected long getDefaultPlid(boolean privateLayout)