java.lang.Object
com.semanticcms.core.model.Book
- All Implemented Interfaces:
Comparable<Book>
A book contains pages and is the central mechanism for high-level
separation of content. Each book usually has its own code repository
and a book can be added to multiple webapps.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
boolean
Gets the allowRobots setting of the book.Gets the authors of the book.Gets the configured canonicalBase for this book, ornull
if not configured.Gets the content root for the book.Gets the copyright for the book ornull
if none declared.getName()
getParam()
Gets the parent pages for this book in the context of the current overall content.Gets the path prefix for all pages in this book.getTitle()
int
hashCode()
toString()
-
Constructor Details
-
Book
public Book(String name, String cvsworkDirectory, boolean allowRobots, Set<ParentRef> parentRefs, Properties bookProps)
-
-
Method Details
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareTo
in interfaceComparable<Book>
-
getName
-
getPathPrefix
Gets the path prefix for all pages in this book. This will be an empty string for the root book (/). -
getCvsworkDirectory
-
getParentRefs
Gets the parent pages for this book in the context of the current overall content. -
getCanonicalBase
Gets the configured canonicalBase for this book, ornull
if not configured. Any trailing slash (/) has been stripped from the canonicalBase so can directly concatenate canonicalBase + path -
getContentRoot
Gets the content root for the book. -
getCopyright
Gets the copyright for the book ornull
if none declared. As book copyrights are not inherited, all copyright fields will be non-null. -
getAuthors
Gets the authors of the book. Any page without more specific authors in itself or a parent (within the book) will use these authors. -
getTitle
-
getAllowRobots
public boolean getAllowRobots()Gets the allowRobots setting of the book. Any page with an "auto" setting and no parents within the book will use this setting. -
getParam
-