Class PermissionDetailsChangeset
Represents the changeset of permission details.
Inheritance
System.Object
PermissionDetailsChangeset
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Relativity.Testing.Framework.Models
Assembly: Relativity.Testing.Framework.dll
Syntax
public class PermissionDetailsChangeset
Methods
| Improve this Doc View SourceDisable(IEnumerable<String>)
Disables the permissions with the specified names.
Declaration
public GroupPermissionsChangeset Disable(IEnumerable<string> names)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | names | The permission names. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
Disable(String[])
Disables the permissions with the specified names.
Declaration
public GroupPermissionsChangeset Disable(params string[] names)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | names | The permission names. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
DisableAll()
Disables all permissions.
Declaration
public GroupPermissionsChangeset DisableAll()
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
Enable(IEnumerable<String>)
Enables the permissions with the specified names.
Declaration
public GroupPermissionsChangeset Enable(IEnumerable<string> names)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | names | The permission names. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
Enable(String[])
Enables the permissions with the specified names.
Declaration
public GroupPermissionsChangeset Enable(params string[] names)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | names | The permission names. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
EnableAll()
Enables all permissions.
Declaration
public GroupPermissionsChangeset EnableAll()
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
SetAll(Boolean)
Sets the specified selected state to all permissions.
Declaration
public GroupPermissionsChangeset SetAll(bool selected)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | selected | Whether to select permissions. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |