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 voidcreateFileWithHeader(String header, String syncName, String rootAuditLogId)voidgenerateAndWriteContentToReport(String entityName, String result, Exception e, String syncName, String rootAuditLogId)StringgetFileName(String rootAuditLogId, String syncName)static <T> List<Part>getParts(List<T> allObjects, int recordCountInBatch, Function<Part,List<T>> fieldAccessor)booleanisWriteToFile(String rootAuditLogId, String syncConfigName)voidsweep()voidwriteToSyncReport(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()
-
-