Class GenericPermissionChangeset
Represents the changeset of generic permission.
Inheritance
Inherited Members
Namespace: Relativity.Testing.Framework.Models
Assembly: Relativity.Testing.Framework.dll
Syntax
public class GenericPermissionChangeset
Properties
| Improve this Doc View SourceItem[String]
Updates the GroupPermissionsChangeset.
Declaration
public GenericPermissionChangeset this[string name] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The Name. |
Property Value
Type | Description |
---|---|
GenericPermissionChangeset | An instance of GroupPermissionsChangeset. |
Methods
| Improve this Doc View SourceDisable()
Disables the permission.
Declaration
public GroupPermissionsChangeset Disable()
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
DisableAll()
Disables the permission and all its child permissions.
Declaration
public GroupPermissionsChangeset DisableAll()
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
Do(Action<GenericPermissionChangeset>)
Executes the specified action that can modify the permission changeset.
Declaration
public GroupPermissionsChangeset Do(Action<GenericPermissionChangeset> action)
Parameters
Type | Name | Description |
---|---|---|
System.Action<GenericPermissionChangeset> | action | The action. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
Enable()
Enables the permission.
Declaration
public GroupPermissionsChangeset Enable()
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
EnableAll()
Enables the permission and all its child permissions.
Declaration
public GroupPermissionsChangeset EnableAll()
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
EnableWith(IEnumerable<String>)
Enables the permission and all its child permissions with particular names.
Declaration
public GroupPermissionsChangeset EnableWith(IEnumerable<string> childPermissionNames)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | childPermissionNames | The child permission names. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |
EnableWith(String[])
Enables the permission and all its child permissions with particular names.
Declaration
public GroupPermissionsChangeset EnableWith(params string[] childPermissionNames)
Parameters
Type | Name | Description |
---|---|---|
System.String[] | childPermissionNames | The child permission names. |
Returns
Type | Description |
---|---|
GroupPermissionsChangeset | An instance of GroupPermissionsChangeset. |