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 AttributeMapRepository
attributeMapDAO
protected ScriptIntegration
scriptRunner
-
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:
getCSVConfigById
in interfaceIdentitySynchService
-
getSyncReportByName
public StringResponse getSyncReportByName(String id, String fname)
- Specified by:
getSyncReportByName
in interfaceIdentitySynchService
-
previewCSV
@Transactional(readOnly=true) public CSVConfigResponse previewCSV(String id)
- Specified by:
previewCSV
in interfaceIdentitySynchService
-
getOldCSV
public List<CSVConfigEntity> getOldCSV(Date from)
- Specified by:
getOldCSV
in interfaceIdentitySynchService
-
getAllConfig
@Transactional(readOnly=true) public SynchConfigListResponse getAllConfig()
- Specified by:
getAllConfig
in interfaceIdentitySynchService
-
getAllCSVConfig
@Transactional(readOnly=true) public CSVConfigListResponse getAllCSVConfig()
- Specified by:
getAllCSVConfig
in interfaceIdentitySynchService
-
getAllCSVConfigNames
@Transactional(readOnly=true) public CSVConfigListResponse getAllCSVConfigNames()
- Specified by:
getAllCSVConfigNames
in interfaceIdentitySynchService
-
addCSVConfig
@Transactional public CSVConfigResponse addCSVConfig(CSVConfig synchConfig)
- Specified by:
addCSVConfig
in interfaceIdentitySynchService
-
mergeConfig
@Transactional @CacheKeyEviction(evictions=@CacheKeyEvict("decryptSysConfigPassword")) public SynchConfigResponse mergeConfig(SynchConfig synchConfig) throws BasicDataServiceException
- Specified by:
mergeConfig
in interfaceIdentitySynchService
- Throws:
BasicDataServiceException
-
getDecryptedPassword
@Cacheable(value="decryptSysConfigPassword", key="{#synchConfigId}") public PasswordKeyDTO getDecryptedPassword(String synchConfigId, String password) throws BasicDataServiceException
- Specified by:
getDecryptedPassword
in interfaceIdentitySynchService
- Throws:
BasicDataServiceException
-
updateProcessingTime
@Transactional public void updateProcessingTime(String id, Timestamp time, String generalizedDate)
- Specified by:
updateProcessingTime
in interfaceIdentitySynchService
-
removeCSVConfig
@Transactional public Response removeCSVConfig(String configId)
- Specified by:
removeCSVConfig
in interfaceIdentitySynchService
-
removeConfig
@Transactional public void removeConfig(String configId)
- Specified by:
removeConfig
in interfaceIdentitySynchService
-
count
@Transactional(readOnly=true) public int count(SynchConfigSearchBean example)
- Specified by:
count
in interfaceIdentitySynchService
-
getSynchConfigs
@Transactional(readOnly=true) public List<SynchConfig> getSynchConfigs(SynchConfigSearchBean searchBean, int from, int size)
- Specified by:
getSynchConfigs
in 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:
findSynchConfigAttributeMaps
in interfaceIdentitySynchService
-
getSynchConfigAttributeMapsDTO
@Transactional(readOnly=true) public List<AttributeMap> getSynchConfigAttributeMapsDTO(String synchConfigId)
- Specified by:
getSynchConfigAttributeMapsDTO
in interfaceIdentitySynchService
-
findDTOById
@Transactional(readOnly=true) public SynchConfigResponse findDTOById(String id)
- Specified by:
findDTOById
in interfaceIdentitySynchService
-
addConfig
@Transactional public SynchConfigResponse addConfig(SynchConfig synchConfig) throws BasicDataServiceException
- Specified by:
addConfig
in interfaceIdentitySynchService
- Throws:
BasicDataServiceException
-
importAttrMapFromCSV
public ImportSyncResponse importAttrMapFromCSV(String syncId)
- Specified by:
importAttrMapFromCSV
in interfaceIdentitySynchService
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
-
-