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 TypeMethodDescriptionvoidaddPageTemplate(PageTemplate pageTemplate) voidaddPermission(SpacePermission permission) clone()booleanThis 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()inthashCode()booleanbooleanisGlobal()booleanAllows an object to tell the search indexer that it is not allowed to be indexedbooleanstatic booleanstatic booleanstatic booleanisValidSpaceKey(String key) Is the key a valid space key of any type? Tests validity of both personal and global space keysvoidRemove all permissions from this SpacevoidremovePageTemplate(PageTemplate pageTemplate) voidremovePermission(SpacePermission permission) voidsetDescription(SpaceDescription description) voidsetHomePage(Page homePage) voidvoidvoidsetPermissions(List<SpacePermission> permissions) voidsetSpaceGroup(SpaceGroup spaceGroup) Deprecated.in 5.9.voidsetSpaceManager(SpaceManager spaceManager) Deprecated.since 7.5 remove in 8.0voidsetSpaceStatus(SpaceStatus spaceStatus) voidsetSpaceType(SpaceType spaceType) toString()Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierNameMethods inherited from class com.atlassian.core.bean.EntityObject
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.atlassian.confluence.core.Addressable
getIdMethods 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:
equalsin classcom.atlassian.core.bean.EntityObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.atlassian.core.bean.EntityObject
-
clone
- Overrides:
clonein 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:
getSearchableDependantsin interfaceSearchable
-
isIndexable
public boolean isIndexable()Description copied from interface:SearchableAllows an object to tell the search indexer that it is not allowed to be indexed- Specified by:
isIndexablein interfaceSearchable
-
setSpaceManager
Deprecated.since 7.5 remove in 8.0 -
getUrlPath
- Specified by:
getUrlPathin 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:
getDisplayTitlein interfaceAddressable- Returns:
- the title of the addressable object, suitable for display in a list
-
getType
- Specified by:
getTypein interfaceContentTypeAware- Returns:
- the content type
-
isPersonal
public boolean isPersonal() -
isGlobal
public boolean isGlobal() -
getSpaceGroup
Deprecated.in 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them. -
setSpaceGroup
Deprecated.in 5.9.SpaceGroupand related classes likeSpaceGroupManagerandSpaceGroupComparatorwill be removed. Please do not use them. -
getSpaceStatus
-
setSpaceStatus
-
getDefaultHomepageTitle
-
isArchived
public boolean isArchived() -
toString
-