Tags:
tag this topic
create new tag
view all tags
---+!! Making webs autonomous %TOC% ---++ Motivation On a large TWiki site having thousands of webs, each web should be as self-service as possible so that TWiki administrators' work is minimized. ---++ Features for web autonomy You can have the following features by providing specific methods in your user mapping manager class. * Granting a set of users privilege to do anything on any topic regardless of access control setting. Let's call the set of users "web admins", which is analogous to Main.TWikiAdminGroup members who can do anything to any topic regardless of access control setting. * Making =%<nop>WIKIWEBMASTER%= and =%<nop>WIKIWEBMASTERNAME%= web dependent. They are used on the Access Denied page and other pages as contact. ---++ Specifying web admins - isAdmin() The =isAdmin()= method in a user mapping manager normaly recognizes only one argument, =$cUID=. (e.g. !TWikiUserMapping's) However, the upstream code hands two additional arguments, namely the topic and web names of the topic currently being processed. As such, =isAdmin()= can be web and topic dependent, which makes it possible to have web admins. ---++ Web specific WIKIWEBMASTER and WIKIWEBMASTERNAME Optionally, a user mapping manager can have the =wikiWebMaster= object method taking the following arguments. * web name * topic name * name or email (true means name. false means email) If the =wikiWebMaster= does not exist or returns a null string (""), =%<nop>WIKIWEBMASTER%= and =%<nop>WIKIWEBMASTERNAME%= are expanded to ={WebMasterName}= and ={WebMasterEmail}= values respectively. ---++ Data source =isAdmin()= and =wikiWebMaster()= need data source to work. The data source needs be outside of the web. Otherwise, there is a possibility of the web admins lose access to the web by some change to the web. MetadataRepository is one way to have metadata of a web outside the web. In an example on MetadataRepository, a TWiki group specified by the =admin= field of the web's record is the web admins. Another way is to put such a data on a topic or topics in the %SYSTEMWEB% web and make them editable only by TWiki Administrators. __Related Topics:__ AdminDocumentationCategory, TWikiAccessControl, MetadataRepository, LargeSite, UserMasquerading
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2012-12-26
-
TWikiContributor
Home
Site map
Main web
Sandbox web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
E
dit
A
ttach
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.AutonomousWebs
.