1 16 package org.apache.cocoon.components.source.helpers; 17 18 import java.util.Date ; 19 20 26 public class SourceLock { 27 28 private String subject; 29 private String type; 30 private Date expiration; 31 private boolean inheritable; 32 private boolean exclusive; 33 34 43 public SourceLock(String subject, String type, Date expiration, 44 boolean inheritable, boolean exclusive) { 45 46 this.subject = subject; 47 this.type = type; 48 this.expiration = expiration; 49 this.inheritable = inheritable; 50 this.exclusive = exclusive; 51 } 52 53 58 public void setSubject(String subject) { 59 this.subject = subject; 60 } 61 62 67 public String getSubject() { 68 return this.subject; 69 } 70 71 76 public void setType(String type) { 77 this.type = type; 78 } 79 80 85 public String getType() { 86 return this.type; 87 } 88 89 94 public void setExpiration(Date expiration) { 95 this.expiration = expiration; 96 } 97 98 103 public Date getExpiration() { 104 return this.expiration; 105 } 106 107 112 public void setInheritable(boolean inheritable) { 113 this.inheritable = inheritable; 114 } 115 116 121 public boolean isInheritable() { 122 return this.inheritable; 123 } 124 125 130 public void setExclusive(boolean exclusive) { 131 this.exclusive = exclusive; 132 } 133 134 139 public boolean isExclusive() { 140 return this.exclusive; 141 } 142 } 143 | Popular Tags |