C# Class ScrewTurn.Wiki.AuthReader

Utility class for reading permissions and authorizations.
显示文件 Open project: mono/ScrewTurnWiki Class Usage Examples

Private Properties

Property Type Description
RetrieveDenialsForDirectory string[]
RetrieveDenialsForGlobals string[]
RetrieveDenialsForNamespace string[]
RetrieveDenialsForPage string[]
RetrieveGrantsForDirectory string[]
RetrieveGrantsForGlobals string[]
RetrieveGrantsForNamespace string[]
RetrieveGrantsForPage string[]

Public Methods

Method Description
RetrieveDenialsForDirectory ( UserGroup group, IFilesStorageProviderV30 provider, string directory ) : string[]

Gets all the actions for a directory that are denied to a group.

RetrieveDenialsForDirectory ( UserInfo user, IFilesStorageProviderV30 provider, string directory ) : string[]

Gets all the actions for a directory that are denied to a user.

RetrieveDenialsForGlobals ( UserGroup group ) : string[]

Gets all the actions for global resources that are denied to a group.

RetrieveDenialsForGlobals ( UserInfo user ) : string[]

Gets all the actions for global resources that are denied to a user.

RetrieveDenialsForNamespace ( UserGroup group, NamespaceInfo nspace ) : string[]

Gets all the actions for a namespace that are denied to a group.

RetrieveDenialsForNamespace ( UserInfo user, NamespaceInfo nspace ) : string[]

Gets all the actions for a namespace that are denied to a user.

RetrieveDenialsForPage ( UserGroup group, System.PageInfo page ) : string[]

Gets all the actions for a page that are denied to a group.

RetrieveDenialsForPage ( UserInfo user, System.PageInfo page ) : string[]

Gets all the actions for a page that are denied to a user.

RetrieveGrantsForDirectory ( UserGroup group, IFilesStorageProviderV30 provider, string directory ) : string[]

Gets all the actions for a directory that are granted to a group.

RetrieveGrantsForDirectory ( UserInfo user, IFilesStorageProviderV30 provider, string directory ) : string[]

Gets all the actions for a directory that are granted to a user.

RetrieveGrantsForGlobals ( UserGroup group ) : string[]

Gets all the actions for global resources that are granted to a group.

RetrieveGrantsForGlobals ( UserInfo user ) : string[]

Gets all the actions for global resources that are granted to a user.

RetrieveGrantsForNamespace ( UserGroup group, NamespaceInfo nspace ) : string[]

Gets all the actions for a namespace that are granted to a group.

RetrieveGrantsForNamespace ( UserInfo user, NamespaceInfo nspace ) : string[]

Gets all the actions for a namespace that are granted to a user.

RetrieveGrantsForPage ( UserGroup group, System.PageInfo page ) : string[]

Gets all the actions for a page that are granted to a group.

RetrieveGrantsForPage ( UserInfo user, System.PageInfo page ) : string[]

Gets all the actions for a page that are granted to a user.

RetrieveSubjectsForDirectory ( IFilesStorageProviderV30 provider, string directory ) : ScrewTurn.Wiki.SubjectInfo[]

Retrieves the subjects that have ACL entries set for a directory.

RetrieveSubjectsForNamespace ( NamespaceInfo nspace ) : ScrewTurn.Wiki.SubjectInfo[]

Retrieves the subjects that have ACL entries set for a namespace.

RetrieveSubjectsForPage ( System.PageInfo page ) : ScrewTurn.Wiki.SubjectInfo[]

Retrieves the subjects that have ACL entries set for a page.

Private Methods

Method Description
RetrieveDenialsForDirectory ( string subject, IFilesStorageProviderV30 provider, string directory ) : string[]

Gets all the actions for a directory that are denied to a subject.

RetrieveDenialsForGlobals ( string subject ) : string[]

Gets all the actions for global resources that are denied to a subject.

RetrieveDenialsForNamespace ( string subject, NamespaceInfo nspace ) : string[]

Gets all the actions for a namespace that are denied to a subject.

RetrieveDenialsForPage ( string subject, System.PageInfo page ) : string[]

Gets all the actions for a page that are denied to a subject.

RetrieveGrantsForDirectory ( string subject, IFilesStorageProviderV30 provider, string directory ) : string[]

Gets all the actions for a directory that are granted to a subject.

RetrieveGrantsForGlobals ( string subject ) : string[]

Gets all the actions for global resources that are granted to a subject.

RetrieveGrantsForNamespace ( string subject, NamespaceInfo nspace ) : string[]

Gets all the actions for a namespace that are granted to a subject.

RetrieveGrantsForPage ( string subject, System.PageInfo page ) : string[]

Gets all the actions for a page that are granted to a subject.

Method Details

RetrieveDenialsForDirectory() public static method

Gets all the actions for a directory that are denied to a group.
public static RetrieveDenialsForDirectory ( UserGroup group, IFilesStorageProviderV30 provider, string directory ) : string[]
group UserGroup The user group.
provider IFilesStorageProviderV30 The provider.
directory string The directory.
return string[]

RetrieveDenialsForDirectory() public static method

