View Source
Interface IContentTypeBaseService<TItem>
Assembly: Umbraco.Core.dll
Syntax
public interface IContentTypeBaseService<TItem> : IContentTypeBaseService, IService where TItem : IContentTypeComposition
Type Parameters
Name |
Description |
TItem |
The type of the item.
|
Methods
View Source
Copy(TItem, Int32)
Declaration
Attempt<OperationResult<MoveOperationStatusType, TItem>> Copy(TItem copying, int containerId)
Parameters
Type |
Name |
Description |
TItem |
copying |
|
System.Int32 |
containerId |
|
Returns
View Source
Copy(TItem, String, String, TItem)
Declaration
TItem Copy(TItem original, string alias, string name, TItem parent)
Parameters
Type |
Name |
Description |
TItem |
original |
|
System.String |
alias |
|
System.String |
name |
|
TItem |
parent |
|
Returns
View Source
Copy(TItem, String, String, Int32)
Declaration
TItem Copy(TItem original, string alias, string name, int parentId = -1)
Parameters
Type |
Name |
Description |
TItem |
original |
|
System.String |
alias |
|
System.String |
name |
|
System.Int32 |
parentId |
|
Returns
View Source
Count()
Declaration
Returns
Type |
Description |
System.Int32 |
|
View Source
CreateContainer(Int32, Guid, String, Int32)
Declaration
Attempt<OperationResult<OperationResultType, EntityContainer>> CreateContainer(int parentContainerId, Guid key, string name, int userId = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
parentContainerId |
|
Guid |
key |
|
System.String |
name |
|
System.Int32 |
userId |
|
Returns
View Source
Delete(TItem, Int32)
Declaration
void Delete(TItem item, int userId = -1)
Parameters
Type |
Name |
Description |
TItem |
item |
|
System.Int32 |
userId |
|
View Source
Delete(IEnumerable<TItem>, Int32)
Declaration
void Delete(IEnumerable<TItem> item, int userId = -1)
Parameters
Type |
Name |
Description |
IEnumerable<TItem> |
item |
|
System.Int32 |
userId |
|
View Source
DeleteContainer(Int32, Int32)
Declaration
Attempt<OperationResult> DeleteContainer(int containerId, int userId = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
containerId |
|
System.Int32 |
userId |
|
Returns
View Source
Get(Guid)
Declaration
Parameters
Type |
Name |
Description |
Guid |
key |
|
Returns
View Source
Get(Int32)
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
Get(String)
Declaration
Parameters
Type |
Name |
Description |
System.String |
alias |
|
Returns
View Source
GetAll(Int32[])
Declaration
IEnumerable<TItem> GetAll(params int[] ids)
Parameters
Type |
Name |
Description |
System.Int32[] |
ids |
|
Returns
Type |
Description |
IEnumerable<TItem> |
|
View Source
GetAll(Nullable<IEnumerable<Guid>>)
Declaration
IEnumerable<TItem> GetAll(IEnumerable<Guid>? ids)
Parameters
Type |
Name |
Description |
System.Nullable<IEnumerable<Guid>> |
ids |
|
Returns
Type |
Description |
IEnumerable<TItem> |
|
View Source
GetChildren(Guid)
Declaration
IEnumerable<TItem> GetChildren(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Type |
Description |
IEnumerable<TItem> |
|
View Source
GetChildren(Int32)
Declaration
IEnumerable<TItem> GetChildren(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
IEnumerable<TItem> |
|
View Source
GetComposedOf(Int32)
Declaration
IEnumerable<TItem> GetComposedOf(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
IEnumerable<TItem> |
|
View Source
GetContainer(Guid)
Declaration
EntityContainer GetContainer(Guid containerId)
Parameters
Type |
Name |
Description |
Guid |
containerId |
|
Returns
View Source
GetContainer(Int32)
Declaration
EntityContainer GetContainer(int containerId)
Parameters
Type |
Name |
Description |
System.Int32 |
containerId |
|
Returns
View Source
GetContainers(TItem)
Declaration
IEnumerable<EntityContainer> GetContainers(TItem contentType)
Parameters
Type |
Name |
Description |
TItem |
contentType |
|
Returns
View Source
GetContainers(Int32[])
Declaration
IEnumerable<EntityContainer> GetContainers(int[] containerIds)
Parameters
Type |
Name |
Description |
System.Int32[] |
containerIds |
|
Returns
View Source
GetContainers(String, Int32)
Declaration
IEnumerable<EntityContainer> GetContainers(string folderName, int level)
Parameters
Type |
Name |
Description |
System.String |
folderName |
|
System.Int32 |
level |
|
Returns
View Source
GetDescendants(Int32, Boolean)
Declaration
IEnumerable<TItem> GetDescendants(int id, bool andSelf)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.Boolean |
andSelf |
|
Returns
Type |
Description |
IEnumerable<TItem> |
|
View Source
HasChildren(Guid)
Declaration
bool HasChildren(Guid id)
Parameters
Type |
Name |
Description |
Guid |
id |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasChildren(Int32)
Declaration
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasContainerInPath(Int32[])
Gets a value indicating whether there is a list view content item in the path.
Declaration
bool HasContainerInPath(params int[] ids)
Parameters
Type |
Name |
Description |
System.Int32[] |
ids |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasContainerInPath(String)
Given the path of a content item, this will return true if the content item exists underneath a list view content
item
Declaration
bool HasContainerInPath(string contentPath)
Parameters
Type |
Name |
Description |
System.String |
contentPath |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
HasContentNodes(Int32)
Returns true or false depending on whether content nodes have been created based on the provided content type id.
Declaration
bool HasContentNodes(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
Move(TItem, Int32)
Declaration
Attempt<OperationResult<MoveOperationStatusType>> Move(TItem moving, int containerId)
Parameters
Type |
Name |
Description |
TItem |
moving |
|
System.Int32 |
containerId |
|
Returns
View Source
RenameContainer(Int32, String, Int32)
Declaration
Attempt<OperationResult<OperationResultType, EntityContainer>> RenameContainer(int id, string name, int userId = -1)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
System.String |
name |
|
System.Int32 |
userId |
|
Returns
View Source
Save(TItem, Int32)
Declaration
void Save(TItem item, int userId = -1)
Parameters
Type |
Name |
Description |
TItem |
item |
|
System.Int32 |
userId |
|
View Source
Save(IEnumerable<TItem>, Int32)
Declaration
void Save(IEnumerable<TItem> items, int userId = -1)
Parameters
Type |
Name |
Description |
IEnumerable<TItem> |
items |
|
System.Int32 |
userId |
|
View Source
SaveContainer(EntityContainer, Int32)
Declaration
Attempt<OperationResult> SaveContainer(EntityContainer container, int userId = -1)
Parameters
Returns
View Source
ValidateComposition(TItem)
Declaration
Attempt<string[]> ValidateComposition(TItem compo)
Parameters
Type |
Name |
Description |
TItem |
compo |
|
Returns
Type |
Description |
Attempt<System.String[]> |
|