Class Space
java.lang.Object
org.exoplatform.social.core.space.model.Space
- All Implemented Interfaces:
CacheEntry
Space Model
- Since:
- Aug 29, 2008
- Author:
- dang.tung
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant ACTIVE_STATUS.static final StringThe Constant CLOSED.static final StringThe Constant DEACTIVE_STATUS.static final Stringstatic final StringThe Constant HIDDEN.static final Stringstatic final StringThe Constant INSTALL_STATUS.static final StringThe Constant OPEN.static final StringThe Constant PRIVATE.static final StringThe Constant PUBLIC.static final StringThe Constant VALIDATION. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the space attachment.Gets the last updated time in milliseconds of avatar in a spaceGets the url of avatar.longGets the description.Gets the name.Gets the editor of a space.getField()Gets the group id.getId()Gets the id.String[]Gets the invited users.longString[]Gets the managers of a space.String[]Gets the members of a space.Gets the parent.String[]Gets the pending users.Gets the pretty name of space.String[]String[]Gets the registration.Gets the short name.getUrl()Gets the url.Gets the visibility.booleanChecks if the space has bindings.inthashCode()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) voidsetDescription(String description) Sets the description.voidsetDisplayName(String spaceDisplayName) Sets the space display name.voidSets 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.voidSets 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.voidSets the parent.voidsetPendingUsers(String[] pendingUsers) Sets the pending users.voidsetPrettyName(String prettyName) Sets the pretty name of space.voidsetPublishers(String[] publishers) voidsetRedactors(String[] redactors) voidsetRegistration(String registration) Sets the registration.voidSets the url.voidsetVisibility(String visibility) Sets the visibility.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.exoplatform.social.core.CacheEntry
getCacheTime, setCacheTime
-
Field Details
-
DEFAULT_SPACE_METADATA_OBJECT_TYPE
- See Also:
-
ACTIVE_STATUS
The Constant ACTIVE_STATUS.- See Also:
-
DEACTIVE_STATUS
The Constant DEACTIVE_STATUS.- See Also:
-
INSTALL_STATUS
The Constant INSTALL_STATUS.- See Also:
-
PUBLIC
The Constant PUBLIC.- See Also:
-
PRIVATE
The Constant PRIVATE.- See Also:
-
HIDDEN
The Constant HIDDEN.- See Also:
-
OPEN
The Constant OPEN.- See Also:
-
VALIDATION
The Constant VALIDATION.- See Also:
-
CLOSED
The Constant CLOSED.- See Also:
-
HOME_URL
- See Also:
-
-
Constructor Details
-
Space
public Space()
-
-
Method Details
-
setLastUpdatedTime
public void setLastUpdatedTime(long lastUpdatedTime) -
getLastUpdatedTime
public long getLastUpdatedTime() -
getField
-
setField
-
setId
Sets the id.- Parameters:
id- the new id
-
getId
Gets the id.- Returns:
- the id
-
setDisplayName
Sets the space display name. The space pretty name also set.- Parameters:
spaceDisplayName- the space Display Name
-
getDisplayName
Gets the name.- Returns:
- the name
-
setGroupId
Sets the group id.- Parameters:
groupId- the new group id
-
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:
-
setParent
Sets the parent.- Parameters:
parent- the new parent
-
getParent
Gets the parent.- Returns:
- the parent
-
setDescription
Sets the description.- Parameters:
description- the new description
-
getDescription
Gets the description.- Returns:
- the description
-
setPendingUsers
Sets the pending users.- Parameters:
pendingUsers- the new pending users
-
getPendingUsers
Gets the pending users.- Returns:
- the pending users
-
setInvitedUsers
Sets the invited users.- Parameters:
invitedUsers- the new invited users
-
getInvitedUsers
Gets the invited users.- Returns:
- the invited users
-
getShortName
Gets the short name.- Returns:
- the short name
-
getUrl
Gets the url.- Returns:
- the url
-
setUrl
Sets the url.- Parameters:
url- the new url
-
getVisibility
Gets the visibility.- Returns:
- the visibility
-
setVisibility
Sets the visibility.- Parameters:
visibility- the new visibility
-
toString
-
getRegistration
Gets the registration.- Returns:
- the registration
-
setRegistration
Sets the registration.- Parameters:
registration- the new registration
-
setAvatarAttachment
Sets the space attachment.- Parameters:
avatarAttachment- the new space attachment
-
getAvatarAttachment
Gets the space attachment.- Returns:
- the space attachment
-
getBannerAttachment
-
setBannerAttachment
-
getPrettyName
Gets the pretty name of space.- Returns:
- the name pretty of space
- Since:
- 1.2.0-GA
-
setPrettyName
Sets the pretty name of space.- Parameters:
prettyName-- Since:
- 1.2.0-GA
-
getAvatarUrl
Gets the url of avatar.- Since:
- 1.2.0-GA
-
setAvatarUrl
Sets the url of avatar.- Parameters:
avatarUrl-- Since:
- 1.2.0-GA
-
getBannerUrl
-
setBannerUrl
-
getEditor
Gets the editor of a space.- Returns:
- the editor of space
- Since:
- 4.0.0.Alpha1
-
setEditor
Sets the editor of a space.- Parameters:
editor- the editor of space- Since:
- 4.0.0.Alpha1
-
getManagers
Gets the managers of a space.- Returns:
- Since:
- 1.2.0-GA
-
setManagers
Sets the managers of a space.- Since:
- 1.2.0-GA
-
getMembers
Gets the members of a space.- Returns:
- Since:
- 1.2.0-GA
-
setMembers
Sets the members of a space.- Since:
- 1.2.0-GA
-
getRedactors
- Returns:
- the redactors
-
setRedactors
- Parameters:
redactors- the redactors to set
-
getPublishers
- Returns:
- the publishers
-
setPublishers
- Parameters:
publishers- the publishers to set
-
getAvatarLastUpdated
Gets the last updated time in milliseconds of avatar in a space- Returns:
Void- Since:
- 1.2.1
-
setAvatarLastUpdated
Sets the last updated time in milliseconds of avatar in a space- Parameters:
avatarLastUpdatedTime-- Since:
- 1.2.1
-
getBannerLastUpdated
-
setBannerLastUpdated
-
getCreatedTime
public long getCreatedTime() -
setCreatedTime
-
hashCode
public int hashCode() -
equals
-