01: /*
02: * Copyright 2006 Pentaho Corporation. All rights reserved.
03: * This software was developed by Pentaho Corporation and is provided under the terms
04: * of the Mozilla Public License, Version 1.1, or any later version. You may not use
05: * this file except in compliance with the license. If you need a copy of the license,
06: * please go to http://www.mozilla.org/MPL/MPL-1.1.txt. The Original Code is the Pentaho
07: * BI Platform. The Initial Developer is Pentaho Corporation.
08: *
09: * Software distributed under the Mozilla Public License is distributed on an "AS IS"
10: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. Please refer to
11: * the license for the specific language governing your rights and limitations.
12: */
13: package org.pentaho.repository.content;
14:
15: import org.pentaho.core.repository.IBackgroundExecutedContentId;
16:
17: public class BackgroundExecutedContentId implements
18: IBackgroundExecutedContentId {
19:
20: private static final long serialVersionUID = -6839129181355560217L;
21:
22: public static final int ClassVersionNumber = 1;
23:
24: private String id;
25:
26: private String userName;
27:
28: private int revision = -1; // Hibernate Revision
29:
30: protected BackgroundExecutedContentId() {
31: // Default empty constructor for Hibernate
32: }
33:
34: protected BackgroundExecutedContentId(String userName, String id) {
35: this .userName = userName;
36: this .id = id;
37: }
38:
39: public String getId() {
40: return id;
41: }
42:
43: public String getUserName() {
44: return userName;
45: }
46:
47: public void setId(String id) {
48: this .id = id;
49: }
50:
51: public void setUserName(String userName) {
52: this .userName = userName;
53: }
54:
55: public int getRevision() {
56: return this .revision;
57: }
58:
59: public void setRevision(int revision) {
60: this.revision = revision;
61: }
62:
63: }
|