use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class ProgramDataElementDimensionItemSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(ProgramDataElementDimensionItem.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class ProgramIndicatorGroupSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(ProgramIndicatorGroup.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1600);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_PROGRAM_INDICATOR_GROUP_PUBLIC_ADD", "F_PROGRAM_INDICATOR_GROUP_PRIVATE_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_PROGRAM_INDICATOR_GROUP_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class ProgramRuleActionSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(ProgramRuleAction.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1610);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_PROGRAM_RULE_MANAGEMENT")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_PROGRAM_RULE_MANAGEMENT")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class TrackedEntityInstanceSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(TrackedEntityInstance.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class UserGroupSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(UserGroup.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(102);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PUBLIC, Lists.newArrayList("F_USERGROUP_PUBLIC_ADD")));
return schema;
}
Aggregations