Package io.jans.link.timer
Class JansLinkTimer
java.lang.Object
io.jans.link.service.BaseJansLinkTimer
io.jans.link.timer.JansLinkTimer
Check periodically if source servers contains updates and trigger target
server entry update if needed
- Author:
- Yuriy Movchan Date: 05.05.2011
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jans.link.service.BaseJansLinkTimer
BaseJansLinkTimer.LdapServerConnection, BaseJansLinkTimer.TypedGluuSimplePerson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapplyChangesToInumMap
(HashMap<String, JansInumMap> inumInumMap, HashMap<CacheCompoundKey, JansInumMap> addedPrimaryKeyAttrValueInumMap, List<String> removedGluuInumMaps) getAllInumServerEntries
(HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap, HashMap<CacheCompoundKey, JansInumMap> addedPrimaryKeyAttrValueInumMap) getInumCacheCompoundKeyMap
(HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap) getInumInumMap
(List<JansInumMap> inumMaps) getPrimaryKeyAttrValueInumMap
(List<JansInumMap> inumMaps) getSourcePersonsHashCodesMap
(BaseJansLinkTimer.LdapServerConnection inumDbServerConnection, Map<CacheCompoundKey, GluuSimplePerson> sourcePersonCacheCompoundKeyMap, HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap) void
loadInumServerEntries
(LinkConfiguration linkConfiguration, BaseJansLinkTimer.LdapServerConnection inumDbServerConnection) prepareLdapServerConnection
(LinkConfiguration linkConfiguration, io.jans.model.ldap.GluuLdapConfiguration ldapConfiguration) void
void
void
setConfigurationFactory
(ConfigurationFactory configurationFactory) updateTargetEntriesViaCopy
(LinkConfiguration linkConfiguration, Map<CacheCompoundKey, GluuSimplePerson> sourcePersonCacheCompoundKeyMap, HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap, Set<String> changedInums) Methods inherited from class io.jans.link.service.BaseJansLinkTimer
addGluuInumMap, closeLdapServerConnection, getBaseDNs, getChangedInums, getCompoundKeyAttributes, getCompoundKeyAttributesWithoutValues, getCompoundKeyObjectClasses, getInumCachePath, getIsActive, getLdapEntryManager, getRemovedPersons, getSourceAttributes, getTargetServerAttributesMapping, getUpdateMethod, loadSourceServerEntries, loadSourceServerEntriesWithoutLimits, loadTargetServerEntries, processTargetPersons, setIsActive, setLdapEntryManager, toLdapProperties, updateTargetEntriesViaVDS, updateTargetEntryViaCopy, validateTargetServerSchema
-
Field Details
-
applicationFactory
-
-
Constructor Details
-
JansLinkTimer
public JansLinkTimer()
-
-
Method Details
-
initTimer
public void initTimer() -
process
-
processInt
public void processInt() -
prepareLdapServerConnection
public BaseJansLinkTimer.LdapServerConnection prepareLdapServerConnection(LinkConfiguration linkConfiguration, io.jans.model.ldap.GluuLdapConfiguration ldapConfiguration) -
getConfigurationFactory
-
setConfigurationFactory
-
applyChangesToInumMap
public ArrayList<JansInumMap> applyChangesToInumMap(HashMap<String, JansInumMap> inumInumMap, HashMap<CacheCompoundKey, JansInumMap> addedPrimaryKeyAttrValueInumMap, List<String> removedGluuInumMaps) -
updateTargetEntriesViaCopy
public List<String> updateTargetEntriesViaCopy(LinkConfiguration linkConfiguration, Map<CacheCompoundKey, GluuSimplePerson> sourcePersonCacheCompoundKeyMap, HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap, Set<String> changedInums) -
getInumCacheCompoundKeyMap
public HashMap<String,CacheCompoundKey> getInumCacheCompoundKeyMap(HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap) -
loadInumServerEntries
public List<JansInumMap> loadInumServerEntries(LinkConfiguration linkConfiguration, BaseJansLinkTimer.LdapServerConnection inumDbServerConnection) -
getAllInumServerEntries
public HashMap<CacheCompoundKey,JansInumMap> getAllInumServerEntries(HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap, HashMap<CacheCompoundKey, JansInumMap> addedPrimaryKeyAttrValueInumMap) -
getSourcePersonsHashCodesMap
public HashMap<String,Integer> getSourcePersonsHashCodesMap(BaseJansLinkTimer.LdapServerConnection inumDbServerConnection, Map<CacheCompoundKey, GluuSimplePerson> sourcePersonCacheCompoundKeyMap, HashMap<CacheCompoundKey, JansInumMap> primaryKeyAttrValueInumMap) -
getPrimaryKeyAttrValueInumMap
public HashMap<CacheCompoundKey,JansInumMap> getPrimaryKeyAttrValueInumMap(List<JansInumMap> inumMaps) -
getInumInumMap
-