Class Wikipage
Object
Wikipage
-
Constructor Summary
ConstructorsConstructorDescriptionWikipage()Wikipage(String title, String name, LocalDateTime createDate, LocalDateTime modifiedDate, String version, String content) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanAs this Wikipage does not know anything about processing a wiki format, this just returns a transient field.getName()The owner of the wikipage, or at least the last one modifying it.getTitle()inthashCode()voidvoidsetAdministration(boolean administration) voidsetChildren(List<Wikipage> children) voidsetComment(String comment) voidsetContent(String content) voidsetCreateDate(LocalDateTime createDate) voidsetHtmlContent(String htmlContent) Set the appropriate HTML format of the wikipage.voidsetModifiedDate(LocalDateTime modifiedDate) voidvoidsetOrdering(Integer ordering) voidvoidsetSummary(String summary) voidvoidsetVersion(String version) toString()
-
Constructor Details
-
Wikipage
public Wikipage() -
Wikipage
-
Wikipage
public Wikipage(String title, String name, LocalDateTime createDate, LocalDateTime modifiedDate, String version, String content)
-
-
Method Details
-
getTitle
-
setTitle
-
getName
The owner of the wikipage, or at least the last one modifying it.- Returns:
- the name of a player.
-
setName
-
getCreateDate
-
setCreateDate
-
getModifiedDate
-
setModifiedDate
-
getVersion
-
setVersion
-
getContent
-
setContent
-
getSummary
-
setSummary
-
getChildren
-
setChildren
-
getParent
-
setParent
-
getAdministration
public boolean getAdministration() -
setAdministration
public void setAdministration(boolean administration) -
getComment
-
setComment
-
getOrdering
-
setOrdering
-
hashCode
-
equals
-
toString
-
increaseVersion
public void increaseVersion() -
getHtmlContent
As this Wikipage does not know anything about processing a wiki format, this just returns a transient field. Formatting is done elsewhere. Simply make sure to callsetHtmlContent(java.lang.String)appropriately beforehand.- Returns:
- a string
- See Also:
-
setHtmlContent
Set the appropriate HTML format of the wikipage. This sets a transient field which can then be used for displaying. This field is not stored in the database.- Parameters:
htmlContent- the html content representation of thegetContent().
-