Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/xpn/xwiki/doc/XWikiLock.java


1   package com.xpn.xwiki.doc;
2   
3   import java.util.Date;
4   
5   /**
6    * Created by IntelliJ IDEA.
7    * User: Alex
8    * Date: 17 mars 2005
9    * Time: 15:33:41
10   * To change this template use File | Settings | File Templates.
11   */
12  public class XWikiLock extends Object {
13      protected String userName;
14      protected long docId;
15      protected Date date;
16      public XWikiLock(long docId, String userName) {
17          this.setDocId(docId);
18          this.setUserName(userName);
19          this.setDate(new Date());
20      }
21  
22      public XWikiLock()
23      {
24          this.setDate(null);
25          this.setUserName(null);
26          this.setDocId(0);
27      }
28  
29      public String getUserName() {
30          return userName;
31      }
32  
33      public void setUserName(String userName) {
34          this.userName = userName;
35      }
36  
37      public long getDocId() {
38          return docId;
39      }
40  
41      public void setDocId(long docId) {
42          this.docId = docId;
43      }
44  
45      public Date getDate() {
46          return date;
47      }
48  
49      public void setDate(Date date) {
50          this.date = date;
51      }
52  }