Class Space
- java.lang.Object
-
- org.exoplatform.social.core.space.model.Space
-
- All Implemented Interfaces:
CacheEntry
public class Space extends Object implements CacheEntry
Space Model- Since:
- Aug 29, 2008
- Author:
- dang.tung
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpace.UpdatedFieldTypes of updating of space.
-
Field Summary
Fields Modifier and Type Field Description static StringACTIVE_STATUSThe Constant ACTIVE_STATUS.static StringCLOSEThe Constant CLOSE.static StringCREATORstatic StringDEACTIVE_STATUSThe Constant DEACTIVE_STATUS.static StringHIDDENThe Constant HIDDEN.static StringHIGH_PRIORITYThe Constant HIGH_PRIORITY.static StringINSTALL_STATUSThe Constant INSTALL_STATUS.static StringINTERMEDIATE_PRIORITYThe Constant INTERMEDIATE_PRIORITY.static StringLOW_PRIORITYThe Constant LOW_PRIORITY.static StringOPENThe Constant OPEN.static StringPRIVATEThe Constant PRIVATE.static StringPUBLICThe Constant PUBLIC.static StringVALIDATIONThe Constant VALIDATION.
-
Constructor Summary
Constructors Constructor Description Space()Instantiates a new space.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)StringgetApp()Gets the app.AvatarAttachmentgetAvatarAttachment()Gets the space attachment.LonggetAvatarLastUpdated()Gets the last updated time in milliseconds of avatar in a spaceStringgetAvatarUrl()Gets the url of avatar.BannerAttachmentgetBannerAttachment()LonggetBannerLastUpdated()StringgetBannerUrl()longgetCreatedTime()StringgetCreator()Deprecated.UsegetManagers()instead.StringgetDescription()Gets the description.StringgetDisplayName()Gets the name.StringgetEditor()Gets the editor of a space.Space.UpdatedFieldgetField()StringgetGroupId()Gets the group id.StringgetId()Gets the id.String[]getInvitedUsers()Gets the invited users.longgetLastUpdatedTime()String[]getManagers()Gets the managers of a space.String[]getMembers()Gets the members of a space.StringgetName()Deprecated.use #getPrettyName() instead.StringgetParent()Gets the parent.String[]getPendingUsers()Gets the pending users.StringgetPrettyName()Gets the pretty name of space.StringgetPriority()Gets the priority.String[]getRedactors()StringgetRegistration()Gets the registration.StringgetShortName()Gets the short name.StringgetTag()Gets the tag.StringgetTemplate()Gets the template.StringgetType()Deprecated.UsegetTemplate()insteadStringgetUrl()Gets the url.StringgetVisibility()Gets the visibility.booleanhasBindings()Checks if the space has bindings.inthashCode()voidsetApp(String app)Sets the app.voidsetAvatarAttachment(AvatarAttachment avatarAttachment)Sets the space attachment.voidsetAvatarLastUpdated(Long avatarLastUpdatedTime)Sets the last updated time in milliseconds of avatar in a spacevoidsetAvatarUrl(String avatarUrl)Sets the url of avatar.voidsetBannerAttachment(BannerAttachment bannerAttachment)voidsetBannerLastUpdated(Long bannerLastUpdated)voidsetBannerUrl(String bannerUrl)voidsetCreatedTime(Long createdTime)voidsetCreator(String creator)Deprecated.UsegetManagers()instead.voidsetDescription(String description)Sets the description.voidsetDisplayName(String spaceDisplayName)Sets the space display name.voidsetEditor(String editor)Sets the editor of a space.voidsetField(Space.UpdatedField field)voidsetGroupId(String groupId)Sets the group id.voidsetHasBindings(boolean hasBindings)Sets if the space is bound or not.voidsetId(String id)Sets the id.voidsetInvitedUsers(String[] invitedUsers)Sets the invited users.voidsetLastUpdatedTime(long lastUpdatedTime)voidsetManagers(String[] managers)Sets the managers of a space.voidsetMembers(String[] members)Sets the members of a space.voidsetParent(String parent)Sets the parent.voidsetPendingUsers(String[] pendingUsers)Sets the pending users.voidsetPrettyName(String prettyName)Sets the pretty name of space.voidsetPriority(String priority)Sets the priority.voidsetRedactors(String[] redactors)voidsetRegistration(String registration)Sets the registration.voidsetTag(String tag)Sets the tag.voidsetTemplate(String template)Sets the template.voidsetType(String type)Deprecated.UsesetTemplate(String)insteadvoidsetUrl(String url)Sets the url.voidsetVisibility(String visibility)Sets the visibility.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.exoplatform.social.core.CacheEntry
getCacheTime, setCacheTime
-
-
-
-
Field Detail
-
ACTIVE_STATUS
public static final String ACTIVE_STATUS
The Constant ACTIVE_STATUS.- See Also:
- Constant Field Values
-
DEACTIVE_STATUS
public static final String DEACTIVE_STATUS
The Constant DEACTIVE_STATUS.- See Also:
- Constant Field Values
-
INSTALL_STATUS
public static final String INSTALL_STATUS
The Constant INSTALL_STATUS.- See Also:
- Constant Field Values
-
PUBLIC
public static final String PUBLIC
The Constant PUBLIC.- See Also:
- Constant Field Values
-
PRIVATE
public static final String PRIVATE
The Constant PRIVATE.- See Also:
- Constant Field Values
-
HIDDEN
public static final String HIDDEN
The Constant HIDDEN.- See Also:
- Constant Field Values
-
OPEN
public static final String OPEN
The Constant OPEN.- See Also:
- Constant Field Values
-
VALIDATION
public static final String VALIDATION
The Constant VALIDATION.- See Also:
- Constant Field Values
-
CLOSE
public static final String CLOSE
The Constant CLOSE.- See Also:
- Constant Field Values
-
HIGH_PRIORITY
public static final String HIGH_PRIORITY
The Constant HIGH_PRIORITY.- See Also:
- Constant Field Values
-
INTERMEDIATE_PRIORITY
public static final String INTERMEDIATE_PRIORITY
The Constant INTERMEDIATE_PRIORITY.- See Also:
- Constant Field Values
-
LOW_PRIORITY
public static final String LOW_PRIORITY
The Constant LOW_PRIORITY.- See Also:
- Constant Field Values
-
CREATOR
public static final String CREATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
setLastUpdatedTime
public void setLastUpdatedTime(long lastUpdatedTime)
-
getLastUpdatedTime
public long getLastUpdatedTime()
-
getField
public Space.UpdatedField getField()
-
setField
public void setField(Space.UpdatedField field)
-
setId
public void setId(String id)
Sets the id.- Parameters:
id- the new id
-
getId
public String getId()
Gets the id.- Returns:
- the id
-
setDisplayName
public void setDisplayName(String spaceDisplayName)
Sets the space display name. The space pretty name also set.- Parameters:
spaceDisplayName- the space Display Name
-
getDisplayName
public String getDisplayName()
Gets the name.- Returns:
- the name
-
getName
public String getName()
Deprecated.use #getPrettyName() instead. To be removed at 1.3.xGets space name id for used as space url, space identity remote id.- Returns:
-
setGroupId
public void setGroupId(String groupId)
Sets the group id.- Parameters:
groupId- the new group id
-
getGroupId
public String getGroupId()
Gets the group id.- Returns:
- the group id
-
setHasBindings
public void setHasBindings(boolean hasBindings)
Sets if the space is bound or not.- Parameters:
hasBindings-
-
hasBindings
public boolean hasBindings()
Checks if the space has bindings.- Returns:
-
setApp
public void setApp(String app)
Sets the app.- Parameters:
app- the new app
-
getApp
public String getApp()
Gets the app.- Returns:
- the app
-
setParent
public void setParent(String parent)
Sets the parent.- Parameters:
parent- the new parent
-
getParent
public String getParent()
Gets the parent.- Returns:
- the parent
-
setDescription
public void setDescription(String description)
Sets the description.- Parameters:
description- the new description
-
getDescription
public String getDescription()
Gets the description.- Returns:
- the description
-
setTag
public void setTag(String tag)
Sets the tag.- Parameters:
tag- the new tag
-
getTag
public String getTag()
Gets the tag.- Returns:
- the tag
-
setPendingUsers
public void setPendingUsers(String[] pendingUsers)
Sets the pending users.- Parameters:
pendingUsers- the new pending users
-
getPendingUsers
public String[] getPendingUsers()
Gets the pending users.- Returns:
- the pending users
-
setInvitedUsers
public void setInvitedUsers(String[] invitedUsers)
Sets the invited users.- Parameters:
invitedUsers- the new invited users
-
getInvitedUsers
public String[] getInvitedUsers()
Gets the invited users.- Returns:
- the invited users
-
setType
@Deprecated public void setType(String type)
Deprecated.UsesetTemplate(String)insteadSets the type.- Parameters:
type- the new type
-
setTemplate
public void setTemplate(String template)
Sets the template.- Parameters:
template- the new template
-
getType
public String getType()
Deprecated.UsegetTemplate()insteadGets the type.- Returns:
- the type
-
getTemplate
public String getTemplate()
Gets the template.- Returns:
- the template
-
getShortName
public String getShortName()
Gets the short name.- Returns:
- the short name
-
getUrl
public String getUrl()
Gets the url.- Returns:
- the url
-
setUrl
public void setUrl(String url)
Sets the url.- Parameters:
url- the new url
-
getVisibility
public String getVisibility()
Gets the visibility.- Returns:
- the visibility
-
setVisibility
public void setVisibility(String visibility)
Sets the visibility.- Parameters:
visibility- the new visibility
-
getRegistration
public String getRegistration()
Gets the registration.- Returns:
- the registration
-
setRegistration
public void setRegistration(String registration)
Sets the registration.- Parameters:
registration- the new registration
-
getPriority
public String getPriority()
Gets the priority.- Returns:
- the priority
-
setPriority
public void setPriority(String priority)
Sets the priority.- Parameters:
priority- the new priority
-
setAvatarAttachment
public void setAvatarAttachment(AvatarAttachment avatarAttachment)
Sets the space attachment.- Parameters:
avatarAttachment- the new space attachment
-
getAvatarAttachment
public AvatarAttachment getAvatarAttachment()
Gets the space attachment.- Returns:
- the space attachment
-
getBannerAttachment
public BannerAttachment getBannerAttachment()
-
setBannerAttachment
public void setBannerAttachment(BannerAttachment bannerAttachment)
-
getPrettyName
public String getPrettyName()
Gets the pretty name of space.- Returns:
- the name pretty of space
- Since:
- 1.2.0-GA
-
setPrettyName
public void setPrettyName(String prettyName)
Sets the pretty name of space.- Parameters:
prettyName-- Since:
- 1.2.0-GA
-
getAvatarUrl
public String getAvatarUrl()
Gets the url of avatar.- Since:
- 1.2.0-GA
-
setAvatarUrl
public void setAvatarUrl(String avatarUrl)
Sets the url of avatar.- Parameters:
avatarUrl-- Since:
- 1.2.0-GA
-
getBannerUrl
public String getBannerUrl()
-
setBannerUrl
public void setBannerUrl(String bannerUrl)
-
getCreator
@Deprecated public String getCreator()
Deprecated.UsegetManagers()instead. Will be removed by 1.2.8Gets the creator of a space.- Returns:
- Since:
- 1.2.0-GA
-
setCreator
@Deprecated public void setCreator(String creator)
Deprecated.UsegetManagers()instead. Will be removed by 1.2.8Sets the creator of a space.- Since:
- 1.2.0-GA
-
getEditor
public String getEditor()
Gets the editor of a space.- Returns:
- the editor of space
- Since:
- 4.0.0.Alpha1
-
setEditor
public void setEditor(String editor)
Sets the editor of a space.- Parameters:
editor- the editor of space- Since:
- 4.0.0.Alpha1
-
getManagers
public String[] getManagers()
Gets the managers of a space.- Returns:
- Since:
- 1.2.0-GA
-
setManagers
public void setManagers(String[] managers)
Sets the managers of a space.- Since:
- 1.2.0-GA
-
getMembers
public String[] getMembers()
Gets the members of a space.- Returns:
- Since:
- 1.2.0-GA
-
setMembers
public void setMembers(String[] members)
Sets the members of a space.- Since:
- 1.2.0-GA
-
getRedactors
public String[] getRedactors()
- Returns:
- the redactors
-
setRedactors
public void setRedactors(String[] redactors)
- Parameters:
redactors- the redactors to set
-
getAvatarLastUpdated
public Long getAvatarLastUpdated()
Gets the last updated time in milliseconds of avatar in a space- Returns:
Void- Since:
- 1.2.1
-
setAvatarLastUpdated
public void setAvatarLastUpdated(Long avatarLastUpdatedTime)
Sets the last updated time in milliseconds of avatar in a space- Parameters:
avatarLastUpdatedTime-- Since:
- 1.2.1
-
getBannerLastUpdated
public Long getBannerLastUpdated()
-
setBannerLastUpdated
public void setBannerLastUpdated(Long bannerLastUpdated)
-
getCreatedTime
public long getCreatedTime()
-
setCreatedTime
public void setCreatedTime(Long createdTime)
-
-