Search in sources :

Example 11 with EventChart

use of org.hisp.dhis.eventchart.EventChart in project dhis2-core by dhis2.

the class AclServiceTest method testCanUpdatePrivateEventChart.

@Test
public void testCanUpdatePrivateEventChart() {
    User user = createAdminUser("F_DATAELEMENT_PRIVATE_ADD");
    EventChart eventChart = new EventChart();
    eventChart.setAutoFields();
    eventChart.setUser(user);
    eventChart.setPublicAccess(AccessStringHelper.DEFAULT);
    assertTrue(aclService.canUpdate(user, eventChart));
}
Also used : User(org.hisp.dhis.user.User) EventChart(org.hisp.dhis.eventchart.EventChart) Test(org.junit.Test) DhisSpringTest(org.hisp.dhis.DhisSpringTest)

Aggregations

EventChart (org.hisp.dhis.eventchart.EventChart)11 Test (org.junit.Test)6 DhisSpringTest (org.hisp.dhis.DhisSpringTest)5 TrackedEntityAttributeDimension (org.hisp.dhis.trackedentity.TrackedEntityAttributeDimension)5 EventQueryParams (org.hisp.dhis.analytics.event.EventQueryParams)3 DimensionalItemObject (org.hisp.dhis.common.DimensionalItemObject)2 DimensionalObject (org.hisp.dhis.common.DimensionalObject)2 CategoryOptionGroup (org.hisp.dhis.dataelement.CategoryOptionGroup)2 CategoryOptionGroupSet (org.hisp.dhis.dataelement.CategoryOptionGroupSet)2 DataElementGroupSet (org.hisp.dhis.dataelement.DataElementGroupSet)2 WebMessageException (org.hisp.dhis.dxf2.webmessage.WebMessageException)2 EventReport (org.hisp.dhis.eventreport.EventReport)2 OrganisationUnit (org.hisp.dhis.organisationunit.OrganisationUnit)2 OrganisationUnitGroupSet (org.hisp.dhis.organisationunit.OrganisationUnitGroupSet)2 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Map (java.util.Map)1 BiConsumer (java.util.function.BiConsumer)1 Log (org.apache.commons.logging.Log)1