Share via


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
Protected method PartialPermissionSetNamespaceExtension

Top

Properties

  Name Description
Public property AlwaysAllowAdministrators Flag that determines whether namespace administrators always have the implicit right to update the security namespace. (Inherited from DefaultSecurityNamespaceExtension.)
Public property SecurityNamespace The security namespace this extension is for. (Inherited from DefaultSecurityNamespaceExtension.)
Public property SourcePermissionsForwarded The permissions from the source namespace that are forwarded to the target namespace.

Top

Methods

  Name Description
Public method CheckReadPermission The default implementation of [CheckReadPermission], which calls [HasReadPermission] on the provided token. (Inherited from DefaultSecurityNamespaceExtension.)
Public method CheckWritePermission The default implementation of [CheckWritePermission], which calls [HasWritePermission] on the provided token. (Inherited from DefaultSecurityNamespaceExtension.)
Public method DetermineSourcePermissions Determines the source permissions that map from the target permissions.
Public method DetermineSourceToken Determines the source token that corresponds to the target token. If no token mapping applies, then null should be returned.
Public method DetermineTargetPermissions Determines the target permissions that map from the source permissions.
Public method DetermineTargetToken Determines the target token that corresponds to the source token. If no token mapping applies, null should be returned.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLocalizedActionDisplayName Returns null for all bits. (Inherited from DefaultSecurityNamespaceExtension.)
Public method GetTargetNamespace The target namespace to read the forwarded permissions from.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method HandleIncomingToken The default implementation of [HandleIncomoningToken], which just returns the passed in [securityToken]. (Inherited from DefaultSecurityNamespaceExtension.)
Public method HandleOutgoingToken The default implementation of [HandleOutgoingToken] which just returns the passed in [securityToken]. (Inherited from DefaultSecurityNamespaceExtension.)
Public method HasPermission (Overrides DefaultSecurityNamespaceExtension.HasPermission(TeamFoundationRequestContext, String, Int32, Int32, Int32, Boolean).)
Public method HasReadPermission The default implementation of [HasReadPermission], which checks to see whether the caller has [SecurityNamespace.Description.ReadPermission] on the provided token. (Inherited from DefaultSecurityNamespaceExtension.)
Public method HasWritePermission The default implementation of [HasWritePermission], which checks to see whether the caller has [SecurityNamespace.Description.WritePermission] on the provided token. (Inherited from DefaultSecurityNamespaceExtension.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method QueryEffectivePermissions (Overrides DefaultSecurityNamespaceExtension.QueryEffectivePermissions(TeamFoundationRequestContext, String, IdentityDescriptor, Int32).)
Public method QueryPermissions (Overrides DefaultSecurityNamespaceExtension.QueryPermissions(TeamFoundationRequestContext, String, IEnumerable<IdentityDescriptor>, Boolean, Boolean, IEnumerable<AccessControlList>).)
Public method ThrowAccessDeniedException (Inherited from DefaultSecurityNamespaceExtension.)
Public method 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.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace