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 CredentialProviderFactory |
_credentialProviderFactory |
private DataSourceConsumerExtensionPoint |
_dataSourceConsumerEP |
private LDAPDataSourceManager |
_ldapDataSourceManager |
private Map<SiteUrl,Site> |
_sites |
private SQLDataSourceManager |
_sqlDataSourceManager |
private UserDirectoryFactory |
_userDirectoryFactory |
private UserPopulationDAO |
_userPopulationDAO |
static String |
BACKOFFICE_PREFIX_IDENTIFIER
Prefix for backoffice synchronized userpopulations
|
static String |
ROLE
Avalon Role
|
Constructor and Description |
---|
SiteInformationCache() |
getLogger, setLogger
public static final String BACKOFFICE_PREFIX_IDENTIFIER
private LDAPDataSourceManager _ldapDataSourceManager
private SQLDataSourceManager _sqlDataSourceManager
private UserPopulationDAO _userPopulationDAO
private UserDirectoryFactory _userDirectoryFactory
private CredentialProviderFactory _credentialProviderFactory
private DataSourceConsumerExtensionPoint _dataSourceConsumerEP
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()
private void _synchronizeMonitoringAndCaptcha(Configuration boConfiguration, Map<String,String> mapping)
private void _addBackOfficeSynchronizedElements(Configuration configuration)
private Map<String,String> _addBackofficeDatasources(Configuration configuration)
private Map<String,String> _addBackofficeSQLDatasources(Configuration configuration)
private Map<String,String> _addBackofficeLDAPDatasources(Configuration configuration)
private void _addBackOfficeUserPopulations(Configuration configuration, Map<String,String> mapping)
private void _removeBackOfficeSynchronizedElements()
private Set<String> _removeBackOfficeUserPopulations()
private void _removeBackofficeDatasources(Set<String> datasourceIds)
private Set<String> _getDatasourcesUsedByPopulation(UserPopulation userPopulation)