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.security.model.GroupHolder;
14:
15: //other classes
16:
17: public class SimpleGroupHolder implements GroupHolder {
18:
19: private String name = null;
20: private String securityType = null;
21:
22: private SimpleGroupHolder(String inName, String inSecurityType) {
23: //
24: this .name = inName;
25: this .securityType = inSecurityType;
26: }
27:
28: public final static SimpleGroupHolder newInstance(String inName,
29: String inSecurityType) {
30: //
31: SimpleGroupHolder outValue = null;
32:
33: outValue = new SimpleGroupHolder(inName, inSecurityType);
34:
35: return outValue;
36: }
37:
38: //
39: public String getName() {
40: return this .name;
41: }
42:
43: public String getSecurityType() {
44: return this.securityType;
45: }
46: }
|