Package com.atlassian.confluence.spaces
Class Space
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.AnnotatedEntityObject
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 TypeMethodDescriptionvoidaddPageTemplate(PageTemplate pageTemplate) voidaddPermission(SpacePermission permission) clone()booleanDeprecated, 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()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.voidsetSpaceStatus(SpaceStatus spaceStatus) voidsetSpaceType(SpaceType spaceType) toString()Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setLastModifierMethods inherited from class com.atlassian.confluence.core.AnnotatedEntityObject
getCreationDate, getLastModificationDateMethods inherited from class com.atlassian.core.bean.EntityObject
getCurrentDate, getId, 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, 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:
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
-
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
-
getUrlPath
- Specified by:
getUrlPathin 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:
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
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()