C# 클래스 ScrewTurn.Wiki.AuthWriter

Utility class for writing permissions and authorizations.
파일 보기 프로젝트 열기: mono/ScrewTurnWiki 1 사용 예제들

Private Properties

프로퍼티 타입 설명
GetLogMessage string
RemoveEntriesForDirectory bool
RemoveEntriesForGlobals bool
RemoveEntriesForNamespace bool
RemoveEntriesForPage bool
SetPermissionForDirectory bool
SetPermissionForGlobals bool
SetPermissionForNamespace bool
SetPermissionForPage bool

공개 메소드들

메소드 설명
ClearEntriesForDirectory ( IFilesStorageProviderV30 provider, string directory ) : void

Clears all the ACL entries for a directory.

ClearEntriesForNamespace ( string nspace, List pages ) : void

Clears all the ACL entries for a namespace.

ClearEntriesForPage ( string page ) : void

Clears all the ACL entries for a page.

ProcessDirectoryRenaming ( IFilesStorageProviderV30 provider, string oldName, string newName ) : bool

Processes the renaming of a directory.

The method does not recurse in sub-directories.

ProcessNamespaceRenaming ( string oldName, List oldPages, string newName ) : bool

Processes the renaming of a namespace.

ProcessPageRenaming ( string oldName, string newName ) : bool

Processes the renaming of a page.

RemoveEntriesForDirectory ( UserGroup group, IFilesStorageProviderV30 provider, string directory ) : bool

Removes all the ACL Entries for a directory that are bound to a user group.

RemoveEntriesForDirectory ( UserInfo user, IFilesStorageProviderV30 provider, string directory ) : bool

Removes all the ACL Entries for a directory that are bound to a user.

RemoveEntriesForGlobals ( UserGroup group ) : bool

Removes all the ACL Entries for global resources that are bound to a user group.

RemoveEntriesForGlobals ( UserInfo user ) : bool

Removes all the ACL Entries for global resources that are bound to a user.

RemoveEntriesForNamespace ( UserGroup group, NamespaceInfo nspace ) : bool

Removes all the ACL Entries for a namespace that are bound to a user group.

RemoveEntriesForNamespace ( UserInfo user, NamespaceInfo nspace ) : bool

Removes all the ACL Entries for a namespace that are bound to a user.

RemoveEntriesForPage ( UserGroup group, PageInfo page ) : bool

Removes all the ACL Entries for a page that are bound to a user group.

RemoveEntriesForPage ( UserInfo user, PageInfo page ) : bool

Removes all the ACL Entries for a page that are bound to a user.

SetPermissionForDirectory ( AuthStatus status, IFilesStorageProviderV30 provider, string directory, string action, UserGroup group ) : bool

Sets a permission for a directory.

SetPermissionForDirectory ( AuthStatus status, IFilesStorageProviderV30 provider, string directory, string action, UserInfo user ) : bool

Sets a permission for a directory.

SetPermissionForGlobals ( AuthStatus status, string action, UserGroup group ) : bool

Sets a permission for a global resource.

SetPermissionForGlobals ( AuthStatus status, string action, UserInfo user ) : bool

Sets a permission for a global resource.

SetPermissionForNamespace ( AuthStatus status, NamespaceInfo nspace, string action, UserGroup group ) : bool

Sets a permission for a namespace.

SetPermissionForNamespace ( AuthStatus status, NamespaceInfo nspace, string action, UserInfo user ) : bool

Sets a permission for a namespace.

SetPermissionForPage ( AuthStatus status, PageInfo page, string action, UserGroup group ) : bool

Sets a permission for a page.

SetPermissionForPage ( AuthStatus status, PageInfo page, string action, UserInfo user ) : bool

Sets a permission for a page.

비공개 메소드들

메소드 설명
GetLogMessage ( string resourcePrefix, string resource, string action, string subject, string status ) : string

Gets the log message for an ACL entry change.

RemoveEntriesForDirectory ( string subject, IFilesStorageProviderV30 provider, string directory ) : bool

Removes all the ACL Entries for a directory that are bound to a subject.

