com.liferay.portal.model.impl
Class GroupImpl
java.lang.Object
com.liferay.portal.model.impl.BaseModelImpl<com.liferay.portal.model.Group>
com.liferay.portal.model.impl.GroupModelImpl
com.liferay.portal.model.impl.GroupBaseImpl
com.liferay.portal.model.impl.GroupImpl
- All Implemented Interfaces:
- com.liferay.portal.model.AttachedModel, com.liferay.portal.model.BaseModel<com.liferay.portal.model.Group>, com.liferay.portal.model.ClassedModel, com.liferay.portal.model.Group, com.liferay.portal.model.GroupModel, com.liferay.portal.model.PersistedModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<com.liferay.portal.model.Group>
public class GroupImpl
- extends GroupBaseImpl
Represents either a site or a generic resource container.
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.
- Author:
- Brian Wing Shun Chan
- See Also:
- Serialized Form
| Fields inherited from class com.liferay.portal.model.impl.GroupModelImpl |
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_PERMISSIONS, FINDER_CACHE_ENABLED_GROUPS_ROLES, FINDER_CACHE_ENABLED_GROUPS_USERGROUPS, FINDER_CACHE_ENABLED_USERS_GROUPS, FRIENDLYURL_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_PERMISSIONS_COLUMNS, MAPPING_TABLE_GROUPS_PERMISSIONS_NAME, MAPPING_TABLE_GROUPS_PERMISSIONS_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, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER, TYPE_COLUMN_BITMASK |
| Methods inherited from class com.liferay.portal.model.impl.GroupModelImpl |
clone, compareTo, equals, getActive, getClassName, getClassNameId, getClassPK, getColumnBitmask, getCompanyId, getCreatorUserId, getCreatorUserUuid, getDescription, getExpandoBridge, getFriendlyURL, getGroupId, getLiveGroupId, getModelClass, getModelClassName, getName, getOriginalActive, getOriginalClassNameId, getOriginalClassPK, getOriginalCompanyId, getOriginalFriendlyURL, getOriginalLiveGroupId, getOriginalName, getOriginalType, getParentGroupId, getPrimaryKey, getPrimaryKeyObj, getSite, getType, hashCode, isActive, isSite, resetOriginalValues, setActive, setClassNameId, setClassPK, setCompanyId, setCreatorUserId, setCreatorUserUuid, setDescription, setExpandoBridgeAttributes, setFriendlyURL, setGroupId, setLiveGroupId, setName, setParentGroupId, setPrimaryKey, setPrimaryKeyObj, setSite, setType, toCacheModel, toEscapedModel, toModel, toModels, toString, toXmlString |
| Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl |
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setNew |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.model.GroupModel |
clone, compareTo, getActive, getClassName, getClassNameId, getClassPK, getCompanyId, getCreatorUserId, getCreatorUserUuid, getDescription, getExpandoBridge, getFriendlyURL, getGroupId, getLiveGroupId, getName, getParentGroupId, getPrimaryKey, getPrimaryKeyObj, getSite, getType, hashCode, isActive, isCachedModel, isEscapedModel, isNew, isSite, setActive, setCachedModel, setClassNameId, setClassPK, setCompanyId, setCreatorUserId, setCreatorUserUuid, setDescription, setExpandoBridgeAttributes, setFriendlyURL, setGroupId, setLiveGroupId, setName, setNew, setParentGroupId, setPrimaryKey, setPrimaryKeyObj, setSite, setType, toCacheModel, toEscapedModel, toString, toXmlString |
| Methods inherited from interface com.liferay.portal.model.BaseModel |
resetOriginalValues |
| Methods inherited from interface com.liferay.portal.model.ClassedModel |
getModelClass, getModelClassName |
GroupImpl
public GroupImpl()
getDefaultPrivatePlid
public long getDefaultPrivatePlid()
getDefaultPublicPlid
public long getDefaultPublicPlid()
getDescriptiveName
public java.lang.String getDescriptiveName()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getDescriptiveName
public java.lang.String getDescriptiveName(java.util.Locale locale)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getLiveGroup
public com.liferay.portal.model.Group getLiveGroup()
getOrganizationId
public long getOrganizationId()
getParentGroup
public com.liferay.portal.model.Group getParentGroup()
throws com.liferay.portal.kernel.exception.SystemException,
com.liferay.portal.kernel.exception.PortalException
- Throws:
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalException
getPathFriendlyURL
public java.lang.String getPathFriendlyURL(boolean privateLayout,
com.liferay.portal.theme.ThemeDisplay themeDisplay)
getPrivateLayoutSet
public com.liferay.portal.model.LayoutSet getPrivateLayoutSet()
getPrivateLayoutsPageCount
public int getPrivateLayoutsPageCount()
getPublicLayoutSet
public com.liferay.portal.model.LayoutSet getPublicLayoutSet()
getPublicLayoutsPageCount
public int getPublicLayoutsPageCount()
getStagingGroup
public com.liferay.portal.model.Group getStagingGroup()
getTypeLabel
public java.lang.String getTypeLabel()
getTypeSettings
public java.lang.String getTypeSettings()
- Specified by:
getTypeSettings in interface com.liferay.portal.model.Group- Specified by:
getTypeSettings in interface com.liferay.portal.model.GroupModel- Overrides:
getTypeSettings in class GroupModelImpl
getTypeSettingsProperties
public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()
getTypeSettingsProperty
public java.lang.String getTypeSettingsProperty(java.lang.String key)
hasPrivateLayouts
public boolean hasPrivateLayouts()
hasPublicLayouts
public boolean hasPublicLayouts()
hasStagingGroup
public boolean hasStagingGroup()
isCommunity
public boolean isCommunity()
- Deprecated. As of 6.1, renamed to
isRegularSite()
isCompany
public boolean isCompany()
isControlPanel
public boolean isControlPanel()
isGuest
public boolean isGuest()
isLayout
public boolean isLayout()
isLayoutPrototype
public boolean isLayoutPrototype()
isLayoutSetPrototype
public boolean isLayoutSetPrototype()
isOrganization
public boolean isOrganization()
isRegularSite
public boolean isRegularSite()
isStaged
public boolean isStaged()
isStagedPortlet
public boolean isStagedPortlet(java.lang.String portletId)
isStagedRemotely
public boolean isStagedRemotely()
isStagingGroup
public boolean isStagingGroup()
isUser
public boolean isUser()
isUserGroup
public boolean isUserGroup()
isUserPersonalSite
public boolean isUserPersonalSite()
setTypeSettings
public void setTypeSettings(java.lang.String typeSettings)
- Specified by:
setTypeSettings in interface com.liferay.portal.model.Group- Specified by:
setTypeSettings in interface com.liferay.portal.model.GroupModel- Overrides:
setTypeSettings in class GroupModelImpl
setTypeSettingsProperties
public void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
getDefaultPlid
protected long getDefaultPlid(boolean privateLayout)
hasClassName
protected boolean hasClassName(java.lang.Class<?> clazz)