Class PermissionType
Classifier class for permissions.
Inheritance
Implements
Inherited Members
Namespace: Kephas.Model.Security.Authorization.Elements
Assembly: Kephas.Model.dll
Syntax
public class PermissionType : ClassifierBase<IPermissionType>, IConstructibleElement, IPermissionType, IClassifier, IModelElement, INamedElement, IAggregatedElementInfo, ITypeInfo, IElementInfo, IExpando, IDynamicMetaObjectProvider, IIndexable, IAttributeProviderConstructors
| Improve this Doc View SourcePermissionType(IModelConstructionContext, String)
Initializes a new instance of the PermissionType class.
Declaration
public PermissionType(IModelConstructionContext constructionContext, string name)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| System.String | name | The name. | 
Properties
| Improve this Doc View SourceGrantedPermissions
Gets the granted permissions.
Declaration
public IEnumerable<IPermissionType> GrantedPermissions { get; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<IPermissionType> | The granted permissions. | 
Remarks
When this permission is granted, the permissions granted by this are also granted. Using this mechanism one can define a hierarchy of permissions.
RequiredPermissions
Gets the required permissions to access this permission.
Declaration
public IEnumerable<IPermissionType> RequiredPermissions { get; }Property Value
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<IPermissionType> | The required permissions. | 
Scoping
Gets the scoping.
Declaration
public Scoping Scoping { get; }Property Value
| Type | Description | 
|---|---|
| Scoping | The scoping. | 
Methods
| Improve this Doc View SourceComputeBaseClassifier(IModelConstructionContext, IEnumerable<ITypeInfo>)
Calculates the base classifier.
Declaration
protected override IClassifier ComputeBaseClassifier(IModelConstructionContext constructionContext, IEnumerable<ITypeInfo> baseTypes)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| System.Collections.Generic.IEnumerable<ITypeInfo> | baseTypes | List of base types. | 
Returns
| Type | Description | 
|---|---|
| IClassifier | The calculated base classifier. | 
Overrides
ComputeBaseMixins(IModelConstructionContext, IEnumerable<ITypeInfo>)
Calculates the base mixins.
Declaration
protected override IEnumerable<IClassifier> ComputeBaseMixins(IModelConstructionContext constructionContext, IEnumerable<ITypeInfo> baseTypes)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| System.Collections.Generic.IEnumerable<ITypeInfo> | baseTypes | List of base types. | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IEnumerable<IClassifier> | The calculated base mixins. | 
Overrides
ComputeBaseTypes(IModelConstructionContext, IList<ITypeInfo>)
Calculates the base types.
Declaration
protected override IList<ITypeInfo> ComputeBaseTypes(IModelConstructionContext constructionContext, IList<ITypeInfo> parts)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. | 
| System.Collections.Generic.IList<ITypeInfo> | parts | The parts. | 
Returns
| Type | Description | 
|---|---|
| System.Collections.Generic.IList<ITypeInfo> | The calculated base types. | 
Overrides
OnCompleteConstruction(IModelConstructionContext)
Called when the construction is complete.
Declaration
protected override void OnCompleteConstruction(IModelConstructionContext constructionContext)Parameters
| Type | Name | Description | 
|---|---|---|
| IModelConstructionContext | constructionContext | Context for the construction. |