01: package org.romaframework.aspect.session;
02:
03: import java.util.Date;
04:
05: import org.romaframework.aspect.core.annotation.AnnotationConstants;
06: import org.romaframework.aspect.core.annotation.CoreClass;
07: import org.romaframework.aspect.view.annotation.ViewField;
08:
09: @CoreClass(orderFields="id source account created")
10: public class SessionInfo {
11: @ViewField(visible=AnnotationConstants.FALSE)
12: private Object id;
13:
14: @ViewField(enabled=AnnotationConstants.FALSE)
15: private String source;
16:
17: private SessionAccount account;
18:
19: @ViewField(enabled=AnnotationConstants.FALSE)
20: private Date created;
21:
22: @ViewField(visible=AnnotationConstants.FALSE)
23: private Object systemSession;
24:
25: public SessionInfo(Object iId) {
26: created = new Date();
27: id = iId;
28: }
29:
30: public SessionAccount getAccount() {
31: return account;
32: }
33:
34: public void setAccount(SessionAccount account) {
35: this .account = account;
36: }
37:
38: public Date getCreated() {
39: return created;
40: }
41:
42: public void setCreated(Date loggedOn) {
43: this .created = loggedOn;
44: }
45:
46: public Object getSystemSession() {
47: return systemSession;
48: }
49:
50: public void setSystemSession(Object systemSession) {
51: this .systemSession = systemSession;
52: }
53:
54: public Object getId() {
55: return id;
56: }
57:
58: public void setId(Object id) {
59: this .id = id;
60: }
61:
62: public void setSource(String iSource) {
63: source = iSource;
64: }
65:
66: public String getSource() {
67: return source;
68: }
69: }
|