public class DashboardConfiguration extends Object
| Constructor and Description |
|---|
DashboardConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
CheckConfiguration |
getChecks()
Gets the configuration for the file checks.
|
List<String> |
getExcludes()
Gets the global ant-style exclude patterns that have effect across all repositories.
|
List<String> |
getIncludes()
Gets the global ant-style include patterns that have effect across all repositories.
|
LanguageComparator |
getLanguageComparator()
Gets the comparator to be used for the languages in the dashboard.
|
List<String> |
getLanguages()
Gets the list of all languages.
|
String |
getMirrorPrefix()
Gets the mirror prefix, that should be used when a mirror url is defined in the repositories.
|
Notification |
getNotification()
Gets the notification configuration
|
String |
getRepoPrefix()
Gets the URL prefix, that should be used for every repository url.
|
List<Repository> |
getRepositories()
Gets the list of configured repositories.
|
Repository |
getRepositoryById(String repoId)
Lookup a repository configuration by id.
|
String |
getViewvcPrefix()
Gets the web-URL prefix, that should be used for every repository url.
|
boolean |
isCreateTMX()
Whether to create TMX files for download or not.
|
static DashboardConfiguration |
readFromFile(String file)
Reads the configuration from a JSON file.
|
void |
setChecks(CheckConfiguration checks)
Sets the configuration for the file checks.
|
void |
setCreateTMX(boolean createTMX)
Sets whether to create TMX files for download or not.
|
void |
setExcludes(List<String> excludes)
Sets the global ant-style exclude patterns that have effect across all repositories.
|
void |
setIncludes(List<String> includes)
Sets the global ant-style include patterns that have effect across all repositories.
|
void |
setLanguageComparator(LanguageComparator languageComparator)
Sets the comparator to be used for the languages in the dashboard.
|
void |
setLanguages(List<String> languages)
Sets the list of all languages.
|
void |
setMirrorPrefix(String mirrorPrefix)
Sets the mirror prefix.
|
void |
setNotification(Notification notification)
Sets the notification configuration
|
void |
setRepoPrefix(String repoPrefix)
Sets the URL prefix, that should be used for every repository url.
|
void |
setRepositories(List<Repository> repositories)
Sets the list of configured repositories.
|
void |
setViewvcPrefix(String viewvcPrefix)
Sets the web-URL prefix, that should be used for every repository url.
|
public String getRepoPrefix()
public void setRepoPrefix(String repoPrefix)
repoPrefix - the prefixpublic String getMirrorPrefix()
public void setMirrorPrefix(String mirrorPrefix)
mirrorPrefix - the new mirror prefixpublic String getViewvcPrefix()
public void setViewvcPrefix(String viewvcPrefix)
viewvcPrefix - the web-URL prefixpublic List<Repository> getRepositories()
public void setRepositories(List<Repository> repositories)
repositories - the repositoriespublic List<String> getIncludes()
Repository.getIncludes()public void setIncludes(List<String> includes)
includes - the include patterns.Repository.getIncludes()public List<String> getExcludes()
Repository.getExcludes()public void setExcludes(List<String> excludes)
excludes - the exclude patterns.Repository.getExcludes()public boolean isCreateTMX()
true if TMX files should be created.public void setCreateTMX(boolean createTMX)
createTMX - true if TMX files should be created.public List<String> getLanguages()
public void setLanguages(List<String> languages)
languages - all languagespublic LanguageComparator getLanguageComparator()
LanguageComparator.ALPHABETICAL_VARIANTS_LASTpublic void setLanguageComparator(LanguageComparator languageComparator)
languageComparator - the language comparatorpublic CheckConfiguration getChecks()
public void setChecks(CheckConfiguration checks)
checks - the file check configurationspublic Notification getNotification()
public void setNotification(Notification notification)
notification - the notification configurationpublic Repository getRepositoryById(String repoId)
repoId - the repo idRepository configuration or nullpublic static DashboardConfiguration readFromFile(String file)
file - the file to read fromCopyright © 2013-2015. All Rights Reserved.