blob: bbbe8c78060a733d3685a0185c2db864e669da4f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
package org.openslx.imagemaster.session;
/**
* Represents a user. Should be extended and given an according static method to
* instantiate by loading data from some backend.
*
*/
public abstract class User
{
public final String eppn, organizationId;
public final String password;
public final String firstName, lastName;
public final String eMail;
public final String satelliteAddress;
public final int userId;
protected User( int userId, String eppn, String password, String organization, String firstName, String lastName, String eMail,
String satelliteAddress )
{
this.userId = userId;
this.eppn = eppn;
this.organizationId = organization;
this.password = password;
this.firstName = firstName;
this.lastName = lastName;
this.eMail = eMail;
this.satelliteAddress = satelliteAddress;
}
@Override
public String toString()
{
final StringBuilder sb = new StringBuilder( this.eppn );
sb.append( " (" );
sb.append( this.organizationId );
sb.append( "): " );
sb.append( this.firstName );
sb.append( ' ' );
sb.append( this.lastName );
sb.append( ' ' );
sb.append( this.eMail );
if ( this.satelliteAddress != null ) {
sb.append( ' ' );
sb.append( this.satelliteAddress );
}
return sb.toString();
}
public String getLogin()
{
return eppn;
}
}
|