Search in sources :

Example 1 with Builder

use of uk.gov.gchq.gaffer.user.User.Builder in project Gaffer by gchq.

the class UpdateViewHookTest method setUp.

@BeforeEach
public void setUp() throws Exception {
    userAuths.clear();
    validAuths.clear();
    updateViewHook = new UpdateViewHook();
    viewToMerge = new View.Builder().entity("white1", new ViewElementDefinition.Builder().preAggregationFilter(new ElementFilter.Builder().select("prop1").execute(new IsIn("value1", "value2")).build()).build()).edge("testGroup", new ViewElementDefinition.Builder().preAggregationFilter(new ElementFilter.Builder().select("count").execute(new IsMoreThan(10)).build()).build()).build();
    userOpAuths.clear();
    userDataAuths.clear();
    opAuths.clear();
    dataAuths.clear();
    userBuilder = new Builder();
}
Also used : Builder(uk.gov.gchq.gaffer.user.User.Builder) ElementFilter(uk.gov.gchq.gaffer.data.element.function.ElementFilter) ViewElementDefinition(uk.gov.gchq.gaffer.data.elementdefinition.view.ViewElementDefinition) IsMoreThan(uk.gov.gchq.koryphe.impl.predicate.IsMoreThan) IsIn(uk.gov.gchq.koryphe.impl.predicate.IsIn) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

BeforeEach (org.junit.jupiter.api.BeforeEach)1 ElementFilter (uk.gov.gchq.gaffer.data.element.function.ElementFilter)1 ViewElementDefinition (uk.gov.gchq.gaffer.data.elementdefinition.view.ViewElementDefinition)1 Builder (uk.gov.gchq.gaffer.user.User.Builder)1 IsIn (uk.gov.gchq.koryphe.impl.predicate.IsIn)1 IsMoreThan (uk.gov.gchq.koryphe.impl.predicate.IsMoreThan)1