Skip to content

Commit

Permalink
#588 add jsonignore in event descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Mar 25, 2019
1 parent dd3529e commit 6ea46c0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/alfio/controller/decorator/EventDescriptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

public class EventDescriptor {

@Delegate
@Delegate(excludes = ExcludeDelegate.class)
private final Event event;
private final String eventDescription;

Expand All @@ -49,4 +49,13 @@ public boolean getVatIncluded() {
public Event getEvent() {
return event;
}

@JsonIgnore
public String getPrivateKey() {
return event.getPrivateKey();
}

public interface ExcludeDelegate {
String getPrivateKey();
}
}

0 comments on commit 6ea46c0

Please sign in to comment.