KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > lock > LockPrerequisitesResult


1 //
2
// ____.
3
// __/\ ______| |__/\. _______
4
// __ .____| | \ | +----+ \
5
// _______| /--| | | - \ _ | : - \_________
6
// \\______: :---| : : | : | \________>
7
// |__\---\_____________:______: :____|____:_____\
8
// /_____|
9
//
10
// . . . i n j a h i a w e t r u s t . . .
11
//
12

13 package org.jahia.services.lock;
14
15 import java.util.ArrayList JavaDoc;
16 import java.io.Serializable JavaDoc;
17
18 /**
19  * <p>Title: Jahia locking system implementation.</p>
20  * <p>Description:
21  * In the case it is impossible to obtain a lock, this class store the lock
22  * prerequisites result in an array list.
23  * </p>
24  * <p>Copyright: MAP (Jahia Solutions Sàrl 2003)</p>
25  * <p>Company: Jahia Solutions Sàrl</p>
26  * @author MAP
27  * @version 1.0
28  */

29 public class LockPrerequisitesResult implements Serializable JavaDoc {
30
31     public LockPrerequisitesResult(LockKey lockKeyResult) {
32         this.resultsList = new ArrayList JavaDoc();
33         this.showDetails = false;
34     }
35
36     protected void put(LockKey lockKey) {
37         this.resultsList.add(lockKey);
38     }
39
40     public ArrayList JavaDoc getResultsList() {
41         return this.resultsList;
42     }
43
44     public void setShowDetails(boolean showDetails) {
45         this.showDetails = showDetails;
46     }
47
48     public boolean shouldShowDetails() {
49         return showDetails;
50     }
51
52     public int size() {
53         return this.resultsList.size();
54     }
55
56     private ArrayList JavaDoc resultsList;
57     private boolean showDetails;
58
59     private static org.apache.log4j.Logger logger =
60             org.apache.log4j.Logger.getLogger(LockKey.class);
61
62 }
63
Popular Tags