01: /*
02: * JFolder, Copyright 2001-2006 Gary Steinmetz
03: *
04: * Distributable under LGPL license.
05: * See terms of license at gnu.org.
06: */
07:
08: package org.jfolder.security.model;
09:
10: //base classes
11:
12: //project specific classes
13: import org.jfolder.common.entity.properties.SystemEntityProperties;
14: import org.jfolder.security.model.UserHolder;
15:
16: //other classes
17:
18: public class SimpleUserHolder implements UserHolder {
19:
20: //
21: private UserIdentity userIdentity = null;
22: private SystemEntityProperties sep = null;
23:
24: private SimpleUserHolder(UserIdentity inUi,
25: SystemEntityProperties inSep) {
26: this .userIdentity = inUi;
27: this .sep = inSep;
28: }
29:
30: public final static SimpleUserHolder newInstance(UserIdentity inUi,
31: SystemEntityProperties inSep) {
32:
33: return new SimpleUserHolder(inUi, inSep);
34: }
35:
36: public UserIdentity getUserIdentity() {
37: return this .userIdentity;
38: }
39:
40: public SystemEntityProperties getUserProperties() {
41: return this .sep;
42: }
43:
44: public String toString() {
45: return ("UserHolder(identity = '" + this .userIdentity
46: + "', properties = '" + this .sep + "')");
47: }
48: }
|