Class DefaultJournalService
-
- All Implemented Interfaces:
-
pro.fessional.wings.faceless.service.journal.JournalService
public class DefaultJournalService implements JournalService
- Since:
2019-09-11
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringSEQ_JOURNAL
-
Constructor Summary
Constructors Constructor Description DefaultJournalService(LightIdService lightIdService, BlockIdProvider blockIdProvider, CommitJournalModify journalModify)
-
Method Summary
Modifier and Type Method Description <R> Rsubmit(@NotNull() String eventName, @Nullable() String loginInfo, @Nullable() String targetKey, @Nullable() String otherInfo, @NotNull() Function<JournalService.Journal, R> commitSet)Submit the operation (event) with journal and return some result -
Methods inherited from class pro.fessional.wings.faceless.service.journal.JournalService
commit, commit, commit, commit, commit, commit, commit, commit, commit, submit, submit, submit, submit, submit, submit, submit, submit -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
DefaultJournalService
DefaultJournalService(LightIdService lightIdService, BlockIdProvider blockIdProvider, CommitJournalModify journalModify)
-
-
Method Detail
-
submit
@NotNull()@Transactional(propagation = Propagation.REQUIRES_NEW) <R> R submit(@NotNull() String eventName, @Nullable() String loginInfo, @Nullable() String targetKey, @Nullable() String otherInfo, @NotNull() Function<JournalService.Journal, R> commitSet)
Submit the operation (event) with journal and return some result
- Parameters:
eventName- event nameloginInfo- login info ,eg.targetKey- key/id of targetotherInfo- other info of operationcommitSet- operations- Returns:
the result
-
-
-
-