Class ContentTypeAvailabilityService
Abstract class for avalibale content types that has both filtering by access on Content
Namespace: EPiServer.DataAbstraction
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public abstract class ContentTypeAvailabilityService : Object
Constructors
ContentTypeAvailabilityService()
Declaration
protected ContentTypeAvailabilityService()
Methods
GetSetting(String)
Gets the current settings for available content types for a ContentcontentTypeName
.
Declaration
public abstract AvailableSetting GetSetting(string contentTypeName)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentTypeName | Name of the content type. |
Returns
Type | Description |
---|---|
Available |
IsAllowed(String, String)
Determines whether a IContent of the ContentType named childContentTypeName
is allowed to be created under a Content of
the ContentType named parentContentTypeName
.
Declaration
public abstract bool IsAllowed(string parentContentTypeName, string childContentTypeName)
Parameters
Type | Name | Description |
---|---|---|
System. |
parentContentTypeName | The name of the parent ContentType. |
System. |
childContentTypeName | The name of child ContentType. |
Returns
Type | Description |
---|---|
System. |
|
ListAvailable(IContent, Boolean, IPrincipal)
Lists all available Contentcontent
.
Declaration
public abstract IList<ContentType> ListAvailable(IContent content, bool contentFolder, IPrincipal user)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | |
System. |
contentFolder | If true then list all available Content |
System. |
user |
Returns
Type | Description |
---|---|
System. |
Remarks
The list is filtered due to the user
, IContent
ListAvailable(String, IPrincipal)
Lists all available ContentcontentTypeName
.
Declaration
public abstract IList<ContentType> ListAvailable(string contentTypeName, IPrincipal user)
Parameters
Type | Name | Description |
---|---|---|
System. |
contentTypeName | |
System. |
user |
Returns
Type | Description |
---|---|
System. |
Remarks
The list is filtered due to the user
, IContent