2013-03-07 22:27:47 +06:00
|
|
|
|
using Umbraco.Core.Persistence.Mappers;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Core.Models
|
2012-10-03 08:24:23 -02:00
|
|
|
|
{
|
|
|
|
|
|
public interface IMedia : IContentBase
|
|
|
|
|
|
{
|
2012-10-10 08:42:54 -02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the ContentType used by this Media object
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
IMediaType ContentType { get; }
|
|
|
|
|
|
|
2012-10-03 08:24:23 -02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Changes the <see cref="IMediaType"/> for the current content object
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="contentType">New ContentType for this content</param>
|
|
|
|
|
|
/// <remarks>Leaves PropertyTypes intact after change</remarks>
|
|
|
|
|
|
void ChangeContentType(IMediaType contentType);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Changes the <see cref="IMediaType"/> for the current content object and removes PropertyTypes,
|
|
|
|
|
|
/// which are not part of the new ContentType.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="contentType">New ContentType for this content</param>
|
|
|
|
|
|
/// <param name="clearProperties">Boolean indicating whether to clear PropertyTypes upon change</param>
|
|
|
|
|
|
void ChangeContentType(IMediaType contentType, bool clearProperties);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|