Package org.ametys.plugins.site
Class Site
java.lang.Object
org.ametys.plugins.site.Site
Site's informations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the languages of the sitegetName()
Returns the site name.Get the populations IDs associated to the sitegetSignupPages
(String lang) Return the sign-up pagesGet the URLs of the sitegetTitle()
Returns the site title.getWeakPasswordUrl
(String lang) Get the weak password url for a languagetoString()
-
Constructor Details
-
Site
public Site(String name, String title, List<SiteUrl> urls, List<String> languages, List<String> populationIds, Map<String, List<SiteInformationCache.SignupPage>> signupPages, Map<String, String> weakPasswordUrls) Constructor.- Parameters:
name
- the site nametitle
- the site titleurls
- the front-office server URLs.languages
- the languages handle by the sitepopulationIds
- the IDs of populations attached to the sitesignupPages
- The sign-up page local URLweakPasswordUrls
- The weak password urls
-
-
Method Details
-
getName
Returns the site name.- Returns:
- the site name.
-
getTitle
Returns the site title.- Returns:
- the site title.
-
getSiteUrls
Get the URLs of the site- Returns:
- A non null list of URLs of the site
-
getLanguages
Get the languages of the site- Returns:
- A non null list of languages of the site
-
getPopulationIds
Get the populations IDs associated to the site- Returns:
- The non null lists
-
getSignupPages
Return the sign-up pages- Parameters:
lang
- Language of the pages- Returns:
- The sign-up pages of the language
-
getWeakPasswordUrl
Get the weak password url for a language- Parameters:
lang
- the language- Returns:
- the weak password url or null if not available
-
toString
-