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

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/GeneralModelObject.java/ – Rev 925

Subversion Repositories general

Rev

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

Rev Author Line No. Line
924 dev 1
package ak.hostadmiral.core.model;
919 dev 2
 
3
import java.util.Date;
924 dev 4
import ak.hostadmiral.util.ModelException;
5
import ak.hostadmiral.util.ModelSecurityException;
919 dev 6
 
7
public abstract class GeneralModelObject
8
	implements ModelObject
9
{
10
	private Boolean enabled;
11
	private String  comment;
12
	private Date    modStamp;
918 dev 13
	private User    modUser;
919 dev 14
 
918 dev 15
	/**
16
	 *
919 dev 17
	 * @hibernate.property
18
	 */
19
	public Boolean getEnabled()
20
	{
21
		return enabled;
22
	}
23
 
921 dev 24
	protected void setEnabled(Boolean enabled)
919 dev 25
	{
26
		this.enabled = enabled;
27
	}
28
 
29
	public void setEnabled(User editor, Boolean enabled)
30
		throws ModelException
31
	{
32
		if(!editableBy(editor))
33
			throw new ModelSecurityException();
34
 
35
		this.enabled = enabled;
36
	}
37
 
38
	/**
39
	 *
40
	 * @hibernate.property
41
	 */
42
	public String getComment()
43
	{
44
		return comment;
45
	}
46
 
921 dev 47
	protected void setComment(String comment)
919 dev 48
	{
49
		this.comment = comment;
50
	}
51
 
52
	public void setComment(User editor, String comment)
53
		throws ModelException
54
	{
55
		if(!editableBy(editor))
56
			throw new ModelSecurityException();
57
 
58
		this.comment = comment;
59
	}
60
 
61
	/**
62
	 *
63
	 * @hibernate.timestamp column="mod_stamp"
64
	 */
65
	public Date getModStamp()
66
	{
67
		return modStamp;
68
	}
69
 
70
	protected void setModStamp(Date modStamp)
71
	{
72
		this.modStamp = modStamp;
73
	}
74
 
75
	/**
76
	 *
918 dev 77
	 * @hibernate.many-to-one column="mod_user"
78
	 */
79
	public User getModUser()
80
	{
81
		return modUser;
82
	}
83
 
84
	protected void setModUser(User modUser)
85
	{
86
		this.modUser = modUser;
87
	}
919 dev 88
}