Package org.openiam.common.beans.sync
Class SynchronisationHelper
- java.lang.Object
-
- org.openiam.common.beans.sync.SynchronisationHelper
-
@Component public class SynchronisationHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description SynchronisationHelper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createFileWithHeader(String header, String syncName, String rootAuditLogId)
void
generateAndWriteContentToReport(String entityName, String result, Exception e, String syncName, String rootAuditLogId)
String
getFileName(String rootAuditLogId, String syncName)
static <T> List<Part>
getParts(List<T> allObjects, int recordCountInBatch, Function<Part,List<T>> fieldAccessor)
boolean
isWriteToFile(String rootAuditLogId, String syncConfigName)
void
sweep()
void
writeToSyncReport(List<String> records, String fileName)
-
-
-
Method Detail
-
writeToSyncReport
public void writeToSyncReport(List<String> records, String fileName)
- Parameters:
records
- - make sure to pass mutable list to this method
-
createFileWithHeader
public void createFileWithHeader(String header, String syncName, String rootAuditLogId)
-
generateAndWriteContentToReport
public void generateAndWriteContentToReport(String entityName, String result, Exception e, String syncName, String rootAuditLogId)
-
sweep
@Scheduled(fixedDelay=10000L, initialDelay=100L) public void sweep()
-
-