Files
raven/server/AyaNova/DataList/IAyaDataList.cs
2020-01-21 23:18:29 +00:00

31 lines
1013 B
C#

using System.Collections.Generic;
using AyaNova.Biz;
namespace AyaNova.DataList
{
internal interface IAyaDataList
{
//Unique key to identify this list
string ListKey { get; set; }
//sql query from fragment with table joins et
string SQLFrom { get; set; }
//List of fields for this object
List<AyaDataListFieldDefinition> FieldDefinitions { get; set; }
//allowed roles to access this list
AuthorizationRoles AllowedRoles { get; set; }
//Default object type to open for rows of this list (use no object if no)
AyaType DefaultListObjectType { get; set; }
//Default list display template if none found in db or is invalid, this ensures the data will flow even if people fuck up the templates somehow
string DefaultDataListDisplayTemplate { get; set; }
string GenerateMINIListColumnsJSON();
string GenerateListColumnsJSONFromTemplate(string template);
}
}