Gets all the actions for a directory that are denied to a user.
public static RetrieveDenialsForDirectory ( UserInfo user, IFilesStorageProviderV30 provider, string directory ) : string[]
user UserInfo The user.
provider IFilesStorageProviderV30 The provider.
directory string The directory.
return string[]

RetrieveDenialsForGlobals() public static method

Gets all the actions for global resources that are denied to a group.
public static RetrieveDenialsForGlobals ( UserGroup group ) : string[]
group UserGroup The user group.
return string[]

RetrieveDenialsForGlobals() public static method

Gets all the actions for global resources that are denied to a user.
public static RetrieveDenialsForGlobals ( UserInfo user ) : string[]
user UserInfo The user.
return string[]

RetrieveDenialsForNamespace() public static method

Gets all the actions for a namespace that are denied to a group.
public static RetrieveDenialsForNamespace ( UserGroup group, NamespaceInfo nspace ) : string[]
group UserGroup The user group.
nspace NamespaceInfo The namespace (null for the root).
return string[]

RetrieveDenialsForNamespace() public static method

Gets all the actions for a namespace that are denied to a user.
public static RetrieveDenialsForNamespace ( UserInfo user, NamespaceInfo nspace ) : string[]
user UserInfo The user.
nspace NamespaceInfo The namespace (null for the root).
return string[]

RetrieveDenialsForPage() public static method

Gets all the actions for a page that are denied to a group.
public static RetrieveDenialsForPage ( UserGroup group, System.PageInfo page ) : string[]
group UserGroup The user group.
page System.PageInfo The page.
return string[]

RetrieveDenialsForPage() public static method

Gets all the actions for a page that are denied to a user.
public static RetrieveDenialsForPage ( UserInfo user, System.PageInfo page ) : string[]
user UserInfo The user.
page System.PageInfo The page.
return string[]

RetrieveGrantsForDirectory() public static method

Gets all the actions for a directory that are granted to a group.
public static RetrieveGrantsForDirectory ( UserGroup group, IFilesStorageProviderV30 provider, string directory ) : string[]
group UserGroup The user group.
provider IFilesStorageProviderV30 The provider.
directory string The directory.
return string[]

RetrieveGrantsForDirectory() public static method

Gets all the actions for a directory that are granted to a user.
public static RetrieveGrantsForDirectory ( UserInfo user, IFilesStorageProviderV30 provider, string directory ) : string[]
user UserInfo The user.
provider IFilesStorageProviderV30 The provider.
directory string The directory.
return string[]

RetrieveGrantsForGlobals() public static method

Gets all the actions for global resources that are granted to a group.
public static RetrieveGrantsForGlobals ( UserGroup group ) : string[]
group UserGroup The user group.
return string[]

RetrieveGrantsForGlobals() public static method

Gets all the actions for global resources that are granted to a user.
public static RetrieveGrantsForGlobals ( UserInfo user ) : string[]
user UserInfo The user.
return string[]

RetrieveGrantsForNamespace() public static method

Gets all the actions for a namespace that are granted to a group.
public static RetrieveGrantsForNamespace ( UserGroup group, NamespaceInfo nspace ) : string[]
group UserGroup The user group.
nspace NamespaceInfo The namespace (null for the root).
return string[]

RetrieveGrantsForNamespace() public static method

Gets all the actions for a namespace that are granted to a user.
public static RetrieveGrantsForNamespace ( UserInfo user, NamespaceInfo nspace ) : string[]
user UserInfo The user.
nspace NamespaceInfo The namespace (null for the root).
return string[]

RetrieveGrantsForPage() public static method

Gets all the actions for a page that are granted to a group.
public static RetrieveGrantsForPage ( UserGroup group, System.PageInfo page ) : string[]
group UserGroup The user group.
page System.PageInfo The page.
return string[]

RetrieveGrantsForPage() public static method

Gets all the actions for a page that are granted to a user.
public static RetrieveGrantsForPage ( UserInfo user, System.PageInfo page ) : string[]
user UserInfo The user.
page System.PageInfo The page.
return string[]

RetrieveSubjectsForDirectory() public static method

Retrieves the subjects that have ACL entries set for a directory.
public static RetrieveSubjectsForDirectory ( IFilesStorageProviderV30 provider, string directory ) : ScrewTurn.Wiki.SubjectInfo[]
provider IFilesStorageProviderV30 The provider.
directory string The directory.
return ScrewTurn.Wiki.SubjectInfo[]

RetrieveSubjectsForNamespace() public static method

Retrieves the subjects that have ACL entries set for a namespace.
public static RetrieveSubjectsForNamespace ( NamespaceInfo nspace ) : ScrewTurn.Wiki.SubjectInfo[]
nspace NamespaceInfo The namespace (null for the root).
return ScrewTurn.Wiki.SubjectInfo[]

RetrieveSubjectsForPage() public static method

Retrieves the subjects that have ACL entries set for a page.
public static RetrieveSubjectsForPage ( System.PageInfo page ) : ScrewTurn.Wiki.SubjectInfo[]
page System.PageInfo The page.
return ScrewTurn.Wiki.SubjectInfo[]