C# Класс ScrewTurn.Wiki.AuthReader

Utility class for reading permissions and authorizations.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
RetrieveDenialsForDirectory string[]
RetrieveDenialsForGlobals string[]
RetrieveDenialsForNamespace string[]
RetrieveDenialsForPage string[]
RetrieveGrantsForDirectory string[]
RetrieveGrantsForGlobals string[]
RetrieveGrantsForNamespace string[]
RetrieveGrantsForPage string[]

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

RetrieveDenialsForDirectory() публичный статический Метод

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.
Результат string[]

RetrieveDenialsForDirectory() публичный статический Метод

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.
Результат string[]

RetrieveDenialsForGlobals() публичный статический Метод

Gets all the actions for global resources that are denied to a group.
public static RetrieveDenialsForGlobals ( UserGroup group ) : string[]
group UserGroup The user group.
Результат string[]

RetrieveDenialsForGlobals() публичный статический Метод

Gets all the actions for global resources that are denied to a user.
public static RetrieveDenialsForGlobals ( UserInfo user ) : string[]
user UserInfo The user.
Результат string[]

RetrieveDenialsForNamespace() публичный статический Метод

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).
Результат string[]

RetrieveDenialsForNamespace() публичный статический Метод

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).
Результат string[]

RetrieveDenialsForPage() публичный статический Метод

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.
Результат string[]

RetrieveDenialsForPage() публичный статический Метод

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.
Результат string[]

RetrieveGrantsForDirectory() публичный статический Метод

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.
Результат string[]

RetrieveGrantsForDirectory() публичный статический Метод

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.
Результат string[]

RetrieveGrantsForGlobals() публичный статический Метод

Gets all the actions for global resources that are granted to a group.
public static RetrieveGrantsForGlobals ( UserGroup group ) : string[]
group UserGroup The user group.
Результат string[]

RetrieveGrantsForGlobals() публичный статический Метод

Gets all the actions for global resources that are granted to a user.
public static RetrieveGrantsForGlobals ( UserInfo user ) : string[]
user UserInfo The user.
Результат string[]

RetrieveGrantsForNamespace() публичный статический Метод

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).
Результат string[]

RetrieveGrantsForNamespace() публичный статический Метод

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).
Результат string[]

RetrieveGrantsForPage() публичный статический Метод

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.
Результат string[]

RetrieveGrantsForPage() публичный статический Метод

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.
Результат string[]

RetrieveSubjectsForDirectory() публичный статический Метод

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.
Результат ScrewTurn.Wiki.SubjectInfo[]

RetrieveSubjectsForNamespace() публичный статический Метод

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).
Результат ScrewTurn.Wiki.SubjectInfo[]

RetrieveSubjectsForPage() публичный статический Метод

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.
Результат ScrewTurn.Wiki.SubjectInfo[]