public class SiteInformationCache extends AbstractLogEnabled implements Serviceable, Component
Modifier and Type | Class and Description |
---|---|
(package private) class |
SiteInformationCache.SiteUrlComparator |
Modifier and Type | Field and Description |
---|---|
private LDAPDataSourceManager |
_ldapDataSourceManager |
private Map<SiteUrl,Site> |
_sites |
private SQLDataSourceManager |
_sqlDataSourceManager |
private Lock |
_syncLock |
private UserPopulationDAO |
_userPopulationDAO |
static String |
BACKOFFICE_PREFIX_IDENTIFIER
Prefix for backoffice synchronized userpopulations
|
static String |
ROLE
Avalon Role
|
Constructor and Description |
---|
SiteInformationCache() |
Modifier and Type | Method and Description |
---|---|
private void |
_configureSites(Configuration conf,
Collection<Site> sites) |
private Configuration |
_getBackofficeConfiguration(String url) |
private void |
_serialize(Configuration configuration,
File file) |
private void |
_synchronize() |
private void |
_synchronizeMonitoringAndCaptcha(Configuration boConfiguration) |
private void |
_synchronizePopulationsAndDatasources()
Synchronize the local user populations and datasources with backoffice
|
private void |
_synchronizeSites() |
Map<SiteUrl,Site> |
getSites()
Returns the cached informations.
|
void |
resetSitesCache()
Clear cached informations.
|
void |
service(ServiceManager manager) |
getLogger, setLogger
public static final String BACKOFFICE_PREFIX_IDENTIFIER
private LDAPDataSourceManager _ldapDataSourceManager
private SQLDataSourceManager _sqlDataSourceManager
private UserPopulationDAO _userPopulationDAO
public SiteInformationCache()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void resetSitesCache()
public Map<SiteUrl,Site> getSites()
private void _synchronize()
private void _synchronizeSites() throws ConfigurationException
ConfigurationException
private void _configureSites(Configuration conf, Collection<Site> sites) throws ConfigurationException
ConfigurationException
private Configuration _getBackofficeConfiguration(String url)
private void _synchronizePopulationsAndDatasources() throws Exception
Exception
- If an unexpected error occurredprivate void _serialize(Configuration configuration, File file) throws Exception
Exception
private void _synchronizeMonitoringAndCaptcha(Configuration boConfiguration)