public class AboutInfoProvider extends AbstractLogEnabled implements Serviceable, Component, Contextualizable
Modifier and Type | Field and Description |
---|---|
private Context |
_cocoonContext
The cocoon context
|
private VersionsHandler |
_versionsHandler
The versions handler
|
private static String |
LOGO_FILE_PATH
The path of the Application logo
|
private static String |
NOTICE_FILE_PATH
The name of the license text file
|
static String |
ROLE
The Avalon role
|
Constructor and Description |
---|
AboutInfoProvider() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
String |
getApplicationLogo()
Get the path of the application logo
|
String |
getApplicationName(String lang)
Gets the application name
|
Map<String,Object> |
getInfo(String lang)
Gets the information for "About Ametys" feature
|
String |
getLicenseText()
Gets the content of the license text.
|
List<Map<String,Object>> |
getVersions()
Gets the available versions of the application.
|
void |
service(ServiceManager manager) |
getLogger, setLogger
private static final String NOTICE_FILE_PATH
private static final String LOGO_FILE_PATH
private VersionsHandler _versionsHandler
private Context _cocoonContext
public AboutInfoProvider()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public Map<String,Object> getInfo(String lang) throws IOException
lang
- the langIOException
- if there are issue while reading the license filepublic String getApplicationLogo()
public String getApplicationName(String lang)
lang
- The langpublic List<Map<String,Object>> getVersions()
public String getLicenseText() throws IOException
IOException
- If the license file cannot be read