Package org.openiam.esb.sync.service
Class IdentitySynchServiceImpl
- java.lang.Object
-
- org.openiam.esb.sync.service.IdentitySynchServiceImpl
-
- All Implemented Interfaces:
IdentitySynchService,org.springframework.beans.factory.InitializingBean
@Service("synchService") public class IdentitySynchServiceImpl extends Object implements IdentitySynchService, org.springframework.beans.factory.InitializingBean- Author:
- suneet
-
-
Field Summary
Fields Modifier and Type Field Description protected AttributeMapRepositoryattributeMapDAOprotected ScriptIntegrationscriptRunner
-
Constructor Summary
Constructors Constructor Description IdentitySynchServiceImpl()
-
Method Summary
-
-
-
Field Detail
-
attributeMapDAO
@Autowired protected AttributeMapRepository attributeMapDAO
-
scriptRunner
@Autowired @Qualifier("configurableGroovyScriptEngine") protected ScriptIntegration scriptRunner
-
-
Method Detail
-
getCSVConfigById
@Transactional(readOnly=true) public CSVConfigResponse getCSVConfigById(String id)
- Specified by:
getCSVConfigByIdin interfaceIdentitySynchService
-
getSyncReportByName
public StringResponse getSyncReportByName(String id, String fname)
- Specified by:
getSyncReportByNamein interfaceIdentitySynchService
-
previewCSV
@Transactional(readOnly=true) public CSVConfigResponse previewCSV(String id)
- Specified by:
previewCSVin interfaceIdentitySynchService
-
getOldCSV
public List<CSVConfigEntity> getOldCSV(Date from)
- Specified by:
getOldCSVin interfaceIdentitySynchService
-
getAllConfig
@Transactional(readOnly=true) public SynchConfigListResponse getAllConfig()
- Specified by:
getAllConfigin interfaceIdentitySynchService
-
getAllCSVConfig
@Transactional(readOnly=true) public CSVConfigListResponse getAllCSVConfig()
- Specified by:
getAllCSVConfigin interfaceIdentitySynchService
-
getAllCSVConfigNames
@Transactional(readOnly=true) public CSVConfigListResponse getAllCSVConfigNames()
- Specified by:
getAllCSVConfigNamesin interfaceIdentitySynchService
-
addCSVConfig
@Transactional public CSVConfigResponse addCSVConfig(CSVConfig synchConfig)
- Specified by:
addCSVConfigin interfaceIdentitySynchService
-
mergeConfig
@Transactional @CacheKeyEviction(evictions=@CacheKeyEvict("decryptSysConfigPassword")) public SynchConfigResponse mergeConfig(SynchConfig synchConfig) throws BasicDataServiceException
- Specified by:
mergeConfigin interfaceIdentitySynchService- Throws:
BasicDataServiceException
-
getDecryptedPassword
@Cacheable(value="decryptSysConfigPassword", key="{#synchConfigId}") public PasswordKeyDTO getDecryptedPassword(String synchConfigId, String password) throws BasicDataServiceException- Specified by:
getDecryptedPasswordin interfaceIdentitySynchService- Throws:
BasicDataServiceException
-
updateProcessingTime
@Transactional public void updateProcessingTime(String id, Timestamp time, String generalizedDate)
- Specified by:
updateProcessingTimein interfaceIdentitySynchService
-
removeCSVConfig
@Transactional public Response removeCSVConfig(String configId)
- Specified by:
removeCSVConfigin interfaceIdentitySynchService
-
removeConfig
@Transactional public void removeConfig(String configId)
- Specified by:
removeConfigin interfaceIdentitySynchService
-
count
@Transactional(readOnly=true) public int count(SynchConfigSearchBean example)
- Specified by:
countin interfaceIdentitySynchService
-
getSynchConfigs
@Transactional(readOnly=true) public List<SynchConfig> getSynchConfigs(SynchConfigSearchBean searchBean, int from, int size)
- Specified by:
getSynchConfigsin interfaceIdentitySynchService
-
deleteAttributesMapList
@Transactional protected void deleteAttributesMapList(List<AttributeMapEntity> attrMap)
-
getSynchConfigAttributeMaps
@Transactional(readOnly=true) protected List<AttributeMapEntity> getSynchConfigAttributeMaps(String synchConfigId)
-
findSynchConfigAttributeMaps
@Transactional(readOnly=true) public List<AttributeMap> findSynchConfigAttributeMaps(AttributeMapSearchBean searchBean)
- Specified by:
findSynchConfigAttributeMapsin interfaceIdentitySynchService
-
getSynchConfigAttributeMapsDTO
@Transactional(readOnly=true) public List<AttributeMap> getSynchConfigAttributeMapsDTO(String synchConfigId)
- Specified by:
getSynchConfigAttributeMapsDTOin interfaceIdentitySynchService
-
findDTOById
@Transactional(readOnly=true) public SynchConfigResponse findDTOById(String id)
- Specified by:
findDTOByIdin interfaceIdentitySynchService
-
addConfig
@Transactional public SynchConfigResponse addConfig(SynchConfig synchConfig) throws BasicDataServiceException
- Specified by:
addConfigin interfaceIdentitySynchService- Throws:
BasicDataServiceException
-
importAttrMapFromCSV
public ImportSyncResponse importAttrMapFromCSV(String syncId)
- Specified by:
importAttrMapFromCSVin interfaceIdentitySynchService
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
-