com.liferay.portal.model.impl
Class GroupImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl
      extended by com.liferay.portal.model.impl.GroupModelImpl
          extended by com.liferay.portal.model.impl.GroupImpl
All Implemented Interfaces:
com.liferay.portal.model.BaseModel, com.liferay.portal.model.Group, com.liferay.portal.model.GroupModel, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class GroupImpl
extends GroupModelImpl
implements com.liferay.portal.model.Group

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Field Summary
static long DEFAULT_LIVE_GROUP_ID
           
static long DEFAULT_PARENT_GROUP_ID
           
static java.lang.String GUEST
           
static java.lang.String[] SYSTEM_GROUPS
           
static int TYPE_COMMUNITY_OPEN
           
static java.lang.String TYPE_COMMUNITY_OPEN_LABEL
           
static int TYPE_COMMUNITY_PRIVATE
           
static java.lang.String TYPE_COMMUNITY_PRIVATE_LABEL
           
static int TYPE_COMMUNITY_RESTRICTED
           
static java.lang.String TYPE_COMMUNITY_RESTRICTED_LABEL
           
 
Fields inherited from class com.liferay.portal.model.impl.GroupModelImpl
CACHE_ENABLED, CACHE_ENABLED_GROUPS_ORGS, CACHE_ENABLED_GROUPS_PERMISSIONS, CACHE_ENABLED_GROUPS_ROLES, CACHE_ENABLED_GROUPS_USERGROUPS, CACHE_ENABLED_USERS_GROUPS, DATA_SOURCE, LOCK_EXPIRATION_TIME, SESSION_FACTORY, TABLE_COLUMNS, TABLE_NAME, TABLE_SQL_CREATE, TABLE_SQL_DROP, TX_MANAGER
 
Constructor Summary
GroupImpl()
           
 
Method Summary
protected  long getDefaultPlid(boolean privateLayout)
           
 long getDefaultPrivatePlid()
           
 long getDefaultPublicPlid()
           
 java.lang.String getDescriptiveName()
           
 com.liferay.portal.model.Group getLiveGroup()
           
 java.lang.String getPathFriendlyURL(boolean privateLayout, com.liferay.portal.theme.ThemeDisplay themeDisplay)
           
 int getPrivateLayoutsPageCount()
           
 int getPublicLayoutsPageCount()
           
 com.liferay.portal.model.Group getStagingGroup()
           
 java.lang.String getTypeLabel()
           
static java.lang.String getTypeLabel(int type)
           
 java.lang.String getTypeSettings()
           
 com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()
           
 java.lang.String getTypeSettingsProperty(java.lang.String key)
           
 java.lang.String getWorkflowRoleNames()
           
 int getWorkflowStages()
           
 boolean hasPrivateLayouts()
           
 boolean hasPublicLayouts()
           
 boolean hasStagingGroup()
           
 boolean isCommunity()
           
 boolean isOrganization()
           
 boolean isStagingGroup()
           
 boolean isUser()
           
 boolean isUserGroup()
           
 boolean isWorkflowEnabled()
           
 void setTypeSettings(java.lang.String typeSettings)
           
 void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
           
 
Methods inherited from class com.liferay.portal.model.impl.GroupModelImpl
clone, compareTo, equals, getActive, getClassName, getClassNameId, getClassPK, getCompanyId, getCreatorUserId, getDescription, getFriendlyURL, getGroupId, getLiveGroupId, getName, getParentGroupId, getPrimaryKey, getPrimaryKeyObj, getType, hashCode, isActive, setActive, setClassNameId, setClassPK, setCompanyId, setCreatorUserId, setDescription, setFriendlyURL, setGroupId, setLiveGroupId, setName, setParentGroupId, setPrimaryKey, setType, toEscapedModel, toModel, toModels
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
isEscapedModel, isNew, setEscapedModel, setNew
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.model.GroupModel
getActive, getClassName, getClassNameId, getClassPK, getCompanyId, getCreatorUserId, getDescription, getFriendlyURL, getGroupId, getLiveGroupId, getName, getParentGroupId, getPrimaryKey, getType, isActive, setActive, setClassNameId, setClassPK, setCompanyId, setCreatorUserId, setDescription, setFriendlyURL, setGroupId, setLiveGroupId, setName, setParentGroupId, setPrimaryKey, setType, toEscapedModel
 
Methods inherited from interface com.liferay.portal.model.BaseModel
clone, getPrimaryKeyObj, isEscapedModel, isNew, setEscapedModel, setNew
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Field Detail

DEFAULT_PARENT_GROUP_ID

public static final long DEFAULT_PARENT_GROUP_ID
See Also:
Constant Field Values

DEFAULT_LIVE_GROUP_ID

public static final long DEFAULT_LIVE_GROUP_ID
See Also:
Constant Field Values

