@ProviderType public interface GroupModel extends AttachedModel, BaseModel<Group>, LocalizedModel, MVCCModel, ShardedModel
This interface and its corresponding implementation com.liferay.portal.model.impl.GroupModelImpl exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in com.liferay.portal.model.impl.GroupImpl.
Group| Modifier and Type | Method and Description |
|---|---|
boolean |
getActive()
Returns the active of this group.
|
java.lang.String[] |
getAvailableLanguageIds() |
java.lang.String |
getClassName()
Returns the fully qualified class name of this group.
|
long |
getClassNameId()
Returns the class name ID of this group.
|
long |
getClassPK()
Returns the class pk of this group.
|
long |
getCompanyId()
Returns the company ID of this group.
|
long |
getCreatorUserId()
Returns the creator user ID of this group.
|
java.lang.String |
getCreatorUserUuid()
Returns the creator user uuid of this group.
|
java.lang.String |
getDefaultLanguageId() |
java.lang.String |
getDescription()
Returns the description of this group.
|
java.lang.String |
getDescription(java.util.Locale locale)
Returns the localized description of this group in the language.
|
java.lang.String |
getDescription(java.util.Locale locale,
boolean useDefault)
Returns the localized description of this group in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescription(java.lang.String languageId)
Returns the localized description of this group in the language.
|
java.lang.String |
getDescription(java.lang.String languageId,
boolean useDefault)
Returns the localized description of this group in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getDescriptionCurrentLanguageId() |
java.lang.String |
getDescriptionCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getDescriptionMap()
Returns a map of the locales and localized descriptions of this group.
|
java.lang.String |
getFriendlyURL()
Returns the friendly url of this group.
|
long |
getGroupId()
Returns the group ID of this group.
|
java.lang.String |
getGroupKey()
Returns the group key of this group.
|
boolean |
getInheritContent()
Returns the inherit content of this group.
|
long |
getLiveGroupId()
Returns the live group ID of this group.
|
boolean |
getManualMembership()
Returns the manual membership of this group.
|
int |
getMembershipRestriction()
Returns the membership restriction of this group.
|
long |
getMvccVersion()
Returns the mvcc version of this group.
|
java.lang.String |
getName()
Returns the name of this group.
|
java.lang.String |
getName(java.util.Locale locale)
Returns the localized name of this group in the language.
|
java.lang.String |
getName(java.util.Locale locale,
boolean useDefault)
Returns the localized name of this group in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getName(java.lang.String languageId)
Returns the localized name of this group in the language.
|
java.lang.String |
getName(java.lang.String languageId,
boolean useDefault)
Returns the localized name of this group in the language, optionally using the default language if no localization exists for the requested language.
|
java.lang.String |
getNameCurrentLanguageId() |
java.lang.String |
getNameCurrentValue() |
java.util.Map<java.util.Locale,java.lang.String> |
getNameMap()
Returns a map of the locales and localized names of this group.
|
long |
getParentGroupId()
Returns the parent group ID of this group.
|
long |
getPrimaryKey()
Returns the primary key of this group.
|
int |
getRemoteStagingGroupCount()
Returns the remote staging group count of this group.
|
boolean |
getSite()
Returns the site of this group.
|
java.lang.String |
getTreePath()
Returns the tree path of this group.
|
int |
getType()
Returns the type of this group.
|
java.lang.String |
getTypeSettings()
Returns the type settings of this group.
|
java.lang.String |
getUuid()
Returns the uuid of this group.
|
boolean |
isActive()
Returns
true if this group is active. |
boolean |
isInheritContent()
Returns
true if this group is inherit content. |
boolean |
isManualMembership()
Returns
true if this group is manual membership. |
boolean |
isSite()
Returns
true if this group is site. |
void |
prepareLocalizedFieldsForImport() |
void |
prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale) |
void |
setActive(boolean active)
Sets whether this group is active.
|
void |
setClassName(java.lang.String className) |
void |
setClassNameId(long classNameId)
Sets the class name ID of this group.
|
void |
setClassPK(long classPK)
Sets the class pk of this group.
|
void |
setCompanyId(long companyId)
Sets the company ID of this group.
|
void |
setCreatorUserId(long creatorUserId)
Sets the creator user ID of this group.
|
void |
setCreatorUserUuid(java.lang.String creatorUserUuid)
Sets the creator user uuid of this group.
|
void |
setDescription(java.lang.String description)
Sets the description of this group.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale)
Sets the localized description of this group in the language.
|
void |
setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized description of this group in the language, and sets the default locale.
|
void |
setDescriptionCurrentLanguageId(java.lang.String languageId) |
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
Sets the localized descriptions of this group from the map of locales and localized descriptions.
|
void |
setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
Sets the localized descriptions of this group from the map of locales and localized descriptions, and sets the default locale.
|
void |
setFriendlyURL(java.lang.String friendlyURL)
Sets the friendly url of this group.
|
void |
setGroupId(long groupId)
Sets the group ID of this group.
|
void |
setGroupKey(java.lang.String groupKey)
Sets the group key of this group.
|
void |
setInheritContent(boolean inheritContent)
Sets whether this group is inherit content.
|
void |
setLiveGroupId(long liveGroupId)
Sets the live group ID of this group.
|
void |
setManualMembership(boolean manualMembership)
Sets whether this group is manual membership.
|
void |
setMembershipRestriction(int membershipRestriction)
Sets the membership restriction of this group.
|
void |
setMvccVersion(long mvccVersion)
Sets the mvcc version of this group.
|
void |
setName(java.lang.String name)
Sets the name of this group.
|
void |
setName(java.lang.String name,
java.util.Locale locale)
Sets the localized name of this group in the language.
|
void |
setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
Sets the localized name of this group in the language, and sets the default locale.
|
void |
setNameCurrentLanguageId(java.lang.String languageId) |
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
Sets the localized names of this group from the map of locales and localized names.
|
void |
setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
Sets the localized names of this group from the map of locales and localized names, and sets the default locale.
|
void |
setParentGroupId(long parentGroupId)
Sets the parent group ID of this group.
|
void |
setPrimaryKey(long primaryKey)
Sets the primary key of this group.
|
void |
setRemoteStagingGroupCount(int remoteStagingGroupCount)
Sets the remote staging group count of this group.
|
void |
setSite(boolean site)
Sets whether this group is site.
|
void |
setTreePath(java.lang.String treePath)
Sets the tree path of this group.
|
void |
setType(int type)
Sets the type of this group.
|
void |
setTypeSettings(java.lang.String typeSettings)
Sets the type settings of this group.
|
void |
setUuid(java.lang.String uuid)
Sets the uuid of this group.
|
clone, getAttributeGetterFunctions, getAttributeSetterBiConsumers, getExpandoBridge, getModelAttributes, getPrimaryKeyObj, isCachedModel, isEntityCacheEnabled, isEscapedModel, isFinderCacheEnabled, isNew, resetOriginalValues, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setModelAttributes, setNew, setPrimaryKeyObj, toCacheModel, toEscapedModel, toUnescapedModel, toXmlStringgetModelClass, getModelClassNamelong getPrimaryKey()
void setPrimaryKey(long primaryKey)
primaryKey - the primary key of this grouplong getMvccVersion()
getMvccVersion in interface MVCCModelvoid setMvccVersion(long mvccVersion)
setMvccVersion in interface MVCCModelmvccVersion - the mvcc version of this group@AutoEscape java.lang.String getUuid()
void setUuid(java.lang.String uuid)
uuid - the uuid of this grouplong getGroupId()
void setGroupId(long groupId)
groupId - the group ID of this grouplong getCompanyId()
getCompanyId in interface ShardedModelvoid setCompanyId(long companyId)
setCompanyId in interface ShardedModelcompanyId - the company ID of this grouplong getCreatorUserId()
void setCreatorUserId(long creatorUserId)
creatorUserId - the creator user ID of this groupjava.lang.String getCreatorUserUuid()
void setCreatorUserUuid(java.lang.String creatorUserUuid)
creatorUserUuid - the creator user uuid of this groupjava.lang.String getClassName()
getClassName in interface TypedModelvoid setClassName(java.lang.String className)
long getClassNameId()
getClassNameId in interface TypedModelvoid setClassNameId(long classNameId)
setClassNameId in interface TypedModelclassNameId - the class name ID of this grouplong getClassPK()
getClassPK in interface AttachedModelvoid setClassPK(long classPK)
setClassPK in interface AttachedModelclassPK - the class pk of this grouplong getParentGroupId()
void setParentGroupId(long parentGroupId)
parentGroupId - the parent group ID of this grouplong getLiveGroupId()
void setLiveGroupId(long liveGroupId)
liveGroupId - the live group ID of this group@AutoEscape java.lang.String getTreePath()
void setTreePath(java.lang.String treePath)
treePath - the tree path of this group@AutoEscape java.lang.String getGroupKey()
void setGroupKey(java.lang.String groupKey)
groupKey - the group key of this groupjava.lang.String getName()
@AutoEscape java.lang.String getName(java.util.Locale locale)
locale - the locale of the language@AutoEscape java.lang.String getName(java.util.Locale locale, boolean useDefault)
locale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested languageuseDefault is false and no localization exists for the requested language, an empty string will be returned.@AutoEscape java.lang.String getName(java.lang.String languageId)
languageId - the ID of the language@AutoEscape java.lang.String getName(java.lang.String languageId, boolean useDefault)
languageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language@AutoEscape java.lang.String getNameCurrentLanguageId()
@AutoEscape java.lang.String getNameCurrentValue()
java.util.Map<java.util.Locale,java.lang.String> getNameMap()
void setName(java.lang.String name)
name - the name of this groupvoid setName(java.lang.String name,
java.util.Locale locale)
name - the localized name of this grouplocale - the locale of the languagevoid setName(java.lang.String name,
java.util.Locale locale,
java.util.Locale defaultLocale)
name - the localized name of this grouplocale - the locale of the languagedefaultLocale - the default localevoid setNameCurrentLanguageId(java.lang.String languageId)
void setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap)
nameMap - the locales and localized names of this groupvoid setNameMap(java.util.Map<java.util.Locale,java.lang.String> nameMap,
java.util.Locale defaultLocale)
nameMap - the locales and localized names of this groupdefaultLocale - the default localejava.lang.String getDescription()
@AutoEscape java.lang.String getDescription(java.util.Locale locale)
locale - the locale of the language@AutoEscape java.lang.String getDescription(java.util.Locale locale, boolean useDefault)
locale - the local of the languageuseDefault - whether to use the default language if no localization exists for the requested languageuseDefault is false and no localization exists for the requested language, an empty string will be returned.@AutoEscape java.lang.String getDescription(java.lang.String languageId)
languageId - the ID of the language@AutoEscape java.lang.String getDescription(java.lang.String languageId, boolean useDefault)
languageId - the ID of the languageuseDefault - whether to use the default language if no localization exists for the requested language@AutoEscape java.lang.String getDescriptionCurrentLanguageId()
@AutoEscape java.lang.String getDescriptionCurrentValue()
java.util.Map<java.util.Locale,java.lang.String> getDescriptionMap()
void setDescription(java.lang.String description)
description - the description of this groupvoid setDescription(java.lang.String description,
java.util.Locale locale)
description - the localized description of this grouplocale - the locale of the languagevoid setDescription(java.lang.String description,
java.util.Locale locale,
java.util.Locale defaultLocale)
description - the localized description of this grouplocale - the locale of the languagedefaultLocale - the default localevoid setDescriptionCurrentLanguageId(java.lang.String languageId)
void setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap)
descriptionMap - the locales and localized descriptions of this groupvoid setDescriptionMap(java.util.Map<java.util.Locale,java.lang.String> descriptionMap,
java.util.Locale defaultLocale)
descriptionMap - the locales and localized descriptions of this groupdefaultLocale - the default localeint getType()
void setType(int type)
type - the type of this group@AutoEscape java.lang.String getTypeSettings()
void setTypeSettings(java.lang.String typeSettings)
typeSettings - the type settings of this groupboolean getManualMembership()
boolean isManualMembership()
true if this group is manual membership.true if this group is manual membership; false otherwisevoid setManualMembership(boolean manualMembership)
manualMembership - the manual membership of this groupint getMembershipRestriction()
void setMembershipRestriction(int membershipRestriction)
membershipRestriction - the membership restriction of this group@AutoEscape java.lang.String getFriendlyURL()
void setFriendlyURL(java.lang.String friendlyURL)
friendlyURL - the friendly url of this groupboolean getSite()
boolean isSite()
true if this group is site.true if this group is site; false otherwisevoid setSite(boolean site)
site - the site of this groupint getRemoteStagingGroupCount()
void setRemoteStagingGroupCount(int remoteStagingGroupCount)
remoteStagingGroupCount - the remote staging group count of this groupboolean getInheritContent()
boolean isInheritContent()
true if this group is inherit content.true if this group is inherit content; false otherwisevoid setInheritContent(boolean inheritContent)
inheritContent - the inherit content of this groupboolean getActive()
boolean isActive()
true if this group is active.true if this group is active; false otherwisevoid setActive(boolean active)
active - the active of this groupjava.lang.String[] getAvailableLanguageIds()
getAvailableLanguageIds in interface LocalizedModeljava.lang.String getDefaultLanguageId()
getDefaultLanguageId in interface LocalizedModelvoid prepareLocalizedFieldsForImport()
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelLocaleExceptionvoid prepareLocalizedFieldsForImport(java.util.Locale defaultImportLocale)
throws LocaleException
prepareLocalizedFieldsForImport in interface LocalizedModelLocaleException