-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from syspro86/dev
- Loading branch information
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 19 additions & 3 deletions
22
src/main/java/net/zsoo/mythic/mythicweb/crawler/RecordSaveEvent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,27 @@ | ||
package net.zsoo.mythic.mythicweb.crawler; | ||
|
||
import lombok.AllArgsConstructor; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
import net.zsoo.mythic.mythicweb.dto.MythicRecord; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@RequiredArgsConstructor | ||
public class RecordSaveEvent { | ||
MythicRecord record; | ||
private final MythicRecord record; | ||
|
||
boolean update; | ||
Map<String, String> updatedProperties; | ||
|
||
public RecordSaveEvent updated(Map<String, String> updatedProperties) { | ||
if (updatedProperties == null) { | ||
return this; | ||
} | ||
update = true; | ||
this.updatedProperties = new HashMap<>(updatedProperties); | ||
return this; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters