Constructor and Description |
---|
WikiDescriptor(String id,
String defaultAlias)
Constructor.
|
WikiDescriptor(String id,
String defaultAlias,
String ownerId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addAlias(String alias) |
void |
addPropertyGroup(WikiPropertyGroup group)
Add a property group to the wiki.
|
WikiDescriptor |
clone() |
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() |
int |
getPort() |
String |
getPrettyName() |
WikiPropertyGroup |
getPropertyGroup(String propertyGroupId) |
WikiReference |
getReference() |
int |
hashCode() |
boolean |
isHidden() |
Boolean |
isSecure() |
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 |
setPort(int port) |
void |
setPrettyName(String prettyName) |
void |
setSecure(Boolean secure) |
public WikiDescriptor(String id, String defaultAlias)
id
- Unique Id of the wikidefaultAlias
- Default alias of the wikipublic 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 Boolean isSecure()
public void setSecure(Boolean secure)
secure
- true if the wiki should be accessed trough a secure connection (HTTPS), null means defaultpublic int getPort()
public void setPort(int port)
port
- the port to use when generating external URL for the wiki, -1 means defaultpublic WikiPropertyGroup getPropertyGroup(String propertyGroupId)
propertyGroupId
- the id of the property group to retrievepublic void addPropertyGroup(WikiPropertyGroup group)
group
- property group to addpublic WikiDescriptor clone()
Copyright © 2004–2021 XWiki. All rights reserved.