TWiki
>
TWiki/ Web
>
TWikiUsersDotPm
(revision 3) (raw view)
Edit
Attach
---+ Package =TWiki::Users= Singleton object that handles mapping of users to wikinames and vice versa, and user authentication checking. %TOC% ---++ ClassMethod *new* <tt>($session,$impl)</tt> Construct the user management object ---++ ObjectMethod *finish* <tt></tt> Complete processing after the client's HTTP request has been responded to. 1 breaking circular references to allow garbage collection in persistent environments ---++ ObjectMethod *findUser* <tt>($name[,$wikiname][,$nocreate]) -> $userObject</tt> * =$name= - login name or wiki name * =$wikiname= - optional, wikiname for created user * =$nocreate= - optional, disable creation of user object for user not found Find the user object corresponding to =$name=, which may be either a login name or a wiki name. If =$name= is found (either in the list of login names or the list of wiki names) the corresponding user object is returned. In this case =$wikiname= is ignored. If they are not found, and =$nocreate= is true, then return undef. If =$nocreate= is false, then a user object is returned even if the user is not known. If =$nocreate= is false, and no =$wikiname= is given, then the =$name= is used for both login name and wiki name. If nocreate is off, then a default user will be created with their wikiname set the same as their login name. This user/wiki name pair can be overridden by a later createUser call when the correct wikiname is known, if necessary. ---++ ObjectMethod *findUserByEmail* <tt>($email) -> \@users</tt> * =$email= - email address to look up Return a list of user objects for the users that have this email registered with the password manager. ---++ ObjectMethod *createUser* <tt>($login,$wikiname) -> $userobject</tt> Create a user, and insert them in the maps (overwriting any current entry). Use this instead of findUser when you want to be sure you are not going to pick up any default user created by findUser. All parameters are required. ---++ ObjectMethod *addUserToMapping* <tt>($user) -> $topicName</tt> Add a user to the persistant mapping that maps from usernames to wikinames and vice-versa.
Edit
|
Attach
|
P
rint version
|
H
istory
:
r5
<
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r3 - 16 Jan 2007 - 01:12:01 -
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