PartialPermissionSetNamespaceExtension Class
This class is meant to work together with the ISecurityNamespaceExtension interface to allow for easily implementing the HasPermission, QueryPermissions and QueryEffectivePermissions calls for namespaces that forward a partial set of their permissions to another namespace.
Inheritance Hierarchy
System.Object
Microsoft.TeamFoundation.Framework.Server.DefaultSecurityNamespaceExtension
Microsoft.TeamFoundation.Framework.Server.PartialPermissionSetNamespaceExtension
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public MustInherit Class PartialPermissionSetNamespaceExtension _
Inherits DefaultSecurityNamespaceExtension
public abstract class PartialPermissionSetNamespaceExtension : DefaultSecurityNamespaceExtension
public ref class PartialPermissionSetNamespaceExtension abstract : public DefaultSecurityNamespaceExtension
[<AbstractClass>]
type PartialPermissionSetNamespaceExtension =
class
inherit DefaultSecurityNamespaceExtension
end
public abstract class PartialPermissionSetNamespaceExtension extends DefaultSecurityNamespaceExtension
The PartialPermissionSetNamespaceExtension type exposes the following members.
Constructors
Name | Description | |
---|---|---|
PartialPermissionSetNamespaceExtension |
Top
Properties
Name | Description | |
---|---|---|
AlwaysAllowAdministrators | Flag that determines whether namespace administrators always have the implicit right to update the security namespace. (Inherited from DefaultSecurityNamespaceExtension.) | |
SecurityNamespace | The security namespace this extension is for. (Inherited from DefaultSecurityNamespaceExtension.) | |
SourcePermissionsForwarded | The permissions from the source namespace that are forwarded to the target namespace. |
Top
Methods
Name | Description | |
---|---|---|
CheckReadPermission | The default implementation of CheckReadPermission, which calls HasReadPermission on the provided token. (Inherited from DefaultSecurityNamespaceExtension.) | |
CheckWritePermission | The default implementation of CheckWritePermission, which calls HasWritePermission on the provided token. (Inherited from DefaultSecurityNamespaceExtension.) | |
DetermineSourcePermissions | Determines the source permissions that map from the target permissions. | |
DetermineSourceToken | Determines the source token that corresponds to the target token. If no token mapping applies, then null should be returned. | |
DetermineTargetPermissions | Determines the target permissions that map from the source permissions. | |
DetermineTargetToken | Determines the target token that corresponds to the source token. If no token mapping applies, null should be returned. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetLocalizedActionDisplayName | Returns null for all bits. (Inherited from DefaultSecurityNamespaceExtension.) | |
GetTargetNamespace | The target namespace to read the forwarded permissions from. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HandleIncomingToken | The default implementation of HandleIncomoningToken, which just returns the passed in securityToken. (Inherited from DefaultSecurityNamespaceExtension.) | |
HandleOutgoingToken | The default implementation of HandleOutgoingToken which just returns the passed in securityToken. (Inherited from DefaultSecurityNamespaceExtension.) | |
HasPermission | (Overrides DefaultSecurityNamespaceExtension.HasPermission(TeamFoundationRequestContext, String, Int32, Int32, Int32, Boolean).) | |
HasReadPermission | The default implementation of HasReadPermission, which checks to see whether the caller has ReadPermission on the provided token. (Inherited from DefaultSecurityNamespaceExtension.) | |
HasWritePermission | The default implementation of HasWritePermission, which checks to see whether the caller has WritePermission on the provided token. (Inherited from DefaultSecurityNamespaceExtension.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
QueryEffectivePermissions | (Overrides DefaultSecurityNamespaceExtension.QueryEffectivePermissions(TeamFoundationRequestContext, String, IdentityDescriptor, Int32).) | |
QueryPermissions | (Overrides DefaultSecurityNamespaceExtension.QueryPermissions(TeamFoundationRequestContext, String, IEnumerable<IdentityDescriptor>, Boolean, Boolean, IEnumerable<AccessControlList>).) | |
ThrowAccessDeniedException | The default implementation of ThrowAccessDeniedException which throws the generic AccessCheckException. (Inherited from DefaultSecurityNamespaceExtension.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.