-
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.
feat: add parentAnchor and parentAnchorList filter.
- Loading branch information
1 parent
864ce68
commit d2392ac
Showing
6 changed files
with
80 additions
and
18 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
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
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
19 changes: 19 additions & 0 deletions
19
src/main/java/com/sitepark/ies/contentrepository/core/domain/entity/filter/ParentAnchor.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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.sitepark.ies.contentrepository.core.domain.entity.filter; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
public class ParentAnchor implements Filter { | ||
|
||
@SuppressWarnings("PMD.AvoidFieldNameMatchingTypeName") // so that when deserializing it has the desired format | ||
private final com.sitepark.ies.contentrepository.core.domain.entity.Anchor parentAnchor; | ||
|
||
protected ParentAnchor(@JsonProperty("parentAnchor") | ||
com.sitepark.ies.contentrepository.core.domain.entity.Anchor parentAnchor) { | ||
assert parentAnchor != null : "parentAnchor is null"; | ||
this.parentAnchor = parentAnchor; | ||
} | ||
|
||
public com.sitepark.ies.contentrepository.core.domain.entity.Anchor getParentAnchor() { | ||
return this.parentAnchor; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...n/java/com/sitepark/ies/contentrepository/core/domain/entity/filter/ParentAnchorList.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.sitepark.ies.contentrepository.core.domain.entity.filter; | ||
|
||
import java.util.List; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | ||
|
||
public class ParentAnchorList implements Filter { | ||
|
||
@SuppressWarnings("PMD.AvoidFieldNameMatchingTypeName") // so that when deserializing it has the desired format | ||
|
||
private final List<com.sitepark.ies.contentrepository.core.domain.entity.Anchor> parentAnchorList; | ||
|
||
protected ParentAnchorList(@JsonProperty("parentAnchorList") | ||
com.sitepark.ies.contentrepository.core.domain.entity.Anchor... parentAnchorList) { | ||
assert parentAnchorList != null : "parentAnchorList is null"; | ||
this.parentAnchorList = List.of(parentAnchorList); | ||
} | ||
|
||
@SuppressFBWarnings("EI_EXPOSE_REP") | ||
public List<com.sitepark.ies.contentrepository.core.domain.entity.Anchor> getParentAnchorList() { | ||
return this.parentAnchorList; | ||
} | ||
} |
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