@Unstable public class WikiDescriptor extends Object
Constructor and Description |
---|
WikiDescriptor(String id,
String defaultAlias)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAlias(String alias) |
void |
addPropertyGroup(WikiPropertyGroup group)
Add a property group to the wiki.
|
boolean |
equals(Object object) |
List<String> |
getAliases() |
String |
getDefaultAlias()
The default alias is the alias used to generate URL for that wiki.
|
String |
getDescription() |
String |
getId() |
DocumentReference |
getMainPageReference() |
String |
getOwnerId() |
String |
getPrettyName() |
WikiPropertyGroup |
getPropertyGroup(String propertyGroupId) |
WikiReference |
getReference() |
int |
hashCode() |
boolean |
isHidden() |
void |
setDefaultAlias(String alias)
Set the default alias.
|
void |
setDescription(String description) |
void |
setHidden(boolean hidden)
Set if the wiki is hidden.
|
void |
setMainPageReference(DocumentReference reference) |
void |
setOwnerId(String ownerId) |
void |
setPrettyName(String prettyName) |
public String getId()
public String getDefaultAlias()
public void setDefaultAlias(String alias)
alias
- the new default aliaspublic void addAlias(String alias)
alias
- the new alias to addpublic String getPrettyName()
public void setPrettyName(String prettyName)
prettyName
- the new pretty namepublic String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- the Id of the owner of the wikipublic WikiReference getReference()
public DocumentReference getMainPageReference()
public void setMainPageReference(DocumentReference reference)
reference
- Reference to the main page of the wikipublic boolean isHidden()
public void setHidden(boolean hidden)
hidden
- if the wiki is hidden or notpublic String getDescription()
public void setDescription(String description)
description
- the description to setpublic WikiPropertyGroup getPropertyGroup(String propertyGroupId)
propertyGroupId
- the id of the property group to retrievepublic void addPropertyGroup(WikiPropertyGroup group)
group
- property group to addCopyright © 2004–2014 XWiki. All rights reserved.