1 /*******************************************************************************
2 * Imixs Workflow
3 * Copyright (C) 2001, 2011 Imixs Software Solutions GmbH,
4 * http://www.imixs.com
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (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 GNU
14 * General Public License for more details.
15 *
16 * You can receive a copy of the GNU General Public
17 * License at http://www.gnu.org/licenses/gpl.html
18 *
19 * Project:
20 * http://www.imixs.org
21 * http://java.net/projects/imixs-workflow
22 *
23 * Contributors:
24 * Imixs Software Solutions GmbH - initial API and implementation
25 * Ralph Soika - Software Developer
26 *******************************************************************************/
27
28 package org.imixs.workflow.jee.jpa;
29
30 import javax.persistence.GeneratedValue;
31 import javax.persistence.Id;
32
33
34 /**
35 * A AccessEntity defines a single Entry in the Access List of the Entity Class.
36 * An AccessEntity is defined by its entityID which is a unique primary key and
37 * its entry which is a String value containing the entryValue. This is typical
38 * a UserName or a Role Name defined in the ejb-jar.xml
39 *
40 * @see org.imixs.workflow.jee.jpa.Entity
41 * @author Ralph Soika
42 * @version 1.0
43 *
44 */
45 @javax.persistence.Entity
46 public class WriteAccess implements java.io.Serializable {
47
48 /**
49 * default serial id
50 */
51 private static final long serialVersionUID = 1L;
52
53 @SuppressWarnings("unused")
54 @Id
55 @GeneratedValue
56 private int id;
57
58 private String value;
59
60 @SuppressWarnings("unused")
61 private WriteAccess() {
62 }
63
64 public WriteAccess(String value) {
65 this.value = value;
66 }
67
68 public String getValue() {
69 return value;
70 }
71
72 public void setValue(String value) {
73 this.value = value;
74 }
75
76
77
78 }