01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: *
17: */
18:
19: /* $Id: CheckInEntry.java 564264 2007-08-09 16:28:15Z andreas $ */
20:
21: package org.apache.lenya.cms.rc;
22:
23: /**
24: * A checkin entry
25: */
26: public class CheckInEntry extends RCMLEntry {
27: /**
28: * Creates a new CheckInEntry object.
29: * @param sessionId The session ID.
30: * @param identity The identity to use
31: * @param time The time
32: * @param version The version number.
33: * @param backup If this entry has a backup.
34: */
35: public CheckInEntry(String sessionId, String identity, long time,
36: int version, boolean backup) {
37: super (sessionId, identity, time);
38: setType(RCML.ci);
39: this .version = version;
40: this .backup = backup;
41: }
42:
43: /**
44: * @return The version number.
45: */
46: public int getVersion() {
47: return this .version;
48: }
49:
50: private int version = 0;
51: private boolean backup;
52:
53: public boolean hasBackup() {
54: return this.backup;
55: }
56:
57: }
|