public class SitesConfigTO extends Object implements TimeStamped, Serializable
Modifier and Type | Field and Description |
---|---|
protected ZonedDateTime |
_lastUpdated
last updated date
|
protected Map<String,String> |
_repositoryTypes
the site names and repository types mapping
|
protected Map<String,String> |
_siteInstanceTypes
the site names and site types mapping
|
protected String |
_sitesLocation
the path to where all sites are stored
|
protected Map<String,String> |
_sitesMenu
the sites drop-down menu items
|
protected Map<String,String> |
_siteTypes
the preset keys and site types mapping
|
Constructor and Description |
---|
SitesConfigTO() |
Modifier and Type | Method and Description |
---|---|
void |
addSiteInstanceType(String site,
String siteType)
add an entry of site instance and site type
|
ZonedDateTime |
getLastUpdated()
get the last updated date
|
String |
getRepositoryType(String site)
get the repository type of the give site
|
Map<String,String> |
getRepositoryTypes() |
String |
getSiteInstanceType(String site)
get the site type of the given site instance
|
Map<String,String> |
getSiteInstanceTypes() |
String |
getSitesLocation() |
Map<String,String> |
getSitesMenu() |
String |
getSiteType(String preset)
get the site type of the given site preset
|
Map<String,String> |
getSiteTypes() |
void |
setLastUpdated(ZonedDateTime lastUpdated)
set the last updated date
|
void |
setRepositoryTypes(Map<String,String> repositoryTypes) |
void |
setSiteInstanceTypes(Map<String,String> siteInstanceTypes) |
void |
setSitesLocation(String sitesLocation) |
void |
setSitesMenu(Map<String,String> sitesMenu) |
void |
setSiteTypes(Map<String,String> siteTypes) |
protected Map<String,String> _repositoryTypes
protected Map<String,String> _siteInstanceTypes
protected String _sitesLocation
protected ZonedDateTime _lastUpdated
public ZonedDateTime getLastUpdated()
TimeStamped
getLastUpdated
in interface TimeStamped
public void setLastUpdated(ZonedDateTime lastUpdated)
TimeStamped
setLastUpdated
in interface TimeStamped
public void setSitesMenu(Map<String,String> sitesMenu)
sitesMenu
- the sitesMenu to setpublic void setSiteTypes(Map<String,String> siteTypes)
siteTypes
- the siteTypes to setpublic void setSiteInstanceTypes(Map<String,String> siteInstanceTypes)
siteInstanceTypes
- the siteInstanceTypes to setpublic Map<String,String> getSiteInstanceTypes()
public void setSitesLocation(String sitesLocation)
sitesLocation
- the sitesLocation to setpublic String getSitesLocation()
public void setRepositoryTypes(Map<String,String> repositoryTypes)
repositoryTypes
- the repositoryTypes to setpublic String getSiteType(String preset)
preset
- public String getRepositoryType(String site)
site
- public String getSiteInstanceType(String site)
site
- Copyright © 2020 CrafterCMS. All rights reserved.