1 17 package org.alfresco.service.cmr.lock; 18 19 import java.util.Collection ; 20 import java.util.List ; 21 22 import org.alfresco.service.cmr.repository.NodeRef; 23 import org.alfresco.service.cmr.repository.StoreRef; 24 25 26 31 public interface LockService 32 { 33 49 public void lock(NodeRef nodeRef, LockType lockType) 50 throws UnableToAquireLockException; 51 52 74 public void lock(NodeRef nodeRef, LockType lockType, int timeToExpire) 75 throws UnableToAquireLockException; 76 77 105 public void lock(NodeRef nodeRef, LockType lockType, int timeToExpire, boolean lockChildren) 106 throws UnableToAquireLockException; 107 108 132 public void lock(Collection <NodeRef> nodeRefs, LockType lockType, int timeToExpire) 133 throws UnableToAquireLockException; 134 135 146 public void unlock(NodeRef nodeRef) 147 throws UnableToReleaseLockException; 148 149 169 public void unlock(NodeRef nodeRef, boolean lockChildren) 170 throws UnableToReleaseLockException; 171 172 190 public void unlock(Collection <NodeRef> nodeRefs) 191 throws UnableToReleaseLockException; 192 193 201 public LockStatus getLockStatus(NodeRef nodeRef); 202 203 214 public LockType getLockType(NodeRef nodeRef); 215 216 225 public void checkForLock(NodeRef nodeRef); 226 227 233 public List <NodeRef> getLocks(StoreRef storeRef); 234 235 243 public List <NodeRef> getLocks(StoreRef storeRef, LockType lockType); 244 } 245 | Popular Tags |