1055
|
1 |
"{ Package: 'stx:goodies/monticello' }"
|
|
2 |
|
|
3 |
"{ NameSpace: Smalltalk }"
|
|
4 |
|
|
5 |
Object subclass:#MCServerCredentials
|
|
6 |
instanceVariableNames:'username password'
|
|
7 |
classVariableNames:''
|
|
8 |
poolDictionaries:''
|
|
9 |
category:'SCM-Monticello-RemoteRepositories'
|
|
10 |
!
|
|
11 |
|
|
12 |
MCServerCredentials comment:'I store a username and password.
|
|
13 |
'
|
|
14 |
!
|
|
15 |
|
|
16 |
|
|
17 |
!MCServerCredentials class methodsFor:'instance creation'!
|
|
18 |
|
|
19 |
user: nameString password: passwordString
|
|
20 |
|
|
21 |
^ self new
|
|
22 |
username: nameString;
|
|
23 |
password: passwordString;
|
|
24 |
yourself.
|
|
25 |
! !
|
|
26 |
|
|
27 |
!MCServerCredentials methodsFor:'accessing'!
|
|
28 |
|
|
29 |
password
|
|
30 |
|
|
31 |
^ password.
|
|
32 |
!
|
|
33 |
|
|
34 |
username
|
|
35 |
|
|
36 |
^ username.
|
|
37 |
! !
|
|
38 |
|
|
39 |
!MCServerCredentials methodsFor:'private'!
|
|
40 |
|
|
41 |
password: aString
|
|
42 |
|
|
43 |
password := aString.
|
|
44 |
!
|
|
45 |
|
|
46 |
username: aString
|
|
47 |
|
|
48 |
username := aString.
|
|
49 |
! !
|
|
50 |
|
|
51 |
!MCServerCredentials class methodsFor:'documentation'!
|
|
52 |
|
|
53 |
version
|
|
54 |
^ '$Header$'
|
|
55 |
!
|
|
56 |
|
|
57 |
version_CVS
|
|
58 |
^ '$Header$'
|
|
59 |
! !
|
|
60 |
|