Package org.uberfire.backend.server
Class VFSLockServiceImpl
- java.lang.Object
-
- org.uberfire.backend.server.VFSLockServiceImpl
-
- All Implemented Interfaces:
org.uberfire.backend.vfs.VFSLockService
@ApplicationScoped public class VFSLockServiceImpl extends Object implements org.uberfire.backend.vfs.VFSLockService
Errai RPC endpoint exposing aVFSLockService.
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOCK_SESSION_ATTRIBUTE_NAME
-
Constructor Summary
Constructors Constructor Description VFSLockServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uberfire.backend.vfs.impl.LockResultacquireLock(org.uberfire.backend.vfs.Path path)org.uberfire.backend.vfs.impl.LockResultforceReleaseLock(org.uberfire.backend.vfs.Path path)org.uberfire.backend.vfs.impl.LockResultreleaseLock(org.uberfire.backend.vfs.Path path)org.uberfire.backend.vfs.impl.LockInforetrieveLockInfo(org.uberfire.backend.vfs.Path path)List<org.uberfire.backend.vfs.impl.LockInfo>retrieveLockInfos(org.uberfire.backend.vfs.Path path, boolean excludeOwnedLocks)
-
-
-
Field Detail
-
LOCK_SESSION_ATTRIBUTE_NAME
public static final String LOCK_SESSION_ATTRIBUTE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
acquireLock
public org.uberfire.backend.vfs.impl.LockResult acquireLock(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException, UnsupportedOperationException- Specified by:
acquireLockin interfaceorg.uberfire.backend.vfs.VFSLockService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOExceptionUnsupportedOperationException
-
releaseLock
public org.uberfire.backend.vfs.impl.LockResult releaseLock(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException- Specified by:
releaseLockin interfaceorg.uberfire.backend.vfs.VFSLockService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOException
-
forceReleaseLock
public org.uberfire.backend.vfs.impl.LockResult forceReleaseLock(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException- Specified by:
forceReleaseLockin interfaceorg.uberfire.backend.vfs.VFSLockService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOException
-
retrieveLockInfo
public org.uberfire.backend.vfs.impl.LockInfo retrieveLockInfo(org.uberfire.backend.vfs.Path path) throws IllegalArgumentException, org.uberfire.java.nio.IOException- Specified by:
retrieveLockInfoin interfaceorg.uberfire.backend.vfs.VFSLockService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOException
-
retrieveLockInfos
public List<org.uberfire.backend.vfs.impl.LockInfo> retrieveLockInfos(org.uberfire.backend.vfs.Path path, boolean excludeOwnedLocks) throws IllegalArgumentException, org.uberfire.java.nio.IOException
- Specified by:
retrieveLockInfosin interfaceorg.uberfire.backend.vfs.VFSLockService- Throws:
IllegalArgumentExceptionorg.uberfire.java.nio.IOException
-
-