View Javadoc

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   * A AccessEntity defines a single Entry in the Access List of the Entity Class.
35   * An AccessEntity is defined by its entityID which is a unique primary key and
36   * its entry which is a String value containing the entryValue. This is typical
37   * a UserName or a Role Name defined in the ejb-jar.xml
38   * 
39   * @see org.imixs.workflow.jee.jpa.Entity
40   * @author Ralph Soika
41   * @version 1.0
42   * 
43   */
44  @javax.persistence.Entity
45  public class ReadAccess implements java.io.Serializable {
46  
47  	/**
48  	 *  default serial id
49  	 */
50  	private static final long serialVersionUID = 1L;
51  
52  	@SuppressWarnings("unused")
53  	@Id
54  	@GeneratedValue
55  	private int id;
56  	
57  	private String value;
58  
59  	@SuppressWarnings("unused")
60  	private ReadAccess() {
61  	}
62  
63  	public ReadAccess(String value) {
64  		this.value = value;
65  	}
66  	
67  	public String getValue() {
68  		return value;
69  	}
70  
71  	public void setValue(String value) {
72  		this.value = value;
73  	}
74  	
75  	
76  }