e1eb00fd78
Fixes many data layer issues: 27044, 27045, 24237, 27042, 27043, 27046, 27070, 27072, 27073, 27074 [TFS Changeset #66135]
75 lines
2.0 KiB
C#
75 lines
2.0 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Xml;
|
|
using umbraco.BusinessLogic;
|
|
using umbraco.BusinessLogic.Actions;
|
|
using umbraco.cms.businesslogic.property;
|
|
using umbraco.cms.businesslogic.relation;
|
|
using umbraco.cms.helpers;
|
|
using umbraco.DataLayer;
|
|
using umbraco.IO;
|
|
|
|
namespace umbraco.cms.businesslogic.web
|
|
{
|
|
/// <summary>
|
|
/// A lightweight datastructure used to represent a version of a document
|
|
/// </summary>
|
|
public class DocumentVersionList
|
|
{
|
|
private Guid _version;
|
|
private DateTime _date;
|
|
private string _text;
|
|
private User _user;
|
|
|
|
/// <summary>
|
|
/// The unique id of the version
|
|
/// </summary>
|
|
public Guid Version
|
|
{
|
|
get { return _version; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// The date of the creation of the version
|
|
/// </summary>
|
|
public DateTime Date
|
|
{
|
|
get { return _date; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// The name of the document in the version
|
|
/// </summary>
|
|
public string Text
|
|
{
|
|
get { return _text; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// The user which created the version
|
|
/// </summary>
|
|
public User User
|
|
{
|
|
get { return _user; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the DocumentVersionList class.
|
|
/// </summary>
|
|
/// <param name="Version">Unique version id</param>
|
|
/// <param name="Date">Version createdate</param>
|
|
/// <param name="Text">Version name</param>
|
|
/// <param name="User">Creator</param>
|
|
public DocumentVersionList(Guid Version, DateTime Date, string Text, User User)
|
|
{
|
|
_version = Version;
|
|
_date = Date;
|
|
_text = Text;
|
|
_user = User;
|
|
}
|
|
}
|
|
}
|