RemoveEntriesForGlobals ( string subject ) : bool

Removes all the ACL Entries for global resources that are bound to a subject.

RemoveEntriesForNamespace ( string subject, NamespaceInfo nspace ) : bool

Removes all the ACL Entries for a namespace that are bound to a subject.

RemoveEntriesForPage ( string subject, PageInfo page ) : bool

Removes all the ACL Entries for a page that are bound to a subject.

SetPermissionForDirectory ( AuthStatus status, IFilesStorageProviderV30 provider, string directory, string action, string subject ) : bool

Sets a permission for a directory.

SetPermissionForGlobals ( AuthStatus status, string action, string subject ) : bool

Sets a permission for a global resource.

SetPermissionForNamespace ( AuthStatus status, NamespaceInfo nspace, string action, string subject ) : bool

Sets a permission for a namespace.

SetPermissionForPage ( AuthStatus status, PageInfo page, string action, string subject ) : bool

Sets a permission for a page.

메소드 상세

ClearEntriesForDirectory() 공개 정적인 메소드

Clears all the ACL entries for a directory.
public static ClearEntriesForDirectory ( IFilesStorageProviderV30 provider, string directory ) : void
provider IFilesStorageProviderV30 The provider.
directory string The directory.
리턴 void

ClearEntriesForNamespace() 공개 정적인 메소드

Clears all the ACL entries for a namespace.
public static ClearEntriesForNamespace ( string nspace, List pages ) : void
nspace string The namespace.
pages List The local names of the pages in the namespace.
리턴 void

ClearEntriesForPage() 공개 정적인 메소드

Clears all the ACL entries for a page.
public static ClearEntriesForPage ( string page ) : void
page string The page full name.
리턴 void

ProcessDirectoryRenaming() 공개 정적인 메소드

Processes the renaming of a directory.
The method does not recurse in sub-directories.
public static ProcessDirectoryRenaming ( IFilesStorageProviderV30 provider, string oldName, string newName ) : bool
provider IFilesStorageProviderV30 The provider.
oldName string The old directory name (full path).
newName string The new directory name (full path).
리턴 bool

ProcessNamespaceRenaming() 공개 정적인 메소드

Processes the renaming of a namespace.
public static ProcessNamespaceRenaming ( string oldName, List oldPages, string newName ) : bool
oldName string The old name of the namespace.
oldPages List The list of local names of the pages in the renamed namespace.
newName string The new name of the namespace.
리턴 bool

ProcessPageRenaming() 공개 정적인 메소드

Processes the renaming of a page.
public static ProcessPageRenaming ( string oldName, string newName ) : bool
oldName string The old full page name.
newName string The new full page name.
리턴 bool

RemoveEntriesForDirectory() 공개 정적인 메소드

Removes all the ACL Entries for a directory that are bound to a user group.
public static RemoveEntriesForDirectory ( UserGroup group, IFilesStorageProviderV30 provider, string directory ) : bool
group UserGroup The group.
provider IFilesStorageProviderV30 The provider.
directory string The directory.
리턴 bool

RemoveEntriesForDirectory() 공개 정적인 메소드

Removes all the ACL Entries for a directory that are bound to a user.
public static RemoveEntriesForDirectory ( UserInfo user, IFilesStorageProviderV30 provider, string directory ) : bool
user UserInfo The user.
provider IFilesStorageProviderV30 The provider.
directory string The directory.
리턴 bool

RemoveEntriesForGlobals() 공개 정적인 메소드

Removes all the ACL Entries for global resources that are bound to a user group.
public static RemoveEntriesForGlobals ( UserGroup group ) : bool
group UserGroup The user group.
리턴 bool

RemoveEntriesForGlobals() 공개 정적인 메소드

Removes all the ACL Entries for global resources that are bound to a user.
public static RemoveEntriesForGlobals ( UserInfo user ) : bool
user UserInfo The user.
리턴 bool

RemoveEntriesForNamespace() 공개 정적인 메소드

Removes all the ACL Entries for a namespace that are bound to a user group.
public static RemoveEntriesForNamespace ( UserGroup group, NamespaceInfo nspace ) : bool
group UserGroup The user group.
nspace NamespaceInfo The namespace (null for the root).
리턴 bool

