Interface IPublicAccessService
Namespace:System.Dynamic.ExpandoObject
Assembly:Umbraco.Core.dll
Syntax
public interface IPublicAccessService : IService
Methods
AddOrUpdateRule(IContent, String, String)
Declaration
[Obsolete("Use AddRule instead, this method will be removed in future versions")]
Attempt<OperationStatus<PublicAccessEntry, OperationStatusType>> AddOrUpdateRule(IContent content, string ruleType, string ruleValue)
Parameters
Type |
Name |
Description |
IContent |
content |
|
System.String |
ruleType |
|
System.String |
ruleValue |
|
Returns
AddRule(IContent, String, String)
Adds a rule if the entry doesn't already exist
Declaration
Attempt<OperationStatus<PublicAccessEntry, OperationStatusType>> AddRule(IContent content, string ruleType, string ruleValue)
Parameters
Type |
Name |
Description |
IContent |
content |
|
System.String |
ruleType |
|
System.String |
ruleValue |
|
Returns
Delete(PublicAccessEntry)
Deletes the entry and all associated rules
Declaration
Attempt<OperationStatus> Delete(PublicAccessEntry entry)
Parameters
Returns
GetAll()
Gets all defined entries and associated rules
Declaration
IEnumerable<PublicAccessEntry> GetAll()
Returns
GetEntryForContent(String)
Gets the entry defined for the content item based on a content path
Declaration
PublicAccessEntry GetEntryForContent(string contentPath)
Parameters
Type |
Name |
Description |
System.String |
contentPath |
|
Returns
GetEntryForContent(IContent)
Gets the entry defined for the content item's path
Declaration
PublicAccessEntry GetEntryForContent(IContent content)
Parameters
Returns
IsProtected(String)
Returns true if the content has an entry based on a content path
Declaration
Attempt<PublicAccessEntry> IsProtected(string contentPath)
Parameters
Type |
Name |
Description |
System.String |
contentPath |
|
Returns
IsProtected(IContent)
Returns true if the content has an entry for it's path
Declaration
Attempt<PublicAccessEntry> IsProtected(IContent content)
Parameters
Returns
RemoveRule(IContent, String, String)
Declaration
Attempt<OperationStatus> RemoveRule(IContent content, string ruleType, string ruleValue)
Parameters
Type |
Name |
Description |
IContent |
content |
|
System.String |
ruleType |
|
System.String |
ruleValue |
|
Returns
Save(PublicAccessEntry)
Declaration
Attempt<OperationStatus> Save(PublicAccessEntry entry)
Parameters
Returns