Skip to content

Instantly share code, notes, and snippets.

@herskinduk
Created June 25, 2014 09:49
Show Gist options
  • Save herskinduk/9fccda05e93a8a9eca22 to your computer and use it in GitHub Desktop.
Save herskinduk/9fccda05e93a8a9eca22 to your computer and use it in GitHub Desktop.
////////////////////////////////////
// //
// AUTO GENERATED. DO NOT EDIT. //
// //
////////////////////////////////////
using System.Collections;
using System.Collections.Generic;
using System.Linq;
namespace Sitecore.Abstraction
{
public interface IAutoWrappedObject
{
object InnerWrappedObject { get; set; }
}
}
namespace Sitecore.Data.Items
{
public interface IItem : Sitecore.Abstraction.IAutoWrappedObject
{
// Instance Properties
Sitecore.Security.AccessControl.ItemAccess Access { get; }
Sitecore.Data.Items.ItemAppearance Appearance { get; }
Sitecore.Data.Items.ItemAxes Axes { get; }
Sitecore.Data.Items.BranchItem Branch { get; }
Sitecore.Data.ID BranchId { get; set; }
Sitecore.Data.Items.BranchItem[] Branches { get; }
IEnumerable<Sitecore.Data.Items.IItem> Children { get; }
Sitecore.Data.IDatabase Database { get; }
string DisplayName { get; }
Sitecore.Data.Items.ItemEditing Editing { get; }
bool Empty { get; }
IEnumerable<Sitecore.Data.Fields.IField> Fields { get; }
bool HasChildren { get; }
bool HasClones { get; }
Sitecore.Data.Items.ItemHelp Help { get; }
Sitecore.Data.ID ID { get; }
Sitecore.Data.ItemData InnerData { get; }
bool IsClone { get; }
bool IsEditing { get; }
string Key { get; }
Sitecore.Globalization.Language Language { get; }
Sitecore.Globalization.Language[] Languages { get; }
Sitecore.Links.ItemLinks Links { get; }
Sitecore.Data.Locking.ItemLocking Locking { get; }
Sitecore.Data.Items.BranchItem Master { get; }
Sitecore.Data.ID MasterID { get; set; }
Sitecore.Data.Items.BranchItem[] Masters { get; }
bool Modified { get; }
string Name { get; set; }
Sitecore.Data.ID OriginatorId { get; }
Sitecore.Data.Items.IItem Parent { get; }
Sitecore.Data.ID ParentID { get; }
Sitecore.Data.ItemPath Paths { get; }
Sitecore.Data.Items.ItemPublishing Publishing { get; }
Sitecore.Data.Items.ItemRuntimeSettings RuntimeSettings { get; }
Sitecore.Security.AccessControl.ItemSecurity Security { get; set; }
Sitecore.Data.Items.IItem Source { get; }
Sitecore.Data.ItemUri SourceUri { get; }
Sitecore.Data.Items.ItemState State { get; }
Sitecore.Data.Items.ItemStatistics Statistics { get; }
object SyncRoot { get; }
Sitecore.Data.Items.TemplateItem Template { get; }
Sitecore.Data.ID TemplateID { get; set; }
string TemplateName { get; }
Sitecore.Data.ItemUri Uri { get; }
Sitecore.Data.Version Version { get; }
Sitecore.Data.Items.ItemVersions Versions { get; }
Sitecore.Data.Items.ItemVisualization Visualization { get; }
bool IsItemClone { get; }
Sitecore.Data.Items.IItem SharedFieldsSource { get; }
// Instance Methods
void Reload();
string GetUniqueId();
Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.Items.BranchItem branch);
Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.BranchId branchId);
Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.Items.TemplateItem template);
Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.TemplateID templateID);
void BeginEdit();
void ChangeTemplate(Sitecore.Data.Items.TemplateItem template);
Sitecore.Data.Items.IItem Clone(Sitecore.Data.Items.IItem item);
Sitecore.Data.Items.IItem Clone(Sitecore.Data.ID cloneID, Sitecore.Data.IDatabase ownerDatabase);
Sitecore.Data.Items.IItem CloneTo(Sitecore.Data.Items.IItem destination);
Sitecore.Data.Items.IItem CloneTo(Sitecore.Data.Items.IItem destination, bool deep);
Sitecore.Data.Items.IItem CloneTo(Sitecore.Data.Items.IItem destination, string name, bool deep);
Sitecore.Data.Items.IItem CopyTo(Sitecore.Data.Items.IItem destination, string copyName);
Sitecore.Data.Items.IItem CopyTo(Sitecore.Data.Items.IItem destination, string copyName, Sitecore.Data.ID copyID, bool deep);
void Delete();
int DeleteChildren();
Sitecore.Data.Items.IItem Duplicate();
Sitecore.Data.Items.IItem Duplicate(string copyName);
bool EndEdit();
IEnumerable<Sitecore.Data.Items.IItem> GetChildren();
IEnumerable<Sitecore.Data.Items.IItem> GetChildren(Sitecore.Collections.ChildListOptions options);
IEnumerable<Sitecore.Data.Items.IItem> GetClones();
IEnumerable<Sitecore.Data.Items.IItem> GetClones(bool processChildren);
string GetOuterXml(bool includeSubitems);
void MoveTo(Sitecore.Data.Items.IItem destination);
void Paste(string xml, bool changeIDs, Sitecore.Data.Items.PasteMode mode);
Sitecore.Data.Items.IItem PasteItem(string xml, bool changeIDs, Sitecore.Data.Items.PasteMode mode);
System.Guid Recycle();
int RecycleChildren();
System.Guid RecycleVersion();
}
public class ItemWrapper : IItem
{
private Sitecore.Data.Items.Item _innerObject;
public ItemWrapper(Sitecore.Data.Items.Item innerObject)
{
_innerObject = innerObject;
}
public object InnerWrappedObject
{
get { return _innerObject; }
set { _innerObject = (Sitecore.Data.Items.Item)value; }
}
// Static Properties
public Sitecore.Security.AccessControl.ItemAccess Access{
get { return _innerObject.Access; }
}
public Sitecore.Data.Items.ItemAppearance Appearance{
get { return _innerObject.Appearance; }
}
public Sitecore.Data.Items.ItemAxes Axes{
get { return _innerObject.Axes; }
}
public Sitecore.Data.Items.BranchItem Branch{
get { return _innerObject.Branch; }
}
public Sitecore.Data.ID BranchId{
get { return _innerObject.BranchId; }
set { _innerObject.BranchId = value; }
}
public Sitecore.Data.Items.BranchItem[] Branches{
get { return _innerObject.Branches; }
}
public IEnumerable<Sitecore.Data.Items.IItem> Children{
get { return _innerObject.Children.Select(x => new Sitecore.Data.Items.ItemWrapper(x)).AsEnumerable(); }
}
public Sitecore.Data.IDatabase Database{
get { return new Sitecore.Data.DatabaseWrapper(_innerObject.Database); }
}
public string DisplayName{
get { return _innerObject.DisplayName; }
}
public Sitecore.Data.Items.ItemEditing Editing{
get { return _innerObject.Editing; }
}
public bool Empty{
get { return _innerObject.Empty; }
}
public IEnumerable<Sitecore.Data.Fields.IField> Fields{
get { return _innerObject.Fields.Select(x => new Sitecore.Data.Fields.FieldWrapper(x)).AsEnumerable(); }
}
public bool HasChildren{
get { return _innerObject.HasChildren; }
}
public bool HasClones{
get { return _innerObject.HasClones; }
}
public Sitecore.Data.Items.ItemHelp Help{
get { return _innerObject.Help; }
}
public Sitecore.Data.ID ID{
get { return _innerObject.ID; }
}
public Sitecore.Data.ItemData InnerData{
get { return _innerObject.InnerData; }
}
public bool IsClone{
get { return _innerObject.IsClone; }
}
public bool IsEditing{
get { return _innerObject.IsEditing; }
}
public string Key{
get { return _innerObject.Key; }
}
public Sitecore.Globalization.Language Language{
get { return _innerObject.Language; }
}
public Sitecore.Globalization.Language[] Languages{
get { return _innerObject.Languages; }
}
public Sitecore.Links.ItemLinks Links{
get { return _innerObject.Links; }
}
public Sitecore.Data.Locking.ItemLocking Locking{
get { return _innerObject.Locking; }
}
public Sitecore.Data.Items.BranchItem Master{
get { return _innerObject.Master; }
}
public Sitecore.Data.ID MasterID{
get { return _innerObject.MasterID; }
set { _innerObject.MasterID = value; }
}
public Sitecore.Data.Items.BranchItem[] Masters{
get { return _innerObject.Masters; }
}
public bool Modified{
get { return _innerObject.Modified; }
}
public string Name{
get { return _innerObject.Name; }
set { _innerObject.Name = value; }
}
public Sitecore.Data.ID OriginatorId{
get { return _innerObject.OriginatorId; }
}
public Sitecore.Data.Items.IItem Parent{
get { return new Sitecore.Data.Items.ItemWrapper(_innerObject.Parent); }
}
public Sitecore.Data.ID ParentID{
get { return _innerObject.ParentID; }
}
public Sitecore.Data.ItemPath Paths{
get { return _innerObject.Paths; }
}
public Sitecore.Data.Items.ItemPublishing Publishing{
get { return _innerObject.Publishing; }
}
public Sitecore.Data.Items.ItemRuntimeSettings RuntimeSettings{
get { return _innerObject.RuntimeSettings; }
}
public Sitecore.Security.AccessControl.ItemSecurity Security{
get { return _innerObject.Security; }
set { _innerObject.Security = value; }
}
public Sitecore.Data.Items.IItem Source{
get { return new Sitecore.Data.Items.ItemWrapper(_innerObject.Source); }
}
public Sitecore.Data.ItemUri SourceUri{
get { return _innerObject.SourceUri; }
}
public Sitecore.Data.Items.ItemState State{
get { return _innerObject.State; }
}
public Sitecore.Data.Items.ItemStatistics Statistics{
get { return _innerObject.Statistics; }
}
public object SyncRoot{
get { return _innerObject.SyncRoot; }
}
public Sitecore.Data.Items.TemplateItem Template{
get { return _innerObject.Template; }
}
public Sitecore.Data.ID TemplateID{
get { return _innerObject.TemplateID; }
set { _innerObject.TemplateID = value; }
}
public string TemplateName{
get { return _innerObject.TemplateName; }
}
public Sitecore.Data.ItemUri Uri{
get { return _innerObject.Uri; }
}
public Sitecore.Data.Version Version{
get { return _innerObject.Version; }
}
public Sitecore.Data.Items.ItemVersions Versions{
get { return _innerObject.Versions; }
}
public Sitecore.Data.Items.ItemVisualization Visualization{
get { return _innerObject.Visualization; }
}
public bool IsItemClone{
get { return _innerObject.IsItemClone; }
}
public Sitecore.Data.Items.IItem SharedFieldsSource{
get { return new Sitecore.Data.Items.ItemWrapper(_innerObject.SharedFieldsSource); }
}
// Static Methods
public void Reload()
{
_innerObject.Reload();
}
public string GetUniqueId()
{
return _innerObject.GetUniqueId();
}
public Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.Items.BranchItem branch)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Add(name, branch));
}
public Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.BranchId branchId)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Add(name, branchId));
}
public Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.Items.TemplateItem template)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Add(name, template));
}
public Sitecore.Data.Items.IItem Add(string name, Sitecore.Data.TemplateID templateID)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Add(name, templateID));
}
public void BeginEdit()
{
_innerObject.BeginEdit();
}
public void ChangeTemplate(Sitecore.Data.Items.TemplateItem template)
{
_innerObject.ChangeTemplate(template);
}
public Sitecore.Data.Items.IItem Clone(Sitecore.Data.Items.IItem item)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Clone((Sitecore.Data.Items.Item)item.InnerWrappedObject));
}
public Sitecore.Data.Items.IItem Clone(Sitecore.Data.ID cloneID, Sitecore.Data.IDatabase ownerDatabase)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Clone(cloneID, (Sitecore.Data.Database)ownerDatabase.InnerWrappedObject));
}
public Sitecore.Data.Items.IItem CloneTo(Sitecore.Data.Items.IItem destination)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CloneTo((Sitecore.Data.Items.Item)destination.InnerWrappedObject));
}
public Sitecore.Data.Items.IItem CloneTo(Sitecore.Data.Items.IItem destination, bool deep)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CloneTo((Sitecore.Data.Items.Item)destination.InnerWrappedObject, deep));
}
public Sitecore.Data.Items.IItem CloneTo(Sitecore.Data.Items.IItem destination, string name, bool deep)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CloneTo((Sitecore.Data.Items.Item)destination.InnerWrappedObject, name, deep));
}
public Sitecore.Data.Items.IItem CopyTo(Sitecore.Data.Items.IItem destination, string copyName)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CopyTo((Sitecore.Data.Items.Item)destination.InnerWrappedObject, copyName));
}
public Sitecore.Data.Items.IItem CopyTo(Sitecore.Data.Items.IItem destination, string copyName, Sitecore.Data.ID copyID, bool deep)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CopyTo((Sitecore.Data.Items.Item)destination.InnerWrappedObject, copyName, copyID, deep));
}
public void Delete()
{
_innerObject.Delete();
}
public int DeleteChildren()
{
return _innerObject.DeleteChildren();
}
public Sitecore.Data.Items.IItem Duplicate()
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Duplicate());
}
public Sitecore.Data.Items.IItem Duplicate(string copyName)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.Duplicate(copyName));
}
public bool EndEdit()
{
return _innerObject.EndEdit();
}
public IEnumerable<Sitecore.Data.Items.IItem> GetChildren()
{
return _innerObject.GetChildren().Select(x => new Sitecore.Data.Items.ItemWrapper(x)).AsEnumerable();
}
public IEnumerable<Sitecore.Data.Items.IItem> GetChildren(Sitecore.Collections.ChildListOptions options)
{
return _innerObject.GetChildren(options).Select(x => new Sitecore.Data.Items.ItemWrapper(x)).AsEnumerable();
}
public IEnumerable<Sitecore.Data.Items.IItem> GetClones()
{
return _innerObject.GetClones().Select(x => new Sitecore.Data.Items.ItemWrapper(x)).AsEnumerable();
}
public IEnumerable<Sitecore.Data.Items.IItem> GetClones(bool processChildren)
{
return _innerObject.GetClones(processChildren).Select(x => new Sitecore.Data.Items.ItemWrapper(x)).AsEnumerable();
}
public string GetOuterXml(bool includeSubitems)
{
return _innerObject.GetOuterXml(includeSubitems);
}
public void MoveTo(Sitecore.Data.Items.IItem destination)
{
_innerObject.MoveTo((Sitecore.Data.Items.Item)destination.InnerWrappedObject);
}
public void Paste(string xml, bool changeIDs, Sitecore.Data.Items.PasteMode mode)
{
_innerObject.Paste(xml, changeIDs, mode);
}
public Sitecore.Data.Items.IItem PasteItem(string xml, bool changeIDs, Sitecore.Data.Items.PasteMode mode)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.PasteItem(xml, changeIDs, mode));
}
public System.Guid Recycle()
{
return _innerObject.Recycle();
}
public int RecycleChildren()
{
return _innerObject.RecycleChildren();
}
public System.Guid RecycleVersion()
{
return _innerObject.RecycleVersion();
}
}
}
namespace Sitecore.Data
{
public interface IDatabase : Sitecore.Abstraction.IAutoWrappedObject
{
// Instance Properties
Sitecore.Data.AliasResolver Aliases { get; }
System.Collections.Generic.List<string> ArchiveNames { get; }
Sitecore.Data.Archiving.DataArchives Archives { get; }
Sitecore.Data.DatabaseCaches Caches { get; }
string ConnectionStringName { get; set; }
Sitecore.Data.DataManager DataManager { get; }
Sitecore.Data.DatabaseEngines Engines { get; }
bool HasContentItem { get; }
string Icon { get; set; }
Sitecore.Data.Indexing.DataIndexes Indexes { get; }
Sitecore.Data.ItemRecords Items { get; }
Sitecore.Globalization.Language[] Languages { get; }
Sitecore.Data.BranchRecords Branches { get; }
Sitecore.Data.BranchRecords Masters { get; }
string Name { get; }
Sitecore.Data.DatabaseProperties Properties { get; }
bool Protected { get; set; }
bool ProxiesEnabled { get; set; }
Sitecore.Data.Proxies.ProxyDataProvider ProxyDataProvider { get; set; }
bool PublishVirtualItems { get; set; }
bool ReadOnly { get; set; }
Sitecore.Data.Eventing.DatabaseRemoteEvents RemoteEvents { get; }
Sitecore.Resources.ResourceItems Resources { get; }
bool SecurityEnabled { get; set; }
Sitecore.Data.Items.IItem SitecoreItem { get; }
Sitecore.Data.TemplateRecords Templates { get; }
Sitecore.Workflows.IWorkflowProvider WorkflowProvider { get; set; }
Sitecore.Data.Clones.NotificationProvider NotificationProvider { get; set; }
// Instance Methods
bool CleanupDatabase();
Sitecore.Data.Items.IItem CreateItemPath(string path);
Sitecore.Data.Items.IItem CreateItemPath(string path, Sitecore.Data.Items.TemplateItem template);
Sitecore.Data.Items.IItem CreateItemPath(string path, Sitecore.Data.Items.TemplateItem folderTemplate, Sitecore.Data.Items.TemplateItem itemTemplate);
Sitecore.Data.DataProviders.DataProvider[] GetDataProviders();
long GetDataSize(int minEntitySize, int maxEntitySize);
long GetDictionaryEntryCount();
Sitecore.Data.Items.IItem GetItem(Sitecore.Data.ID itemId);
Sitecore.Data.Items.IItem GetItem(Sitecore.Data.ID itemId, Sitecore.Globalization.Language language);
Sitecore.Data.Items.IItem GetItem(Sitecore.Data.ID itemId, Sitecore.Globalization.Language language, Sitecore.Data.Version version);
Sitecore.Data.Items.IItem GetItem(string path);
Sitecore.Data.Items.IItem GetItem(string path, Sitecore.Globalization.Language language);
Sitecore.Data.Items.IItem GetItem(string path, Sitecore.Globalization.Language language, Sitecore.Data.Version version);
Sitecore.Data.Items.IItem GetItem(Sitecore.Data.DataUri uri);
Sitecore.Collections.LanguageCollection GetLanguages();
Sitecore.Data.Items.IItem GetRootItem();
Sitecore.Data.Items.IItem GetRootItem(Sitecore.Globalization.Language language);
Lucene.Net.Search.IndexSearcher GetSearcher(string name);
Sitecore.Data.Items.TemplateItem GetTemplate(Sitecore.Data.ID templateId);
Sitecore.Data.Items.TemplateItem GetTemplate(string fullName);
IEnumerable<Sitecore.Data.Items.IItem> SelectItems(string query);
Sitecore.Collections.ItemList SelectItemsUsingXPath(string query);
Sitecore.Data.Items.IItem SelectSingleItem(string query);
Sitecore.Data.Items.IItem SelectSingleItemUsingXPath(string query);
string ToString();
}
public class DatabaseWrapper : IDatabase
{
private Sitecore.Data.Database _innerObject;
public DatabaseWrapper(Sitecore.Data.Database innerObject)
{
_innerObject = innerObject;
}
public object InnerWrappedObject
{
get { return _innerObject; }
set { _innerObject = (Sitecore.Data.Database)value; }
}
// Static Properties
public Sitecore.Data.AliasResolver Aliases{
get { return _innerObject.Aliases; }
}
public System.Collections.Generic.List<string> ArchiveNames{
get { return _innerObject.ArchiveNames; }
}
public Sitecore.Data.Archiving.DataArchives Archives{
get { return _innerObject.Archives; }
}
public Sitecore.Data.DatabaseCaches Caches{
get { return _innerObject.Caches; }
}
public string ConnectionStringName{
get { return _innerObject.ConnectionStringName; }
set { _innerObject.ConnectionStringName = value; }
}
public Sitecore.Data.DataManager DataManager{
get { return _innerObject.DataManager; }
}
public Sitecore.Data.DatabaseEngines Engines{
get { return _innerObject.Engines; }
}
public bool HasContentItem{
get { return _innerObject.HasContentItem; }
}
public string Icon{
get { return _innerObject.Icon; }
set { _innerObject.Icon = value; }
}
public Sitecore.Data.Indexing.DataIndexes Indexes{
get { return _innerObject.Indexes; }
}
public Sitecore.Data.ItemRecords Items{
get { return _innerObject.Items; }
}
public Sitecore.Globalization.Language[] Languages{
get { return _innerObject.Languages; }
}
public Sitecore.Data.BranchRecords Branches{
get { return _innerObject.Branches; }
}
public Sitecore.Data.BranchRecords Masters{
get { return _innerObject.Masters; }
}
public string Name{
get { return _innerObject.Name; }
}
public Sitecore.Data.DatabaseProperties Properties{
get { return _innerObject.Properties; }
}
public bool Protected{
get { return _innerObject.Protected; }
set { _innerObject.Protected = value; }
}
public bool ProxiesEnabled{
get { return _innerObject.ProxiesEnabled; }
set { _innerObject.ProxiesEnabled = value; }
}
public Sitecore.Data.Proxies.ProxyDataProvider ProxyDataProvider{
get { return _innerObject.ProxyDataProvider; }
set { _innerObject.ProxyDataProvider = value; }
}
public bool PublishVirtualItems{
get { return _innerObject.PublishVirtualItems; }
set { _innerObject.PublishVirtualItems = value; }
}
public bool ReadOnly{
get { return _innerObject.ReadOnly; }
set { _innerObject.ReadOnly = value; }
}
public Sitecore.Data.Eventing.DatabaseRemoteEvents RemoteEvents{
get { return _innerObject.RemoteEvents; }
}
public Sitecore.Resources.ResourceItems Resources{
get { return _innerObject.Resources; }
}
public bool SecurityEnabled{
get { return _innerObject.SecurityEnabled; }
set { _innerObject.SecurityEnabled = value; }
}
public Sitecore.Data.Items.IItem SitecoreItem{
get { return new Sitecore.Data.Items.ItemWrapper(_innerObject.SitecoreItem); }
}
public Sitecore.Data.TemplateRecords Templates{
get { return _innerObject.Templates; }
}
public Sitecore.Workflows.IWorkflowProvider WorkflowProvider{
get { return _innerObject.WorkflowProvider; }
set { _innerObject.WorkflowProvider = value; }
}
public Sitecore.Data.Clones.NotificationProvider NotificationProvider{
get { return _innerObject.NotificationProvider; }
set { _innerObject.NotificationProvider = value; }
}
// Static Methods
public bool CleanupDatabase()
{
return _innerObject.CleanupDatabase();
}
public Sitecore.Data.Items.IItem CreateItemPath(string path)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CreateItemPath(path));
}
public Sitecore.Data.Items.IItem CreateItemPath(string path, Sitecore.Data.Items.TemplateItem template)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CreateItemPath(path, template));
}
public Sitecore.Data.Items.IItem CreateItemPath(string path, Sitecore.Data.Items.TemplateItem folderTemplate, Sitecore.Data.Items.TemplateItem itemTemplate)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.CreateItemPath(path, folderTemplate, itemTemplate));
}
public Sitecore.Data.DataProviders.DataProvider[] GetDataProviders()
{
return _innerObject.GetDataProviders();
}
public long GetDataSize(int minEntitySize, int maxEntitySize)
{
return _innerObject.GetDataSize(minEntitySize, maxEntitySize);
}
public long GetDictionaryEntryCount()
{
return _innerObject.GetDictionaryEntryCount();
}
public Sitecore.Data.Items.IItem GetItem(Sitecore.Data.ID itemId)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetItem(itemId));
}
public Sitecore.Data.Items.IItem GetItem(Sitecore.Data.ID itemId, Sitecore.Globalization.Language language)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetItem(itemId, language));
}
public Sitecore.Data.Items.IItem GetItem(Sitecore.Data.ID itemId, Sitecore.Globalization.Language language, Sitecore.Data.Version version)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetItem(itemId, language, version));
}
public Sitecore.Data.Items.IItem GetItem(string path)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetItem(path));
}
public Sitecore.Data.Items.IItem GetItem(string path, Sitecore.Globalization.Language language)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetItem(path, language));
}
public Sitecore.Data.Items.IItem GetItem(string path, Sitecore.Globalization.Language language, Sitecore.Data.Version version)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetItem(path, language, version));
}
public Sitecore.Data.Items.IItem GetItem(Sitecore.Data.DataUri uri)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetItem(uri));
}
public Sitecore.Collections.LanguageCollection GetLanguages()
{
return _innerObject.GetLanguages();
}
public Sitecore.Data.Items.IItem GetRootItem()
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetRootItem());
}
public Sitecore.Data.Items.IItem GetRootItem(Sitecore.Globalization.Language language)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.GetRootItem(language));
}
public Lucene.Net.Search.IndexSearcher GetSearcher(string name)
{
return _innerObject.GetSearcher(name);
}
public Sitecore.Data.Items.TemplateItem GetTemplate(Sitecore.Data.ID templateId)
{
return _innerObject.GetTemplate(templateId);
}
public Sitecore.Data.Items.TemplateItem GetTemplate(string fullName)
{
return _innerObject.GetTemplate(fullName);
}
public IEnumerable<Sitecore.Data.Items.IItem> SelectItems(string query)
{
return _innerObject.SelectItems(query).Select(x => new Sitecore.Data.Items.ItemWrapper(x)).AsEnumerable();
}
public Sitecore.Collections.ItemList SelectItemsUsingXPath(string query)
{
return _innerObject.SelectItemsUsingXPath(query);
}
public Sitecore.Data.Items.IItem SelectSingleItem(string query)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.SelectSingleItem(query));
}
public Sitecore.Data.Items.IItem SelectSingleItemUsingXPath(string query)
{
return new Sitecore.Data.Items.ItemWrapper (_innerObject.SelectSingleItemUsingXPath(query));
}
public string ToString()
{
return _innerObject.ToString();
}
}
}
namespace Sitecore.Data.Fields
{
public interface IField : Sitecore.Abstraction.IAutoWrappedObject
{
// Instance Properties
bool CanRead { get; }
bool CanWrite { get; }
bool ContainsStandardValue { get; }
bool InheritsValueFromOtherItem { get; }
Sitecore.Data.IDatabase Database { get; }
Sitecore.Data.Templates.TemplateField Definition { get; }
string Description { get; }
string DisplayName { get; }
string SectionDisplayName { get; }
bool HasBlobStream { get; }
bool HasValue { get; }
string HelpLink { get; }
Sitecore.Data.ID ID { get; }
string InheritedValue { get; }
bool IsBlobField { get; }
bool IsModified { get; }
Sitecore.Data.Items.IItem Item { get; }
string Key { get; }
Sitecore.Globalization.Language Language { get; }
string Name { get; }
bool ResetBlank { get; }
string Section { get; }
string SectionNameByUILocale { get; }
int SectionSortorder { get; }
bool Shared { get; }
bool ShouldBeTranslated { get; }
int Sortorder { get; }
string Source { get; }
string Style { get; }
string Title { get; }
string ToolTip { get; }
bool Translatable { get; }
string Type { get; }
string TypeKey { get; }
bool Unversioned { get; }
string Validation { get; }
string ValidationText { get; }
string Value { get; set; }
// Instance Methods
System.IO.Stream GetBlobStream();
string GetStandardValue();
string GetInheritedValue();
string GetValue(bool allowStandardValue);
string GetValue(bool allowStandardValue, bool allowDefaultValue);
void SetBlobStream(System.IO.Stream stream);
void SetValue(string value, bool force);
Sitecore.Data.Templates.TemplateField GetTemplateField();
void Reset();
string ToString();
string GetUniqueId();
}
public class FieldWrapper : IField
{
private Sitecore.Data.Fields.Field _innerObject;
public FieldWrapper(Sitecore.Data.Fields.Field innerObject)
{
_innerObject = innerObject;
}
public object InnerWrappedObject
{
get { return _innerObject; }
set { _innerObject = (Sitecore.Data.Fields.Field)value; }
}
// Static Properties
public bool CanRead{
get { return _innerObject.CanRead; }
}
public bool CanWrite{
get { return _innerObject.CanWrite; }
}
public bool ContainsStandardValue{
get { return _innerObject.ContainsStandardValue; }
}
public bool InheritsValueFromOtherItem{
get { return _innerObject.InheritsValueFromOtherItem; }
}
public Sitecore.Data.IDatabase Database{
get { return new Sitecore.Data.DatabaseWrapper(_innerObject.Database); }
}
public Sitecore.Data.Templates.TemplateField Definition{
get { return _innerObject.Definition; }
}
public string Description{
get { return _innerObject.Description; }
}
public string DisplayName{
get { return _innerObject.DisplayName; }
}
public string SectionDisplayName{
get { return _innerObject.SectionDisplayName; }
}
public bool HasBlobStream{
get { return _innerObject.HasBlobStream; }
}
public bool HasValue{
get { return _innerObject.HasValue; }
}
public string HelpLink{
get { return _innerObject.HelpLink; }
}
public Sitecore.Data.ID ID{
get { return _innerObject.ID; }
}
public string InheritedValue{
get { return _innerObject.InheritedValue; }
}
public bool IsBlobField{
get { return _innerObject.IsBlobField; }
}
public bool IsModified{
get { return _innerObject.IsModified; }
}
public Sitecore.Data.Items.IItem Item{
get { return new Sitecore.Data.Items.ItemWrapper(_innerObject.Item); }
}
public string Key{
get { return _innerObject.Key; }
}
public Sitecore.Globalization.Language Language{
get { return _innerObject.Language; }
}
public string Name{
get { return _innerObject.Name; }
}
public bool ResetBlank{
get { return _innerObject.ResetBlank; }
}
public string Section{
get { return _innerObject.Section; }
}
public string SectionNameByUILocale{
get { return _innerObject.SectionNameByUILocale; }
}
public int SectionSortorder{
get { return _innerObject.SectionSortorder; }
}
public bool Shared{
get { return _innerObject.Shared; }
}
public bool ShouldBeTranslated{
get { return _innerObject.ShouldBeTranslated; }
}
public int Sortorder{
get { return _innerObject.Sortorder; }
}
public string Source{
get { return _innerObject.Source; }
}
public string Style{
get { return _innerObject.Style; }
}
public string Title{
get { return _innerObject.Title; }
}
public string ToolTip{
get { return _innerObject.ToolTip; }
}
public bool Translatable{
get { return _innerObject.Translatable; }
}
public string Type{
get { return _innerObject.Type; }
}
public string TypeKey{
get { return _innerObject.TypeKey; }
}
public bool Unversioned{
get { return _innerObject.Unversioned; }
}
public string Validation{
get { return _innerObject.Validation; }
}
public string ValidationText{
get { return _innerObject.ValidationText; }
}
public string Value{
get { return _innerObject.Value; }
set { _innerObject.Value = value; }
}
// Static Methods
public System.IO.Stream GetBlobStream()
{
return _innerObject.GetBlobStream();
}
public string GetStandardValue()
{
return _innerObject.GetStandardValue();
}
public string GetInheritedValue()
{
return _innerObject.GetInheritedValue();
}
public string GetValue(bool allowStandardValue)
{
return _innerObject.GetValue(allowStandardValue);
}
public string GetValue(bool allowStandardValue, bool allowDefaultValue)
{
return _innerObject.GetValue(allowStandardValue, allowDefaultValue);
}
public void SetBlobStream(System.IO.Stream stream)
{
_innerObject.SetBlobStream(stream);
}
public void SetValue(string value, bool force)
{
_innerObject.SetValue(value, force);
}
public Sitecore.Data.Templates.TemplateField GetTemplateField()
{
return _innerObject.GetTemplateField();
}
public void Reset()
{
_innerObject.Reset();
}
public string ToString()
{
return _innerObject.ToString();
}
public string GetUniqueId()
{
return _innerObject.GetUniqueId();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment