Package com.atlassian.confluence.spaces
Class Space
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.spaces.Space
- All Implemented Interfaces:
Searchable
,Addressable
,ContentTypeAware
,Serializable
,Cloneable
- Direct Known Subclasses:
ReadOnlySpace
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPageTemplate
(PageTemplate pageTemplate) void
addPermission
(SpacePermission permission) clone()
boolean
This method returns a link directly to the space homepage.getKey()
getName()
only here because the interface needs it like this.Deprecated.in 5.9.getType()
int
hashCode()
boolean
boolean
isGlobal()
boolean
Allows an object to tell the search indexer that it is not allowed to be indexedboolean
static boolean
static boolean
static boolean
isValidSpaceKey
(String key) Is the key a valid space key of any type? Tests validity of both personal and global space keysvoid
Remove all permissions from this Spacevoid
removePageTemplate
(PageTemplate pageTemplate) void
removePermission
(SpacePermission permission) void
setDescription
(SpaceDescription description) void
setHomePage
(Page homePage) void
void
void
setPermissions
(List<SpacePermission> permissions) void
setSpaceGroup
(SpaceGroup spaceGroup) Deprecated.in 5.9.void
setSpaceManager
(SpaceManager spaceManager) Deprecated.since 7.5 remove in 8.0void
setSpaceStatus
(SpaceStatus spaceStatus) void
setSpaceType
(SpaceType spaceType) toString()
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName
Methods inherited from class com.atlassian.core.bean.EntityObject
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.confluence.core.Addressable
getId
Methods inherited from interface com.atlassian.bonnie.Searchable
getId
-
Field Details
-
PERSONAL_SPACEKEY_IDENTIFIER
- See Also:
-
CONTENT_TYPE
- See Also:
-
MAX_SPACE_NAME_LENGTH
public static final int MAX_SPACE_NAME_LENGTH- See Also:
-
-
Constructor Details
-
Space
public Space() -
Space
-
-
Method Details
-
isValidSpaceKey
Is the key a valid space key of any type? Tests validity of both personal and global space keys -
isValidGlobalSpaceKey
-
isValidPersonalSpaceKey
-
getName
-
setName
-
getKey
-
setKey
-
getLowerKey
-
getSpaceType
-
setSpaceType
-
getDescription
-
setDescription
-
getHomePage
-
setHomePage
-
getPermissions
-
setPermissions
-
addPermission
-
removePermission
-
removeAllPermissions
public void removeAllPermissions()Remove all permissions from this Space- Since:
- 5.5
-
getPageTemplates
-
addPageTemplate
-
removePageTemplate
-
equals
- Overrides:
equals
in classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.atlassian.core.bean.EntityObject
-
clone
- Overrides:
clone
in classcom.atlassian.core.bean.EntityObject
- Throws:
CloneNotSupportedException
-
getSearchableDependants
only here because the interface needs it like this. When a space gets deleted, all content with a space index matching to the space will be unindexed. Therefore we don't need to retrieve the searchable dependants with this function.- Specified by:
getSearchableDependants
in interfaceSearchable
-
isIndexable
public boolean isIndexable()Description copied from interface:Searchable
Allows an object to tell the search indexer that it is not allowed to be indexed- Specified by:
isIndexable
in interfaceSearchable
-
setSpaceManager
Deprecated.since 7.5 remove in 8.0 -
getUrlPath
- Specified by:
getUrlPath
in interfaceAddressable
-
getDeepLinkUri
This method returns a link directly to the space homepage. It is not safe to persist this link as the space homepage can change. If no space homepage is defined, it falls back to getUrlPath() above. -
getBrowseUrlPath
-
getAdvancedTabUrlPath
-
getBlogTabUrlPath
-
getDisplayTitle
- Specified by:
getDisplayTitle
in interfaceAddressable
- Returns:
- the title of the addressable object, suitable for display in a list
-
getType
- Specified by:
getType
in interfaceContentTypeAware
- Returns:
- the content type
-
isPersonal
public boolean isPersonal() -
isGlobal
public boolean isGlobal() -
getSpaceGroup
Deprecated.in 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them. -
setSpaceGroup
Deprecated.in 5.9.SpaceGroup
and related classes likeSpaceGroupManager
andSpaceGroupComparator
will be removed. Please do not use them. -
getSpaceStatus
-
setSpaceStatus
-
getDefaultHomepageTitle
-
isArchived
public boolean isArchived() -
toString
-