CheckinTest
27282930313233
private Session guest; protected void setUp() throws Exception { super.setUp(); guest = helper.getRepository().login(new GuestCredentials()); }
274275276277278279280281
IOUtils.closeQuietly(writer); } } static SessionLockManager getSessionLockManager(SessionImpl session) throws RepositoryException { Workspace wsp = (Workspace) session.getWorkspace(); return (SessionLockManager) wsp.getLockManager(); }
45804581458245834584458545864587
throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException { // check state of this instance sanityCheck(); LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager(); return lockMgr.lock(getPath(), isDeep, isSessionScoped, Long.MAX_VALUE, null); }
45924593459445954596459745984599
public Lock getLock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, RepositoryException { // check state of this instance sanityCheck(); LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager(); return lockMgr.getLock(getPath()); }
46054606460746084609461046114612
throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException { // check state of this instance sanityCheck(); LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager(); lockMgr.unlock(getPath()); }
46154616461746184619462046214622
* {@inheritDoc} */ public boolean holdsLock() throws RepositoryException { // check state of this instance sanityCheck(); LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager(); return lockMgr.holdsLock(getPath()); }
46254626462746284629463046314632
* {@inheritDoc} */ public boolean isLocked() throws RepositoryException { // check state of this instance sanityCheck(); LockManager lockMgr = ((WorkspaceImpl) session.getWorkspace()).getLockManager(); return lockMgr.isLocked(getPath()); }
46494650465146524653465446554656
46614662466346644665466646674668