Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "date" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Warning: Attempt to read property "msg" on null in /home/www/websvn.26th.net/html/blame.php on line 247

Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /home/www/websvn.26th.net/html/blame.php on line 247
WebSVN – general – Blame – /hostadmiral/trunk/src/ak/hostadmiral/core/model/SystemUser.java/ – Rev 911

Subversion Repositories general

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
904 dev 1
package ak.hostcaptain.core.model;
899 dev 2
 
3
import java.util.Date;
4
 
5
/**
6
 *
7
 * @hibernate.class table="systemusers"
8
 */
9
public class SystemUser
10
	implements ModelObject
11
{
12
	private Long    id;
13
 
14
	/** user id in the OS */
15
	private Integer uid;
16
	private String  name;
911 dev 17
	private User    owner;
899 dev 18
	private Date    modStamp;
19
 
20
	protected SystemUser()
21
	{
22
	}
23
 
24
	/**
25
	 *
26
	 * @hibernate.id generator-class="native"
27
	 */
28
	public Long getId()
29
	{
30
		return id;
31
	}
32
 
33
	public void setId(Long id)
34
	{
35
		this.id = id;
36
	}
37
 
38
	/**
39
	 *
40
	 * @hibernate.property
41
	 */
42
	public Integer getUid()
43
	{
44
		return uid;
45
	}
46
 
47
	public void setUid(Integer uid)
48
	{
49
		this.uid = uid;
50
	}
51
 
52
	/**
53
	 *
54
	 * @hibernate.property
55
	 */
56
	public String getName()
57
	{
58
		return name;
59
	}
60
 
61
	public void setName(String name)
62
	{
63
		this.name = name;
64
	}
911 dev 65
 
66
	/**
67
	 *
68
	 * @hibernate.many-to-one
69
	 */
70
	public User getOwner()
71
	{
72
		return owner;
73
	}
74
 
75
	public void setOwner(User owner)
76
	{
77
		this.owner = owner;
78
	}
79
 
899 dev 80
	/**
81
	 *
82
	 * @hibernate.timestamp column="mod_stamp"
83
	 */
84
	public Date getModStamp()
85
	{
86
		return modStamp;
87
	}
88
 
89
	public void setModStamp(Date modStamp)
90
	{
91
		this.modStamp = modStamp;
92
	}
93
 
94
	public String getTypeKey()
95
	{
904 dev 96
		return ak.hostcaptain.core.CoreResources.TYPE_SYSTEM_USER;
899 dev 97
	}
98
 
99
	public String getIdentificationString()
100
	{
101
		return getName() + " (" + getUid() + ")"; // FIXME: is it really so good style?
102
	}
103
}