2010-06-16 19:22:51 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Orchard.ContentManagement.MetaData.Models;
|
|
|
|
|
|
|
|
|
|
namespace Orchard.Core.Contents.Services {
|
|
|
|
|
public interface IContentDefinitionService : IDependency {
|
|
|
|
|
IEnumerable<ContentTypeDefinition> GetTypeDefinitions();
|
|
|
|
|
ContentTypeDefinition GetTypeDefinition(string name);
|
2010-06-22 18:36:04 +08:00
|
|
|
|
void AddTypeDefinition(ContentTypeDefinition contentTypeDefinition);
|
|
|
|
|
void AlterTypeDefinition(ContentTypeDefinition contentTypeDefinition);
|
2010-06-16 19:22:51 +08:00
|
|
|
|
void RemoveTypeDefinition(string name);
|
|
|
|
|
}
|
|
|
|
|
}
|