de.espirit.firstspirit.agency
Interface LanguageAgent


public interface LanguageAgent

Definition for an agent offering information about project persistency languages. These are the languages defined within a project to be used by editors creating content. This agent is focused on a specific project.

Examples:
SpecialistsBroker.requireSpecialist(LanguageAgent.TYPE).LanguageAgent.getLanguages()
SpecialistsBroker.requireSpecialist(LanguageAgent.TYPE).LanguageAgent.getMasterLanguage()

Since:
4.2.405

Field Summary
static SpecialistType<LanguageAgent> TYPE
          The agent's technical type to be used for requesting the agent from a SpecialistsBroker.
 
Method Summary
 List<Language> getLanguages()
          Provide access to available persistency languages.
 Language getMasterLanguage()
          Provides the persistency language used as master.
 Map<String,Language> getProjectLanguages(boolean includeFallback)
          Provide access to available persistency languages, mapping abbreviations to the respective language definition.
 

Field Detail

TYPE

static final SpecialistType<LanguageAgent> TYPE
The agent's technical type to be used for requesting the agent from a SpecialistsBroker.

Since:
4.2.405
Method Detail

getMasterLanguage

Language getMasterLanguage()
Provides the persistency language used as master.

Returns:
The master language.
Since:
4.2.405

getLanguages

List<Language> getLanguages()
Provide access to available persistency languages.

Returns:
An (unmodifiable) list of languages.
Since:
4.2.405

getProjectLanguages

Map<String,Language> getProjectLanguages(boolean includeFallback)
Provide access to available persistency languages, mapping abbreviations to the respective language definition.

Parameters:
includeFallback - If true, the Fallback-Language is included in the resulting map.
Returns:
An (unmodifiable) map, where each value is a language and the key is the respective abbreviation.
Since:
4.2.405


Copyright © 2012 e-Spirit AG. All Rights Reserved. Build 4.2.480