01: /*
02: * This file is part of the WfMOpen project.
03: * Copyright (C) 2001-2005 Danet GmbH (www.danet.de), BU BTS.
04: * All rights reserved.
05: *
06: * This program is free software; you can redistribute it and/or modify
07: * it under the terms of the GNU General Public License as published by
08: * the Free Software Foundation; either version 2 of the License, or
09: * (at your option) any later version.
10: *
11: * This program is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14: * GNU General Public License for more details.
15: *
16: * You should have received a copy of the GNU General Public License
17: * along with this program; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * $Id: RmsEntry.java,v 1.4 2007/03/27 21:59:44 mlipp Exp $
21: *
22: * $Log: RmsEntry.java,v $
23: * Revision 1.4 2007/03/27 21:59:44 mlipp
24: * Fixed lots of checkstyle warnings.
25: *
26: * Revision 1.3 2006/10/03 17:03:33 mlipp
27: * Clarified method names.
28: *
29: * Revision 1.2 2006/09/29 12:32:09 drmlipp
30: * Consistently using WfMOpen as projct name now.
31: *
32: * Revision 1.1 2006/09/24 20:57:17 mlipp
33: * Moved RMS implementations in own sub-package.
34: *
35: * Revision 1.1 2006/07/10 13:47:08 drmlipp
36: * Implemented EisRmsService.
37: *
38: */
39: package de.danet.an.workflow.rmsimpls.eisrms.aci;
40:
41: import java.io.Serializable;
42:
43: /**
44: * This class describes a resource.
45: *
46: * @author Michael Lipp
47: */
48: public final class RmsEntry implements Serializable {
49: private static final long serialVersionUID = 7399764838215176803L;
50:
51: public static final int RESOURCE_TYPE_USER = 1;
52: public static final int RESOURCE_TYPE_GROUP = 2;
53: public static final int RESOURCE_TYPE_ROLE = 3;
54:
55: private int type;
56: private String key;
57: private String displayName;
58:
59: /**
60: * @param type
61: * @param key
62: * @param name
63: */
64: public RmsEntry(int type, String key, String displayName) {
65: super ();
66: this .type = type;
67: this .key = key;
68: this .displayName = displayName;
69: }
70:
71: /**
72: * @return Returns the key.
73: */
74: public String getKey() {
75: return key;
76: }
77:
78: /**
79: * @return Returns the name.
80: */
81: public String getDisplayName() {
82: return displayName;
83: }
84:
85: /**
86: * @return Returns the type.
87: */
88: public int getType() {
89: return type;
90: }
91: }
|