Started creating a MacroRepository + tests and pretty much have it working for basic data but realized Morten has already done this before so will commit this work and see what I can find from the previous code.
This commit is contained in:
@@ -6,6 +6,100 @@ using Umbraco.Core.Sync;
|
||||
|
||||
namespace Umbraco.Core.Models
|
||||
{
|
||||
internal class Macro : Entity, IAggregateRoot
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates an item with pre-filled properties
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="useInEditor"></param>
|
||||
/// <param name="refreshRate"></param>
|
||||
/// <param name="alias"></param>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="controlType"></param>
|
||||
/// <param name="controlAssembly"></param>
|
||||
/// <param name="xsltPath"></param>
|
||||
/// <param name="cacheByPage"></param>
|
||||
/// <param name="cachePersonalized"></param>
|
||||
/// <param name="dontRender"></param>
|
||||
/// <param name="scriptPath"></param>
|
||||
public Macro(int id, bool useInEditor, int refreshRate, string @alias, string name, string controlType, string controlAssembly, string xsltPath, bool cacheByPage, bool cachePersonalized, bool dontRender, string scriptPath)
|
||||
{
|
||||
Id = id;
|
||||
UseInEditor = useInEditor;
|
||||
RefreshRate = refreshRate;
|
||||
Alias = alias;
|
||||
Name = name;
|
||||
ControlType = controlType;
|
||||
ControlAssembly = controlAssembly;
|
||||
XsltPath = xsltPath;
|
||||
CacheByPage = cacheByPage;
|
||||
CachePersonalized = cachePersonalized;
|
||||
DontRender = dontRender;
|
||||
ScriptPath = scriptPath;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates an instance for persisting a new item
|
||||
/// </summary>
|
||||
/// <param name="useInEditor"></param>
|
||||
/// <param name="refreshRate"></param>
|
||||
/// <param name="alias"></param>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="controlType"></param>
|
||||
/// <param name="controlAssembly"></param>
|
||||
/// <param name="xsltPath"></param>
|
||||
/// <param name="cacheByPage"></param>
|
||||
/// <param name="cachePersonalized"></param>
|
||||
/// <param name="dontRender"></param>
|
||||
/// <param name="scriptPath"></param>
|
||||
public Macro(string @alias, string name,
|
||||
string controlType = "",
|
||||
string controlAssembly = "",
|
||||
string xsltPath = "",
|
||||
string scriptPath = "",
|
||||
bool cacheByPage = false,
|
||||
bool cachePersonalized = false,
|
||||
bool dontRender = true,
|
||||
bool useInEditor = false,
|
||||
int refreshRate = 0)
|
||||
{
|
||||
UseInEditor = useInEditor;
|
||||
RefreshRate = refreshRate;
|
||||
Alias = alias;
|
||||
Name = name;
|
||||
ControlType = controlType;
|
||||
ControlAssembly = controlAssembly;
|
||||
XsltPath = xsltPath;
|
||||
CacheByPage = cacheByPage;
|
||||
CachePersonalized = cachePersonalized;
|
||||
DontRender = dontRender;
|
||||
ScriptPath = scriptPath;
|
||||
}
|
||||
|
||||
public bool UseInEditor { get; set; }
|
||||
|
||||
public int RefreshRate { get; set; }
|
||||
|
||||
public string Alias { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string ControlType { get; set; }
|
||||
|
||||
public string ControlAssembly { get; set; }
|
||||
|
||||
public string XsltPath { get; set; }
|
||||
|
||||
public bool CacheByPage { get; set; }
|
||||
|
||||
public bool CachePersonalized { get; set; }
|
||||
|
||||
public bool DontRender { get; set; }
|
||||
|
||||
public string ScriptPath { get; set; }
|
||||
}
|
||||
|
||||
internal class ServerRegistration : Entity, IServerAddress, IAggregateRoot
|
||||
{
|
||||
private string _serverAddress;
|
||||
|
||||
Reference in New Issue
Block a user