Package
User mapping is the process by which TWiki maps from a username (a login name) to a wikiname and back. It is also
where groups are maintained.
By default TWiki maintains user topics and group topics in the Main that
define users and group. These topics are | ||||||||
Added: | ||||||||
> > | ||||||||
Complete processing after the client's HTTP request has been responded
to.
ObjectMethod getListOfGroups () -> @listOfUserObjects
Get a list of groups defined by the mapping manager. By default,
TWiki defines groups using topics in the Main web. Subclasses should
override this to list groups from their own databases.
Returns a list of TWiki::User objects, one per group.
ObjectMethod addUserToMapping ($user,$addingUser) -> $topicNameAdd a user to the persistant mapping that maps from usernames to wikinames and vice-versa. The default implementation uses a special topic called "TWikiUsers" in the users web. Subclasses will provide other implementations (usually stubs if they have other ways of mapping usernames to wikinames). Group names must be acceptable to $TWiki::cfg{NameFilter} $user is the user being added. $addingUser is the user doing the adding.ObjectMethod lookupLoginName ($username) -> $wikiNameMap a username to the corresponding wikiname. This is used for lookups during user resolution, and should be as fast as possible.Objectmethod lookupWikiName($wikiname) -> $usernameMap a wikiname to the corresponding username. This is used for lookups during user resolution, and should be as fast as possible. ObjectMethod getListOfAllWikiNames () -> @wikinames
Returns a list of all wikinames of users known to the mapping manager.
ObjectMethod groupMembers ($group) -> @members
Return a list of user objects that are members of this group. Should only be
called on groups.
Note that groups may be defined recursively, so a group may contain other
groups. This method should only return users i.e. all contained groups
should be fully expanded.
ObjectMethod isGroup ($user) -> booleanEstablish if a user object refers to a user group or not. The default implementation is to check if the wikiname of the user ends with 'Group'. Subclasses may override this behaviour to provide alternative interpretations. The $TWiki::cfg{SuperAdminGroup} is recognized as a group no matter what it's name is. |
Package
User mapping is the process by which TWiki maps from a username (a login name) to a wikiname and back. It is also
where groups are maintained.
By default TWiki maintains user topics and group topics in the Main that
define users and group. These topics are |