November Happy Hour will be moved to Thursday December 5th.

Interface IAvailableContentTypes

Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
[Obsolete("Interface has been replaced by abstract class ContentTypeAvailablilityService", true)]
public interface IAvailableContentTypes

Methods

GetSetting(String)

Gets the current settings for available content types for a ContentType given by name contentTypeName.

Declaration
AvailableSetting GetSetting(string contentTypeName)
Parameters
Type Name Description
System.String contentTypeName

Name of the content type.

Returns
Type Description
AvailableSetting

IsAllowed(String, String)

Determines whether a ContentData of the ContentType named childContentTypeName is allowed to be created under a content of the ContentType named parentContentTypeName.

Declaration
bool IsAllowed(string parentContentTypeName, string childContentTypeName)
Parameters
Type Name Description
System.String parentContentTypeName

The name of the parent ContentType.

System.String childContentTypeName

The name of child ContentType.

Returns
Type Description
System.Boolean

true if the specified content type is allowed; otherwise, false.

ListAvailable(String, IPrincipal)

Lists all available ContentType that can be created under a content instance of content type with name contentTypeName. The list is filtered due to the user

Declaration
IList<ContentType> ListAvailable(string contentTypeName, IPrincipal user)
Parameters
Type Name Description
System.String contentTypeName

Name of the content type.

System.Security.Principal.IPrincipal user

The user.

Returns
Type Description
System.Collections.Generic.IList<ContentType>
Remarks

This method does not take any uncomitted data into account.

Extension Methods