|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xwiki.wiki.descriptor.WikiDescriptor
@Unstable public class WikiDescriptor
This class is a descriptor for wiki.
| Constructor Summary | |
|---|---|
WikiDescriptor(String id,
String defaultAlias)
Constructor. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WikiDescriptor(String id,
String defaultAlias)
id - Unique Id of the wikidefaultAlias - Default alias of the wiki| Method Detail |
|---|
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 List<String> getAliases()
public 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 retrieve
public void addPropertyGroup(WikiPropertyGroup group)
group - property group to addpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||