public interface WGLanguageChooser
Modifier and Type | Method and Description |
---|---|
java.util.List<WGLanguage> |
getQueryLanguages(WGDatabase db)
Chooses languages to select in a query.
|
WGContent |
selectContentForName(WGDatabase db,
java.lang.String name,
boolean authoring)
Chooses the language version of a content document for a given unique name
|
WGContent |
selectContentForPage(WGStructEntry page,
boolean authoring)
Chooses the language version of a content document for a given pagee
|
java.util.List<WGContent> |
selectContentPriorityOrder(WGStructEntry entry,
boolean authoring)
Orders the content of a struct entry in the order they should be priorized language-wise.
|
WGLanguage |
selectDatabaseLanguage(WGDatabase db)
Chooses a language to use for the given database in some contextless functionality
|
WGContent selectContentForName(WGDatabase db, java.lang.String name, boolean authoring) throws WGAPIException
db
- The database containing the documentname
- The unique nameauthoring
- True if authoring mode is enabled, i.E. draft documents may be returnedWGAPIException
WGContent selectContentForPage(WGStructEntry page, boolean authoring) throws WGAPIException
page
- The pageauthoring
- True if authoring mode is enabled, i.E. draft documents may be returnedWGAPIException
WGLanguage selectDatabaseLanguage(WGDatabase db) throws WGAPIException
db
- The databaseWGAPIException
java.util.List<WGLanguage> getQueryLanguages(WGDatabase db) throws WGAPIException, WGNotSupportedException
db
- The databaseWGAPIException
WGNotSupportedException
- If the chooser does not support this functionalityjava.util.List<WGContent> selectContentPriorityOrder(WGStructEntry entry, boolean authoring) throws WGAPIException
entry
- The entry whose publishable contents to orderauthoring
- True if authoring mode is enabled, i.E. draft documents may be returnedWGAPIException