com.liferay.portal.service
Interface LockLocalService
- All Known Implementing Classes:
- LockLocalServiceWrapper
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface LockLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portal.service.impl.LockLocalServiceImpl
}.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
- Author:
- Brian Wing Shun Chan
- See Also:
LockLocalServiceUtil
- Generated:
Method Summary |
Lock |
addLock(Lock lock)
|
void |
clear()
|
Lock |
createLock(long lockId)
|
void |
deleteLock(Lock lock)
|
void |
deleteLock(long lockId)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Lock |
getLock(long lockId)
|
Lock |
getLock(java.lang.String className,
long key)
|
Lock |
getLock(java.lang.String className,
java.lang.String key)
|
java.util.List<Lock> |
getLocks(int start,
int end)
|
int |
getLocksCount()
|
boolean |
hasLock(long userId,
java.lang.String className,
long key)
|
boolean |
hasLock(long userId,
java.lang.String className,
java.lang.String key)
|
boolean |
isLocked(java.lang.String className,
long key)
|
boolean |
isLocked(java.lang.String className,
java.lang.String key)
|
Lock |
lock(long userId,
java.lang.String className,
long key,
java.lang.String owner,
boolean inheritable,
long expirationTime)
|
Lock |
lock(long userId,
java.lang.String className,
java.lang.String key,
java.lang.String owner,
boolean inheritable,
long expirationTime)
|
Lock |
refresh(java.lang.String uuid,
long expirationTime)
|
void |
unlock(java.lang.String className,
long key)
|
void |
unlock(java.lang.String className,
java.lang.String key)
|
Lock |
updateLock(Lock lock)
|
Lock |
updateLock(Lock lock,
boolean merge)
|
addLock
Lock addLock(Lock lock)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
createLock
Lock createLock(long lockId)
deleteLock
void deleteLock(long lockId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteLock
void deleteLock(Lock lock)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getLock
@Transactional(propagation=SUPPORTS,
readOnly=true)
Lock getLock(long lockId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getLocks
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Lock> getLocks(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getLocksCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getLocksCount()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateLock
Lock updateLock(Lock lock)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateLock
Lock updateLock(Lock lock,
boolean merge)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
clear
void clear()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getLock
@Transactional(propagation=SUPPORTS,
readOnly=true)
Lock getLock(java.lang.String className,
long key)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getLock
@Transactional(propagation=SUPPORTS,
readOnly=true)
Lock getLock(java.lang.String className,
java.lang.String key)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
hasLock
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasLock(long userId,
java.lang.String className,
long key)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
hasLock
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean hasLock(long userId,
java.lang.String className,
java.lang.String key)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isLocked
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean isLocked(java.lang.String className,
long key)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
isLocked
@Transactional(propagation=SUPPORTS,
readOnly=true)
boolean isLocked(java.lang.String className,
java.lang.String key)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lock
Lock lock(long userId,
java.lang.String className,
long key,
java.lang.String owner,
boolean inheritable,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
lock
Lock lock(long userId,
java.lang.String className,
java.lang.String key,
java.lang.String owner,
boolean inheritable,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
refresh
Lock refresh(java.lang.String uuid,
long expirationTime)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
unlock
void unlock(java.lang.String className,
long key)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
unlock
void unlock(java.lang.String className,
java.lang.String key)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException