Class Permission
- Namespace
- Dynamicweb.Security.Permissions
- Assembly
- Dynamicweb.Core.dll
Represents a configured permission for a permission owner (user group or role).
- Inheritance
-
Permission
- Implements
- Inherited Members
Remarks
Immutable
Constructors
Permission(string, PermissionEntityIdentifier, PermissionLevel)
Instantiates a permission level for an owner (group or role) on an entity identifier.
Parameters
ownerId
stringOwner identifier
identifier
PermissionEntity Identifier Entity identifier
level
PermissionLevel permission level
Permission(string, string, string, string, PermissionLevel)
Instantiates a permission level for am owner (group or role) on an identifier.
Parameters
ownerId
stringOwner identifier
key
stringkey
name
stringname
subName
stringsubName
level
PermissionLevel permission level
Properties
Identifier
Gets the identifier of the entity that is affected by this permission.
Property Value
Key
Gets the key of the entity that is affected by this permission, e.g. "123" for a given page id.
Property Value
Level
Gets the level of permission.
Property Value
Name
Gets the name (type/class) of the entity that is affected by this permission, e.g "Page", "Paragraph", "Item" etc.
Property Value
OwnerId
Gets the identifier that matches a user, user group or role.
Property Value
SubName
Gets the subname (subtype/subclass) that is affected by this permission.
Property Value
Methods
Equals(Permission?)
Indicates whether the current object is equal to another object of the same type.
Parameters
other
PermissionAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
Parameters
obj
objectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.