RemoveEntriesForNamespace() 공개 정적인 메소드

Removes all the ACL Entries for a namespace that are bound to a user.
public static RemoveEntriesForNamespace ( UserInfo user, NamespaceInfo nspace ) : bool
user UserInfo The user.
nspace NamespaceInfo The namespace (null for the root).
리턴 bool

RemoveEntriesForPage() 공개 정적인 메소드

Removes all the ACL Entries for a page that are bound to a user group.
public static RemoveEntriesForPage ( UserGroup group, PageInfo page ) : bool
group UserGroup The user group.
page PageInfo The page.
리턴 bool

RemoveEntriesForPage() 공개 정적인 메소드

Removes all the ACL Entries for a page that are bound to a user.
public static RemoveEntriesForPage ( UserInfo user, PageInfo page ) : bool
user UserInfo The user.
page PageInfo The page.
리턴 bool

SetPermissionForDirectory() 공개 정적인 메소드

Sets a permission for a directory.
public static SetPermissionForDirectory ( AuthStatus status, IFilesStorageProviderV30 provider, string directory, string action, UserGroup group ) : bool
status AuthStatus The authorization status.
provider IFilesStorageProviderV30 The provider that handles the directory.
directory string The directory.
action string The action of which to modify the authorization status.
group UserGroup The group subject of the authorization change.
리턴 bool

SetPermissionForDirectory() 공개 정적인 메소드

Sets a permission for a directory.
public static SetPermissionForDirectory ( AuthStatus status, IFilesStorageProviderV30 provider, string directory, string action, UserInfo user ) : bool
status AuthStatus The authorization status.
provider IFilesStorageProviderV30 The provider that handles the directory.
directory string The directory.
action string The action of which to modify the authorization status.
user UserInfo The user subject of the authorization change.
리턴 bool

SetPermissionForGlobals() 공개 정적인 메소드

Sets a permission for a global resource.
public static SetPermissionForGlobals ( AuthStatus status, string action, UserGroup group ) : bool
status AuthStatus The authorization status.
action string The action of which to modify the authorization status.
group UserGroup The group subject of the authorization change.
리턴 bool

SetPermissionForGlobals() 공개 정적인 메소드

Sets a permission for a global resource.
public static SetPermissionForGlobals ( AuthStatus status, string action, UserInfo user ) : bool
status AuthStatus The authorization status.
action string The action of which to modify the authorization status.
user UserInfo The user subject of the authorization change.
리턴 bool

SetPermissionForNamespace() 공개 정적인 메소드

Sets a permission for a namespace.
public static SetPermissionForNamespace ( AuthStatus status, NamespaceInfo nspace, string action, UserGroup group ) : bool
status AuthStatus The authorization status.
nspace NamespaceInfo The namespace (null for the root).
action string The action of which to modify the authorization status.
group UserGroup The group subject of the authorization change.
리턴 bool

SetPermissionForNamespace() 공개 정적인 메소드

Sets a permission for a namespace.
public static SetPermissionForNamespace ( AuthStatus status, NamespaceInfo nspace, string action, UserInfo user ) : bool
status AuthStatus The authorization status.
nspace NamespaceInfo The namespace (null for the root).
action string The action of which to modify the authorization status.
user UserInfo The user subject of the authorization change.
리턴 bool

SetPermissionForPage() 공개 정적인 메소드

Sets a permission for a page.
public static SetPermissionForPage ( AuthStatus status, PageInfo page, string action, UserGroup group ) : bool
status AuthStatus The authorization status.
page PageInfo The page.
action string The action of which to modify the authorization status.
group UserGroup The group subject of the authorization change.
리턴 bool

SetPermissionForPage() 공개 정적인 메소드

Sets a permission for a page.
public static SetPermissionForPage ( AuthStatus status, PageInfo page, string action, UserInfo user ) : bool
status AuthStatus The authorization status.
page PageInfo The page.
action string The action of which to modify the authorization status.
user UserInfo The user subject of the authorization change.
리턴 bool