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
public class Space
extends ConfluenceEntityObject
implements Searchable, Addressable, ContentTypeAware
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPageTemplate
(PageTemplate pageTemplate) void
addPermission
(SpacePermission permission) clone()
boolean
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useAddressableSpace.getBlogTabUrlPath()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useAddressableSpace.getBrowseUrlPath()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useAddressableSpace.getDeepLinkUri()
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useSpaceManager.getDefaultHomepageTitle(boolean, String)
getKey()
getName()
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, getSearchableDependants
-
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
-
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
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useAddressableSpace.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
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useAddressableSpace.getBrowseUrlPath()
-
getAdvancedTabUrlPath
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useAddressableSpace.getAdvancedTabUrlPath()
-
getBlogTabUrlPath
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useAddressableSpace.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
Deprecated, for removal: This API element is subject to removal in a future version.since 9.3 useSpaceManager.getDefaultHomepageTitle(boolean, String)
-
isArchived
public boolean isArchived() -
toString
-
AddressableSpace.getAdvancedTabUrlPath()