use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class OrganisationUnitLevelSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(OrganisationUnitLevel.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1110);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_ORGANISATIONUNITLEVEL_UPDATE")));
schema.getAuthorities().add(new Authority(AuthorityType.UPDATE, Lists.newArrayList("F_ORGANISATIONUNITLEVEL_UPDATE")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_ORGANISATIONUNITLEVEL_UPDATE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class OrganisationUnitSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(OrganisationUnit.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1100);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_ORGANISATIONUNIT_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_ORGANISATIONUNIT_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class PredictorSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(Predictor.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(2001);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_PREDICTOR_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_PREDICTOR_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class DataElementGroupSetSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(DataElementGroupSet.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1220);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PUBLIC, Lists.newArrayList("F_DATAELEMENTGROUPSET_PUBLIC_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PRIVATE, Lists.newArrayList("F_DATAELEMENTGROUPSET_PRIVATE_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_DATAELEMENTGROUPSET_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class CategorySchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(DataElementCategory.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1170);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PUBLIC, Lists.newArrayList("F_CATEGORY_PUBLIC_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PRIVATE, Lists.newArrayList("F_CATEGORY_PRIVATE_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_CATEGORY_DELETE")));
return schema;
}
Aggregations