TWiki
>
TWiki/ Web
>
TWikiUsersBaseUserMappingDotPm
(03 Aug 2008,
TWikiContributor
)
(raw view)
E
dit
A
ttach
---+ Package =TWiki::Users::BaseUserMapping= User 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 * TWikiAdmin - uses the password that was set in Configure (IF its not null) * TWikiGuest * UnknownUser * TWikiContributor - 1 Jan 2005 * TWikiRegistrationAgent - 1 Jan 2005 ---+++ Groups * $TWiki::cfg{SuperAdminGroup} * TWikiBaseGroup %TOC% ---++ ClassMethod *new* <tt>($session)</tt> Construct the BaseUserMapping object ---++ ObjectMethod *finish* <tt>()</tt> Break circular references. ---++ ObjectMethod *loginTemplateName* <tt>() -> templateFile</tt> allows UserMappings to come with customised login screens - that should preffereably only over-ride the UI function ---++ ObjectMethod *handlesUser* <tt>($cUID,$login,$wikiname) -> $boolean</tt> See baseclass for documentation. In the BaseUserMapping case, we know all the details of the users we specialise in. ---++ ObjectMethod *login2cUID* <tt>($login) -> $cUID</tt> Convert 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* <tt>($cUID) -> login</tt> converts an internal cUID to that user's login (undef on failure) ---++ ObjectMethod *getWikiName* <tt>($cUID) -> wikiname</tt> Map a canonical user name to a wikiname ---++ ObjectMethod *userExists* <tt>($user) -> $boolean</tt> Determine if the user already exists or not. ---++ ObjectMethod *eachUser* <tt>() -> listIteratorofcUIDs</tt> See baseclass for documentation. ---++ ObjectMethod *eachGroupMember* <tt>($group) -> listIteratorofcUIDs</tt> See baseclass for documentation. The basemapper implementation assumes that there are no nested groups in the basemapper. ---++ ObjectMethod *isGroup* <tt>($name) -> boolean</tt> See baseclass for documentation. ---++ ObjectMethod *eachGroup* <tt>() -> ListIteratorofgroupnames</tt> See baseclass for documentation. ---++ ObjectMethod *eachMembership* <tt>($cUID) -> ListIteratorofgroupsthisuserisin</tt> See baseclass for documentation. ---++ ObjectMethod *isAdmin* <tt>($cUID) -> $boolean</tt> True if the user is an admin * is a member of the $TWiki::cfg{SuperAdminGroup} ---++ ObjectMethod *getEmails* <tt>($name) -> @emailAddress</tt> If $name is a cUID, return their email addresses. If it is a group, return the addresses of everyone in the group. ---++ ObjectMethod *findUserByWikiName* <tt>($wikiname) -> listofcUIDsassociatedwiththatwikiname</tt> See baseclass for documentation. ---++ ObjectMethod *checkPassword* <tt>($login,$passwordU) -> $boolean</tt> Finds if the password is valid for the given user. Returns 1 on success, undef on failure. ---++ ObjectMethod *setPassword* <tt>($cUID,$newPassU,$oldPassU) -> $boolean</tt> If the $oldPassU matches matches the user's password, then it will replace it with $newPassU. If $oldPassU is not correct and not 1, will return 0. If $oldPassU is 1, will force the change irrespective of the existing password, adding the user if necessary. Otherwise returns 1 on success, undef on failure. ---++ ObjectMethod *passwordError* <tt>() -> $string</tt> returns a string indicating the error that happened in the password handlers TODO: these delayed error's should be replaced with Exceptions. returns undef if no error
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 03 Aug 2008 - 19:17:44 -
TWikiContributor
TWiki/
Log In
or
Register
TWiki/ Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Abacos
Acbahia
AnpedGT16
ArcoDigital
Argumento
Avsan
CalculoB
Ceb
Cetad
CetadObserva
Cibercultura
Ciberfem
CiberParque
ColoquioCiags
Coloquiofasa
ConexoesSaberes
Cpdteste
Cppd
Creche
Cridi
Da
DACN
DCE
DelzaTeste
DeniseCarla
DepHistoria
DicionarioBelasartes
Ecologia
EDC
Educandow
EduMus
EleicoesReitor2010
Encima
Enearte
Estruturas
EstruturasEng
FACED
FAT
FepFaced
GEC
GeneticaBiodiversidade
GeneticaBiodiversidade3
GeneticaBiodiversidade
Gepindi
GetecEng
Godofredofilho
GrupoAlgebra
ICI010
Informev
Ites
LabioComp
LEG
Lepeja
Letras
LivroLivreSalvador
Main
MaisUm
Mata07
Mefes
MefesCpd
MetaReciclagem
Neclif
NelsonPretto
Nuclear
Numcad
Nutricao
Observa
OrfaosdeRua
PauloCostaLima
PdI
PescandoLetras
PETFilosofia
Pgif
PGNUT
PortalPpga
PosCultura
Pospetroigeo
PPGAC
PPGE
PpggBio
Ppggenbio
Pretto
Proad
PROGESP
ProjetoLencois
Quimica
RadioFACED
RadioTeatro
RadioWeb
Riosymposium10
Ripe
Salasdoctai
Sat
Sedu
SemBio
SeminarioPibid
SimoneLucena
Sociologia
SSL
Tabuleiro
TabuleirosUfba
TCinema
TerritoriosDigitais
TWiki
Twikidea
UFBAIrece
UniversidadeNova
VizinhoEstrangeiro
XIISNHCT
Български
English
Español
日本語
Português
Copyright � by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback