public class OnlyDefaultLanguageBehaviour extends java.lang.Object implements LanguageBehaviour, PriorizingLanguageBehaviour
| Constructor and Description |
|---|
OnlyDefaultLanguageBehaviour() |
| Modifier and Type | Method and Description |
|---|---|
de.innovationgate.webgate.api.WGContent |
requestSelectContentForName(de.innovationgate.webgate.api.WGDatabase db,
javax.servlet.http.HttpServletRequest req,
java.lang.String name,
boolean isBI)
Selects a content for an unique name based on request locales
|
de.innovationgate.webgate.api.WGContent |
requestSelectContentForPage(de.innovationgate.webgate.api.WGStructEntry page,
javax.servlet.http.HttpServletRequest req,
boolean isBI)
Selects a content from a page on based on request locales
|
de.innovationgate.webgate.api.WGLanguage |
requestSelectDatabaseLanguage(de.innovationgate.webgate.api.WGDatabase db,
javax.servlet.http.HttpServletRequest req)
Selects a language from a database based on request locales
|
java.util.List<de.innovationgate.webgate.api.WGContent> |
requestSelectPriorityOrder(de.innovationgate.webgate.api.WGStructEntry entry,
javax.servlet.http.HttpServletRequest req,
boolean isBI)
Orders the given contents in the order they should be priorized language-wise for a request
|
java.lang.String |
webtmlFetchLabel(WGAResourceBundleManager manager,
TMLContext context,
java.lang.String container,
java.lang.String file,
java.lang.String key)
Fetches an WebTML label inside processing of a WebTML request
|
java.lang.String |
webtmlGetPreferredLanguage(de.innovationgate.webgate.api.WGDatabase db,
TMLContext context)
Returns a language to prefer in the current request for the given database.
|
java.util.List<de.innovationgate.webgate.api.WGLanguage> |
webtmlQueryLanguages(de.innovationgate.webgate.api.WGDatabase db,
TMLContext context)
Returns the languages to return in a WebTML query
|
de.innovationgate.webgate.api.WGContent |
webtmlSelectContentForName(de.innovationgate.webgate.api.WGDatabase db,
TMLContext context,
java.lang.String name,
boolean isBI)
Selects a content for an unique name inside processing of a WebTML request
|
de.innovationgate.webgate.api.WGContent |
webtmlSelectContentForPage(de.innovationgate.webgate.api.WGStructEntry page,
TMLContext sourceContext,
boolean isBI)
Selects a content from a page inside processing of a WebTML request
|
de.innovationgate.webgate.api.WGLanguage |
webtmlSelectDatabaseLanguage(de.innovationgate.webgate.api.WGDatabase db,
TMLContext sourceContext)
Selects a language from a database inside processing of a WebTML request
|
java.util.List<de.innovationgate.webgate.api.WGContent> |
webtmlSelectPriorityOrder(de.innovationgate.webgate.api.WGStructEntry entry,
TMLContext context,
boolean isBI)
Orders the given contents in the order they should be priorized language-wise inside of a WebTML request
|
public de.innovationgate.webgate.api.WGContent requestSelectContentForPage(de.innovationgate.webgate.api.WGStructEntry page,
javax.servlet.http.HttpServletRequest req,
boolean isBI)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourrequestSelectContentForPage in interface LanguageBehaviourpage - The pagereq - The current requestisBI - Is true when the user is logged in to authoringde.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGLanguage requestSelectDatabaseLanguage(de.innovationgate.webgate.api.WGDatabase db,
javax.servlet.http.HttpServletRequest req)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourrequestSelectDatabaseLanguage in interface LanguageBehaviourdb - The databasereq - The current requestde.innovationgate.webgate.api.WGAPIExceptionpublic java.lang.String webtmlFetchLabel(WGAResourceBundleManager manager, TMLContext context, java.lang.String container, java.lang.String file, java.lang.String key) throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourwebtmlFetchLabel in interface LanguageBehaviourmanager - The resource bundle manager for those labelscontext - The context from whom the function is called. Note that this may be a context from another database.container - The label container namefile - The label file namekey - The label keyde.innovationgate.webgate.api.WGAPIExceptionpublic java.util.List<de.innovationgate.webgate.api.WGLanguage> webtmlQueryLanguages(de.innovationgate.webgate.api.WGDatabase db,
TMLContext context)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourwebtmlQueryLanguages in interface LanguageBehaviourdb - The database running the querycontext - The context from whom the query is executed. Note that this may be a context from another database.de.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGContent webtmlSelectContentForPage(de.innovationgate.webgate.api.WGStructEntry page,
TMLContext sourceContext,
boolean isBI)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourwebtmlSelectContentForPage in interface LanguageBehaviourpage - The pagesourceContext - The context from whom to the page is addressed. Note that this may be a context from another database.isBI - Is true when the user is logged in to authoringde.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGLanguage webtmlSelectDatabaseLanguage(de.innovationgate.webgate.api.WGDatabase db,
TMLContext sourceContext)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourwebtmlSelectDatabaseLanguage in interface LanguageBehaviourdb - The databasesourceContext - The context from whom the function is called. Note that this may be a context from another database.de.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGContent requestSelectContentForName(de.innovationgate.webgate.api.WGDatabase db,
javax.servlet.http.HttpServletRequest req,
java.lang.String name,
boolean isBI)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourrequestSelectContentForName in interface LanguageBehaviourdb - The database holding the contentreq - The current requestname - The unique nameisBI - Is true when the user is logged in to authoringde.innovationgate.webgate.api.WGAPIExceptionpublic de.innovationgate.webgate.api.WGContent webtmlSelectContentForName(de.innovationgate.webgate.api.WGDatabase db,
TMLContext context,
java.lang.String name,
boolean isBI)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourwebtmlSelectContentForName in interface LanguageBehaviourdb - The databasecontext - The context from whom the function is called. Note that this may be a context from another database.name - The unique nameisBI - Is true when the user is logged in to authoringde.innovationgate.webgate.api.WGAPIExceptionpublic java.lang.String webtmlGetPreferredLanguage(de.innovationgate.webgate.api.WGDatabase db,
TMLContext context)
throws de.innovationgate.webgate.api.WGAPIException
LanguageBehaviourwebtmlGetPreferredLanguage in interface LanguageBehaviourcontext - The database for whom the preferred language is to be determinedde.innovationgate.webgate.api.WGAPIExceptionpublic java.util.List<de.innovationgate.webgate.api.WGContent> webtmlSelectPriorityOrder(de.innovationgate.webgate.api.WGStructEntry entry,
TMLContext context,
boolean isBI)
throws de.innovationgate.webgate.api.WGAPIException
PriorizingLanguageBehaviourwebtmlSelectPriorityOrder in interface PriorizingLanguageBehaviourentry - The entry whose publishable contents to ordercontext - The WebTML context for whom to decideisBI - True if authoring mode is enabled, i.E. draft documents may be returnedde.innovationgate.webgate.api.WGAPIExceptionpublic java.util.List<de.innovationgate.webgate.api.WGContent> requestSelectPriorityOrder(de.innovationgate.webgate.api.WGStructEntry entry,
javax.servlet.http.HttpServletRequest req,
boolean isBI)
throws de.innovationgate.webgate.api.WGAPIException
PriorizingLanguageBehaviourrequestSelectPriorityOrder in interface PriorizingLanguageBehaviourentry - The entry whose publishable contents to orderreq - The servlet request for whom to decideisBI - True if authoring mode is enabled, i.E. draft documents may be returnedde.innovationgate.webgate.api.WGAPIException