-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: finalize 3.4.0
- Loading branch information
Showing
200 changed files
with
2,056 additions
and
2,650 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
5 changes: 1 addition & 4 deletions
5
...a/be/vlaanderen/informatievlaanderen/ldes/server/fragmentation/FragmentationStrategy.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,12 +1,9 @@ | ||
package be.vlaanderen.informatievlaanderen.ldes.server.fragmentation; | ||
|
||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.Bucket; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.BucketisedMember; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.FragmentationMember; | ||
import io.micrometer.observation.Observation; | ||
|
||
import java.util.List; | ||
|
||
public interface FragmentationStrategy { | ||
List<BucketisedMember> addMemberToBucket(Bucket rootFragmentOfView, FragmentationMember member, Observation parentObservation); | ||
void addMemberToBucket(Bucket rootBucketOfView, FragmentationMember member, Observation parentObservation); | ||
} |
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
22 changes: 3 additions & 19 deletions
22
...nderen/informatievlaanderen/ldes/server/fragmentation/FragmentationStrategyDecorator.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,35 +1,19 @@ | ||
package be.vlaanderen.informatievlaanderen.ldes.server.fragmentation; | ||
|
||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.Bucket; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.BucketisedMember; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.FragmentationMember; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.valueobjects.BucketRelation; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.valueobjects.BucketRelationCreatedEvent; | ||
import io.micrometer.observation.Observation; | ||
import org.springframework.context.ApplicationEventPublisher; | ||
|
||
import java.util.List; | ||
|
||
public abstract class FragmentationStrategyDecorator implements FragmentationStrategy { | ||
|
||
private final FragmentationStrategy fragmentationStrategy; | ||
|
||
private final ApplicationEventPublisher applicationEventPublisher; | ||
|
||
protected FragmentationStrategyDecorator(FragmentationStrategy fragmentationStrategy, | ||
ApplicationEventPublisher applicationEventPublisher) { | ||
protected FragmentationStrategyDecorator(FragmentationStrategy fragmentationStrategy) { | ||
this.fragmentationStrategy = fragmentationStrategy; | ||
this.applicationEventPublisher = applicationEventPublisher; | ||
} | ||
|
||
@Override | ||
public List<BucketisedMember> addMemberToBucket(Bucket rootFragmentOfView, FragmentationMember member, Observation parentObservation) { | ||
return fragmentationStrategy.addMemberToBucket(rootFragmentOfView, member, parentObservation); | ||
} | ||
|
||
protected void addRelationFromParentToChild(Bucket parentBucket, Bucket childBucket) { | ||
BucketRelation bucketRelation = BucketRelation.createGenericRelation(parentBucket, childBucket); | ||
applicationEventPublisher.publishEvent(new BucketRelationCreatedEvent(bucketRelation)); | ||
public void addMemberToBucket(Bucket parentBucket, FragmentationMember member, Observation parentObservation) { | ||
fragmentationStrategy.addMemberToBucket(parentBucket, member, parentObservation); | ||
} | ||
|
||
} |
7 changes: 2 additions & 5 deletions
7
.../vlaanderen/informatievlaanderen/ldes/server/fragmentation/FragmentationStrategyImpl.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,15 +1,12 @@ | ||
package be.vlaanderen.informatievlaanderen.ldes.server.fragmentation; | ||
|
||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.Bucket; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.BucketisedMember; | ||
import be.vlaanderen.informatievlaanderen.ldes.server.fragmentation.entities.FragmentationMember; | ||
import io.micrometer.observation.Observation; | ||
|
||
import java.util.List; | ||
|
||
public class FragmentationStrategyImpl implements FragmentationStrategy { | ||
@Override | ||
public List<BucketisedMember> addMemberToBucket(Bucket bucket, FragmentationMember member, Observation parentObservation) { | ||
return List.of(new BucketisedMember(bucket.getBucketId(), member.getMemberId())); | ||
public void addMemberToBucket(Bucket rootBucketOfView, FragmentationMember member, Observation parentObservation) { | ||
rootBucketOfView.assignMember(member.getMemberId()); | ||
} | ||
} |
36 changes: 0 additions & 36 deletions
36
...ava/be/vlaanderen/informatievlaanderen/ldes/server/fragmentation/RootBucketRetriever.java
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.