View Source
Class MemberTypeController
An API controller used for dealing with member types
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class MemberTypeController : ContentTypeControllerBase<IMemberType>, IDiscoverable
Constructors
View Source
MemberTypeController(ICultureDictionaryFactory, IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, UmbracoHelper)
Declaration
public MemberTypeController(ICultureDictionaryFactory cultureDictionaryFactory, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
Parameters
Methods
View Source
DeleteById(Int32)
Deletes a document type with a given id
Declaration
public HttpResponseMessage DeleteById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
Type |
Description |
HttpResponseMessage |
|
View Source
GetAllTypes()
Declaration
public IEnumerable<ContentTypeBasic> GetAllTypes()
Returns
View Source
GetAvailableCompositeMemberTypes(Int32, String[], String[])
Returns the available compositions for this content type
Declaration
public HttpResponseMessage GetAvailableCompositeMemberTypes(int contentTypeId, string[] filterContentTypes, string[] filterPropertyTypes)
Parameters
Type |
Name |
Description |
System.Int32 |
contentTypeId |
|
System.String[] |
filterContentTypes |
This is normally an empty list but if additional content type aliases are passed in, any content types containing those aliases will be filtered out
along with any content types that have matching property types that are included in the filtered content types
|
System.String[] |
filterPropertyTypes |
This is normally an empty list but if additional property type aliases are passed in, any content types that have these aliases will be filtered out.
This is required because in the case of creating/modifying a content type because new property types being added to it are not yet persisted so cannot
be looked up via the db, they need to be passed in.
|
Returns
Type |
Description |
HttpResponseMessage |
|
View Source
GetById(Guid)
Gets the member type a given guid
Declaration
public MemberTypeDisplay GetById(Guid id)
Parameters
Type |
Name |
Description |
System.Guid |
id |
|
Returns
View Source
GetById(Int32)
Gets the member type a given id
Declaration
public MemberTypeDisplay GetById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns
View Source
GetById(Udi)
Gets the member type a given udi
Declaration
public MemberTypeDisplay GetById(Udi id)
Parameters
Type |
Name |
Description |
Udi |
id |
|
Returns
View Source
GetEmpty()
Declaration
public MemberTypeDisplay GetEmpty()
Returns
View Source
PostCopy(MoveOrCopy)
Declaration
public HttpResponseMessage PostCopy(MoveOrCopy copy)
Parameters
Returns
Type |
Description |
HttpResponseMessage |
|
View Source
PostSave(MemberTypeSave)
Declaration
public MemberTypeDisplay PostSave(MemberTypeSave contentTypeSave)
Parameters
Returns