public interface IPublicAccessService : IService
Methods View Source AddRule(IContent, String, String)
Adds a rule if the entry doesn't already exist
DeclarationAttempt<OperationResult<OperationResultType, PublicAccessEntry>> AddRule(IContent content, string ruleType, string ruleValue)
Parameters Type Name Description IContent content System.String ruleType System.String ruleValue Returns View Source CreateAsync(PublicAccessEntrySlim)
Saves the entry asynchronously and returns a status result whether the operation succeeded or not
DeclarationTask<Attempt<PublicAccessEntry, PublicAccessOperationStatus>> CreateAsync(PublicAccessEntrySlim entry)
Parameters Returns View Source Delete(PublicAccessEntry)
Deletes the entry and all associated rules
DeclarationAttempt<OperationResult> Delete(PublicAccessEntry entry)
Parameters Returns View Source DeleteAsync(Guid)
Deletes the entry and all associated rules for a given key.
DeclarationTask<Attempt<PublicAccessOperationStatus>> DeleteAsync(Guid key)
Parameters Type Name Description Guid key Returns View Source GetAll()
Gets all defined entries and associated rules
DeclarationIEnumerable<PublicAccessEntry> GetAll()
Returns View Source GetEntryByContentKeyAsync(Guid)
Gets the entry defined for the content item based on a content key
DeclarationTask<Attempt<PublicAccessEntry, PublicAccessOperationStatus>> GetEntryByContentKeyAsync(Guid key)
Parameters Type Name Description Guid key Returns View Source GetEntryByContentKeyWithoutAncestorsAsync(Guid)
Gets the entry defined for the content item based on a content key, without taking ancestor entries into account.
Declarationvirtual Task<Attempt<PublicAccessEntry, PublicAccessOperationStatus>> GetEntryByContentKeyWithoutAncestorsAsync(Guid key)
Parameters Type Name Description Guid key Returns View Source GetEntryForContent(String)
Gets the entry defined for the content item based on a content path
DeclarationPublicAccessEntry GetEntryForContent(string contentPath)
Parameters Type Name Description System.String contentPath Returns View Source GetEntryForContent(IContent)
Gets the entry defined for the content item's path
DeclarationPublicAccessEntry GetEntryForContent(IContent content)
Parameters Returns View Source IsProtected(String)
Returns true if the content has an entry based on a content path
DeclarationAttempt<PublicAccessEntry> IsProtected(string contentPath)
Parameters Type Name Description System.String contentPath Returns View Source IsProtected(IContent)
Returns true if the content has an entry for it's path
DeclarationAttempt<PublicAccessEntry> IsProtected(IContent content)
Parameters Returns View Source RemoveRule(IContent, String, String)
Removes a rule
DeclarationAttempt<OperationResult> RemoveRule(IContent content, string ruleType, string ruleValue)
Parameters Type Name Description IContent content System.String ruleType System.String ruleValue Returns View Source Save(PublicAccessEntry)
Saves the entry
DeclarationAttempt<OperationResult> Save(PublicAccessEntry entry)
Parameters Returns View Source UpdateAsync(PublicAccessEntrySlim)
Updates the entry asynchronously and returns a status result whether the operation succeeded or not
DeclarationTask<Attempt<PublicAccessEntry, PublicAccessOperationStatus>> UpdateAsync(PublicAccessEntrySlim entry)
Parameters Returns
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4