use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class ConstantSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(Constant.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(1030);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_CONSTANT_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_CONSTANT_DELETE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class DashboardItemSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(DashboardItem.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.setOrder(3500);
schema.setDefaultPrivate(true);
schema.setImplicitPrivateAuthority(true);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PUBLIC, Lists.newArrayList("F_DASHBOARD_PUBLIC_ADD")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class MessageConversationSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(MessageConversation.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class MetadataVersionSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(MetadataVersion.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE_PUBLIC, Lists.newArrayList("ALL", "F_METADATA_MANAGE")));
return schema;
}
use of org.hisp.dhis.schema.Schema in project dhis2-core by dhis2.
the class MinMaxDataElementSchemaDescriptor method getSchema.
@Override
public Schema getSchema() {
Schema schema = new Schema(MinMaxDataElement.class, SINGULAR, PLURAL);
schema.setRelativeApiEndpoint(API_ENDPOINT);
schema.getAuthorities().add(new Authority(AuthorityType.CREATE, Lists.newArrayList("F_MINMAX_DATAELEMENT_ADD")));
schema.getAuthorities().add(new Authority(AuthorityType.DELETE, Lists.newArrayList("F_MINMAX_DATAELEMENT_DELETE")));
return schema;
}
Aggregations