public class XWikiSpace extends Object
Modifier | Constructor and Description |
---|---|
protected |
XWikiSpace()
Required by Hibernate.
|
|
XWikiSpace(SpaceReference reference) |
|
XWikiSpace(SpaceReference reference,
boolean hidden) |
|
XWikiSpace(SpaceReference reference,
XWikiStoreInterface store) |
Modifier and Type | Method and Description |
---|---|
long |
getId() |
static long |
getId(SpaceReference spaceReference)
Compute a XWikiSpace ID based on a reference.
|
String |
getName() |
String |
getParent() |
String |
getReference() |
SpaceReference |
getSpaceReference() |
XWikiStoreInterface |
getStore() |
boolean |
isHidden() |
void |
setHidden(boolean hidden) |
protected void |
setId(long id)
Required by Hibernate.
|
protected void |
setName(String name)
Required by Hibernate.
|
protected void |
setParent(String parent)
Required by Hibernate.
|
protected void |
setReference(String reference)
Required by Hibernate.
|
void |
setStore(XWikiStoreInterface store)
Set the store of the space.
|
String |
toString() |
protected XWikiSpace()
public XWikiSpace(SpaceReference reference)
reference
- the complete reference of the spacepublic XWikiSpace(SpaceReference reference, boolean hidden)
reference
- the complete reference of the spacehidden
- true if all the documents in the space are hiddenpublic XWikiSpace(SpaceReference reference, XWikiStoreInterface store)
reference
- the complete reference of the spacestore
- the store where the XWikiSpace
instance come frompublic XWikiStoreInterface getStore()
XWikiSpace
instance come from@Unstable public void setStore(XWikiStoreInterface store)
store
- the store to set.@Unstable public static long getId(SpaceReference spaceReference)
spaceReference
- the reference from which to compute the IDpublic long getId()
protected void setId(long id)
id
- the synthetic id to set.public String getName()
protected void setName(String name)
name
- the name of the spacepublic String getParent()
protected void setParent(String parent)
parent
- the reference of the space parentpublic String getReference()
public boolean isHidden()
public void setHidden(boolean hidden)
hidden
- true if all the documents in the space are hiddenprotected void setReference(String reference)
reference
- public SpaceReference getSpaceReference()
Copyright © 2004–2021 XWiki. All rights reserved.