use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class DocumentSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(Document.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(2000);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PUBLIC, Lists.newArrayList("F_DOCUMENT_PUBLIC_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PRIVATE, Lists.newArrayList("F_DOCUMENT_PRIVATE_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.EXTERNALIZE, Lists.newArrayList("F_DOCUMENT_EXTERNAL")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_DOCUMENT_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class IndicatorSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(Indicator.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1250);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PUBLIC, Lists.newArrayList("F_INDICATOR_PUBLIC_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PRIVATE, Lists.newArrayList("F_INDICATOR_PRIVATE_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_INDICATOR_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class IndicatorTypeSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(IndicatorType.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1240);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_INDICATORTYPE_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_INDICATORTYPE_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class InterpretationSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(Interpretation.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class ColorSetSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(ColorSet.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1080);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_COLOR_SET_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_COLOR_SET_DELETE")));
return schema;
}
Aggregations