GUEST

public static final java.lang.String GUEST
See Also:
Constant Field Values

SYSTEM_GROUPS

public static final java.lang.String[] SYSTEM_GROUPS

TYPE_COMMUNITY_OPEN

public static final int TYPE_COMMUNITY_OPEN
See Also:
Constant Field Values

TYPE_COMMUNITY_OPEN_LABEL

public static final java.lang.String TYPE_COMMUNITY_OPEN_LABEL
See Also:
Constant Field Values

TYPE_COMMUNITY_PRIVATE

public static final int TYPE_COMMUNITY_PRIVATE
See Also:
Constant Field Values

TYPE_COMMUNITY_PRIVATE_LABEL

public static final java.lang.String TYPE_COMMUNITY_PRIVATE_LABEL
See Also:
Constant Field Values

TYPE_COMMUNITY_RESTRICTED

public static final int TYPE_COMMUNITY_RESTRICTED
See Also:
Constant Field Values

TYPE_COMMUNITY_RESTRICTED_LABEL

public static final java.lang.String TYPE_COMMUNITY_RESTRICTED_LABEL
See Also:
Constant Field Values
Constructor Detail

GroupImpl

public GroupImpl()
Method Detail

getTypeLabel

public static java.lang.String getTypeLabel(int type)

isCommunity

public boolean isCommunity()
Specified by:
isCommunity in interface com.liferay.portal.model.Group

isOrganization

public boolean isOrganization()
Specified by:
isOrganization in interface com.liferay.portal.model.Group

isUser

public boolean isUser()
Specified by:
isUser in interface com.liferay.portal.model.Group

isUserGroup

public boolean isUserGroup()
Specified by:
isUserGroup in interface com.liferay.portal.model.Group

getLiveGroup

public com.liferay.portal.model.Group getLiveGroup()
Specified by:
getLiveGroup in interface com.liferay.portal.model.Group

getStagingGroup

public com.liferay.portal.model.Group getStagingGroup()
Specified by:
getStagingGroup in interface com.liferay.portal.model.Group

hasStagingGroup

public boolean hasStagingGroup()
Specified by:
hasStagingGroup in interface com.liferay.portal.model.Group

isStagingGroup

public boolean isStagingGroup()
Specified by:
isStagingGroup in interface com.liferay.portal.model.Group

getDescriptiveName

public java.lang.String getDescriptiveName()
Specified by:
getDescriptiveName in interface com.liferay.portal.model.Group

getTypeLabel

public java.lang.String getTypeLabel()
Specified by:
getTypeLabel in interface com.liferay.portal.model.Group

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

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

getTypeSettingsProperties

public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties()
Specified by:
getTypeSettingsProperties in interface com.liferay.portal.model.Group

setTypeSettingsProperties

public void setTypeSettingsProperties(com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties)
Specified by:
setTypeSettingsProperties in interface com.liferay.portal.model.Group

getTypeSettingsProperty

public java.lang.String getTypeSettingsProperty(java.lang.String key)
Specified by:
getTypeSettingsProperty in interface com.liferay.portal.model.Group

getPathFriendlyURL

public java.lang.String getPathFriendlyURL(boolean privateLayout,
                                           com.liferay.portal.theme.ThemeDisplay themeDisplay)
Specified by:
getPathFriendlyURL in interface com.liferay.portal.model.Group

getDefaultPrivatePlid

public long getDefaultPrivatePlid()
Specified by:
getDefaultPrivatePlid in interface com.liferay.portal.model.Group

getPrivateLayoutsPageCount

public int getPrivateLayoutsPageCount()
Specified by:
getPrivateLayoutsPageCount in interface com.liferay.portal.model.Group

hasPrivateLayouts

public boolean hasPrivateLayouts()
Specified by:
hasPrivateLayouts in interface com.liferay.portal.model.Group

getDefaultPublicPlid

public long getDefaultPublicPlid()
Specified by:
getDefaultPublicPlid in interface com.liferay.portal.model.Group

getPublicLayoutsPageCount

public int getPublicLayoutsPageCount()
Specified by:
getPublicLayoutsPageCount in interface com.liferay.portal.model.Group

hasPublicLayouts

public boolean hasPublicLayouts()
Specified by:
hasPublicLayouts in interface com.liferay.portal.model.Group

isWorkflowEnabled

public boolean isWorkflowEnabled()
Specified by:
isWorkflowEnabled in interface com.liferay.portal.model.Group

getWorkflowStages

public int getWorkflowStages()
Specified by:
getWorkflowStages in interface com.liferay.portal.model.Group

getWorkflowRoleNames

public java.lang.String getWorkflowRoleNames()
Specified by:
getWorkflowRoleNames in interface com.liferay.portal.model.Group

getDefaultPlid

protected long getDefaultPlid(boolean privateLayout)