Commit 09ae0948 authored by Nikita Ruzhevsky's avatar Nikita Ruzhevsky
Browse files

added comment with notice

parent df255c6a
Pipeline #62925 failed with stages
in 1 minute and 16 seconds
......@@ -5,6 +5,7 @@ import org.opengroup.osdu.core.mongodb.entitlements.converter.NodeConverter;
import org.opengroup.osdu.core.mongodb.entitlements.converter.NodeDocToEntityNodeConverter;
import org.opengroup.osdu.core.mongodb.entitlements.converter.NodeDocToParentRefConverter;
import org.opengroup.osdu.core.mongodb.entitlements.helper.EntitlementsNodeHelper;
import org.opengroup.osdu.core.mongodb.entitlements.helper.NextGenNodeHelper;
import org.opengroup.osdu.core.mongodb.entitlements.repo.AddMemberHelper;
import org.opengroup.osdu.core.mongodb.entitlements.repo.CreateGroupHelper;
import org.opengroup.osdu.core.mongodb.entitlements.repo.DeleteGroupHelper;
......@@ -33,6 +34,12 @@ public class EntitlementsContext {
return new EntitlementsNodeHelper(mongoDBHelper, conversionService, nodeConverter);
}
@Autowired
@Bean
public NextGenNodeHelper nextGenNodeHelper(BasicMongoDBHelper mongoDBHelper, NodeConverter nodeConverter) {
return new NextGenNodeHelper(mongoDBHelper, nodeConverter);
}
// region repository implementations
@Bean
public AddMemberHelper addMemberRepo() {
......
......@@ -59,6 +59,10 @@ public abstract class RepoImplTestParent {
* User 4 is MEMBER of group 3
*/
protected void initDefaultDataSet() {
// WARNING: to make a demo structure this structure have been modified
// see commented code below
NodeDoc rootGroup = Generator.groupDoc(String.format(GROUP_TEMPLATE, "root"), TENANT);
NodeDoc superGroup1 = Generator.groupDoc(String.format(GROUP_TEMPLATE, "super-1"), TENANT);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment