1 13 package org.jahia.services.lock; 14 15 import java.util.ArrayList ; 16 import java.io.Serializable ; 17 18 29 public class LockPrerequisitesResult implements Serializable { 30 31 public LockPrerequisitesResult(LockKey lockKeyResult) { 32 this.resultsList = new ArrayList (); 33 this.showDetails = false; 34 } 35 36 protected void put(LockKey lockKey) { 37 this.resultsList.add(lockKey); 38 } 39 40 public ArrayList 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 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 |