
| Line: 122 to 122 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > | ObjectMethod getUserData ($cUID) -> $dataRefReturn a reference to an array of hashes with user data, used to manage users. Each item is a hash with:
| |||||||
ObjectMethod *findUserByWikiName ($wikiname) -> listofcUIDsassociatedwiththatwikinameSee baseclass for documentation. | ||||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > | Package =TWiki::Users::BaseUserMappingUser mapping is the process by which TWiki maps from a username (a login name) to a display name and back. It is also where groups are maintained. The BaseMapper provides support for a small number of predefined users. No registration - this is a read only usermapper. It uses the mapper prefix 'BaseUserMapping_'.Users
Groups
On this page:
ClassMethod new ($session)Construct the BaseUserMapping objectObjectMethod finish ()Break circular references.ObjectMethod *loginTemplateName () -> templateFileallows UserMappings to come with customised login screens - that should preffereably only over-ride the UI functionObjectMethod handlesUser ($cUID,$login,$wikiname) -> $booleanSee baseclass for documentation. In the BaseUserMapping case, we know all the details of the users we specialise in.ObjectMethod login2cUID ($login) -> $cUIDConvert a login name to the corresponding canonical user name. The canonical name can be any string of 7-bit alphanumeric and underscore characters, and must correspond 1:1 to the login name. (undef on failure)ObjectMethod getLoginName ($cUID) -> loginconverts an internal cUID to that user's login (undef on failure)ObjectMethod getWikiName ($cUID) -> wikinameMap a canonical user name to a wikinameObjectMethod userExists ($user) -> $booleanDetermine if the user already exists or not.ObjectMethod eachUser () -> listIteratorofcUIDsSee baseclass for documentation.ObjectMethod *eachGroupMember ($group) -> listIteratorofcUIDsSee baseclass for documentation. The basemapper implementation assumes that there are no nested groups in the basemapper.ObjectMethod isGroup ($name) -> booleanSee baseclass for documentation.ObjectMethod eachGroup () -> ListIteratorofgroupnamesSee baseclass for documentation.ObjectMethod eachMembership ($cUID) -> ListIteratorofgroupsthisuserisinSee baseclass for documentation.ObjectMethod isAdmin ($cUID) -> $booleanTrue if the user is an admin
ObjectMethod getEmails ($name) -> @emailAddress
If $name is a cUID, return their email addresses. If it is a group,
return the addresses of everyone in the group.
| |||||||