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
  • Field Details

  • Constructor Details

    • Space

      public Space()
      Instantiates a new space.
  • Method Details

    • 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.x
      Gets 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.
      Sets 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.
      Use getTemplate() instead
      Gets 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
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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.
      Use getManagers() instead. Will be removed by 1.2.8
      Gets the creator of a space.
      Returns:
      Since:
      1.2.0-GA
    • setCreator

      @Deprecated public void setCreator(String creator)
      Deprecated.
      Use getManagers() instead. Will be removed by 1.2.8
      Sets 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
    • getPublishers

      public String[] getPublishers()
      Returns:
      the publishers
    • setPublishers

      public void setPublishers(String[] publishers)
      Parameters:
      publishers - the publishers 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)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object