![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <NamePermissionList.h>
Inheritance diagram for FPathPermissionList:Protected Member Functions | |
| CORE_API void | VerifyItemMatchesListType (const FStringView Item) const |
Protected Member Functions inherited from TSharedFromThis< FPathPermissionList > | |
| TSharedFromThis () | |
| TSharedFromThis (TSharedFromThis const &) | |
| UE_FORCEINLINE_HINT TSharedFromThis & | operator= (TSharedFromThis const &) |
| ~TSharedFromThis () | |
Additional Inherited Members | |
Static Protected Member Functions inherited from TSharedFromThis< FPathPermissionList > | |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
Set of paths that are allowd and/or denied for certain use cases. A permission list may contain
| FPathPermissionList::FPathPermissionList | ( | EPathPermissionListType | InType = EPathPermissionListType::Default | ) |
|
inlinevirtual |
|
default |
|
default |
Add item to allowlist after which all items not in the allowlist will be filtered out.
| bool FPathPermissionList::AddAllowListItem | ( | const FName | OwnerName, |
| const FStringView | Item | ||
| ) |
Add item to allowlist after which all items not in the allowlist will be filtered out.
Add item to allowlist after which all items not in the allowlist will be filtered out.
Set to filter out all items.
Add item to DenyList, this specific item will be filtered out.
| bool FPathPermissionList::AddDenyListItem | ( | const FName | OwnerName, |
| const FStringView | Item | ||
| ) |
Add item to DenyList, this specific item will be filtered out.
Add item to DenyList, this specific item will be filtered out.
| bool FPathPermissionList::Append | ( | const FPathPermissionList & | Other | ) |
Add the specified filters to this one. Rules are not applied, direct append lists.
| FPathPermissionList FPathPermissionList::CombinePathFilters | ( | const FPathPermissionList & | OtherFilter | ) | const |
Combine two filters. Result will contain all DenyList paths combined. Result will contain AllowList paths that pass both filters.
| bool FPathPermissionList::ContainsDenyListItem | ( | FStringView | Item | ) | const |
Returns whether the given path has been denied explicitly with a call to AddDenyListItem.
| const TMap< FString, FPermissionListOwners > & FPathPermissionList::GetAllowList | ( | ) | const |
Get raw allowlist
| TArray< FString > FPathPermissionList::GetAllowListEntries | ( | ) | const |
Returns a copy of the paths explicity allowed in this list
| const TMap< FString, FPermissionListOwners > & FPathPermissionList::GetDenyList | ( | ) | const |
Get raw DenyList
| TArray< FString > FPathPermissionList::GetDenyListEntries | ( | ) | const |
Get a copy of the paths explicity denied in this list.
Gathers the names of all the owners in this DenyList.
| bool FPathPermissionList::HasAllowListEntries | ( | ) | const |
Returns whether this list has any explicitly allowed paths, which will lead to it denying access to any paths not listed.
| bool FPathPermissionList::HasDenyListEntries | ( | ) | const |
Returns whether this list has any explicitly denied paths.
| bool FPathPermissionList::HasFiltering | ( | ) | const |
True if has filters active
|
inline |
Are all items set to be filtered out
|
inline |
Triggered when filter changes
|
default |
|
default |
Returns true if passes filter restrictions using exact match
| bool FPathPermissionList::PassesFilter | ( | const FStringView | Item | ) | const |
Returns true if passes filter restrictions using exact match
Returns true if passes filter restrictions using exact match
| bool FPathPermissionList::PassesStartsWithFilter | ( | const FName | Item, |
| const bool | bAllowParentPaths = false |
||
| ) | const |
Returns true if passes filter restrictions for path
| bool FPathPermissionList::PassesStartsWithFilter | ( | const FStringView | Item, |
| const bool | bAllowParentPaths = false |
||
| ) | const |
Returns true if passes filter restrictions for path
| bool FPathPermissionList::PassesStartsWithFilter | ( | const TCHAR * | Item, |
| const bool | bAllowParentPaths = false |
||
| ) | const |
Returns true if passes filter restrictions for path
| EPathPermissionPrefixResult FPathPermissionList::PassesStartsWithFilterRecursive | ( | const FStringView | Item, |
| const bool | bAllowParentPaths = false |
||
| ) | const |
Checks the given path against the restrictions and return whether it's possible for any child paths to succeed or fail as well. Returning PassRecursive or FailRecursive guarantees that no child paths of the queried path can fail or pass the filter respectively. Returning Pass or Fail does not guarantee that there is some path which fails or passes the filter respectively.
Examples:
Given no deny or allow lists: Inputs: / -> PassRecursive, because no paths can fail to match the allow list or match the deny list.
Given a deny-list entry: Allow: empty Deny: /Secret Inputs: / -> Pass, because some children of this path may be denied. /Secret -> FailRecursive, because this path is denied and all children will also be denied. /Public -> PassRecursive, because this path is not demied and no children can be denied.
Given an allow-list entry: Allow: /JustThis Deny: empty Inputs: / -> Fail /JustThis -> PassRecursive /SomethingElse -> FailRecursive
Given both allow and deny-lists: Allow: /Stuff Deny: /Stuff/Secret Inputs: / -> Fail /Stuff -> Pass /Stuff/Secret -> Fail /Stuff/Public -> PassRecursive
Remove item from the AllowList
| bool FPathPermissionList::RemoveAllowListItem | ( | const FName | OwnerName, |
| const FStringView | Item | ||
| ) |
Remove item from the AllowList
Remove item from the AllowList
Remove item from the DenyList
| bool FPathPermissionList::RemoveDenyListItem | ( | const FName | OwnerName, |
| const FStringView | Item | ||
| ) |
Remove item from the DenyList
Remove item from the DenyList
| FPermissionListOwners FPathPermissionList::RemoveDenyListItemAndGetOwners | ( | FStringView | Item | ) |
Removes an item from the deny list and returns a list of all the owners of that item so that the item can be re-introduced.
| FString FPathPermissionList::ToString | ( | ) | const |
Dumps the path permission list details into a multi-line string
Removes all filtering changes associated with a specific owner name.
Removes all filtering changes associated with the specified list of owner names.
| bool FPathPermissionList::UnregisterOwnersAndAppend | ( | const TArray< FName > & | OwnerNamesToRemove, |
| const FPathPermissionList & | FiltersToAdd | ||
| ) |
Unregisters specified owners then adds specified filters in one operation (to avoid multiple filters changed events).
|
protected |
Checks if an item is of a valid format for this list
|
protected |
Compiled path tree produced from AllowList
Temporarily prevent delegate from being triggered
|
protected |
List of owner names that requested all items to be filtered out
|
protected |
Compiled path tree produced from DenyList
|
protected |
Type of paths this list represent
|
protected |
Triggered when filter changes