@ProviderType @Transactional(isolation=PORTAL, rollbackFor={PortalException.class,SystemException.class}) public interface LockLocalService extends BaseLocalService, PersistedModelLocalService
LockLocalServiceUtil,
LockLocalServiceBaseImpl,
com.liferay.portal.service.impl.LockLocalServiceImpl| Modifier and Type | Method and Description |
|---|---|
Lock |
addLock(Lock lock)
Adds the lock to the database.
|
void |
clear() |
Lock |
createLock(long lockId)
Creates a new lock with the primary key.
|
Lock |
deleteLock(Lock lock)
Deletes the lock from the database.
|
Lock |
deleteLock(long lockId)
Deletes the lock with the primary key from the database.
|
DynamicQuery |
dynamicQuery() |
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
java.util.List |
dynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery)
Returns the number of rows that match the dynamic query.
|
long |
dynamicQueryCount(DynamicQuery dynamicQuery,
Projection projection)
Returns the number of rows that match the dynamic query.
|
Lock |
fetchLock(long lockId) |
Lock |
fetchLockByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the lock with the matching UUID and company.
|
java.lang.String |
getBeanIdentifier()
Returns the Spring bean ID for this bean.
|
Lock |
getLock(long lockId)
Returns the lock with the primary key.
|
Lock |
getLock(java.lang.String className,
long key) |
Lock |
getLock(java.lang.String className,
java.lang.String key) |
Lock |
getLockByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns the lock with the matching UUID and company.
|
java.util.List<Lock> |
getLocks(int start,
int end)
Returns a range of all the locks.
|
int |
getLocksCount()
Returns the number of locks.
|
PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
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 |
lock(java.lang.String className,
java.lang.String key,
java.lang.String owner) |
Lock |
lock(java.lang.String className,
java.lang.String key,
java.lang.String owner,
boolean retrieveFromCache)
Deprecated.
As of 6.2.0, replaced by
lock(String, String,
String) |
Lock |
lock(java.lang.String className,
java.lang.String key,
java.lang.String expectedOwner,
java.lang.String updatedOwner) |
Lock |
lock(java.lang.String className,
java.lang.String key,
java.lang.String expectedOwner,
java.lang.String updatedOwner,
boolean retrieveFromCache)
Deprecated.
As of 6.2.0, replaced by
lock(String, String, String,
String) |
Lock |
refresh(java.lang.String uuid,
long companyId,
long expirationTime) |
void |
setBeanIdentifier(java.lang.String beanIdentifier)
Sets the Spring bean ID for this bean.
|
void |
unlock(java.lang.String className,
long key) |
void |
unlock(java.lang.String className,
java.lang.String key) |
void |
unlock(java.lang.String className,
java.lang.String key,
java.lang.String owner) |
void |
unlock(java.lang.String className,
java.lang.String key,
java.lang.String owner,
boolean retrieveFromCache)
Deprecated.
As of 6.2.0, replaced by
unlock(String, String,
String) |
Lock |
updateLock(Lock lock)
Updates the lock in the database or adds it if it does not yet exist.
|
@Indexable(type=REINDEX) Lock addLock(Lock lock) throws SystemException
lock - the lockSystemException - if a system exception occurredLock createLock(long lockId)
lockId - the primary key for the new lock@Indexable(type=DELETE) Lock deleteLock(long lockId) throws PortalException, SystemException
lockId - the primary key of the lockPortalException - if a lock with the primary key could not be foundSystemException - if a system exception occurred@Indexable(type=DELETE) Lock deleteLock(Lock lock) throws SystemException
lock - the lockSystemException - if a system exception occurredDynamicQuery dynamicQuery()
java.util.List dynamicQuery(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredjava.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LockModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)SystemException - if a system exception occurredjava.util.List dynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LockModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)SystemException - if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery) throws SystemException
dynamicQuery - the dynamic querySystemException - if a system exception occurredlong dynamicQueryCount(DynamicQuery dynamicQuery, Projection projection) throws SystemException
dynamicQuery - the dynamic queryprojection - the projection to apply to the querySystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) Lock fetchLock(long lockId) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) Lock fetchLockByUuidAndCompanyId(java.lang.String uuid, long companyId) throws SystemException
uuid - the lock's UUIDcompanyId - the primary key of the companynull if a matching lock could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) Lock getLock(long lockId) throws PortalException, SystemException
lockId - the primary key of the lockPortalException - if a lock with the primary key could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj) throws PortalException, SystemException
getPersistedModel in interface PersistedModelLocalServicePortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) Lock getLockByUuidAndCompanyId(java.lang.String uuid, long companyId) throws PortalException, SystemException
uuid - the lock's UUIDcompanyId - the primary key of the companyPortalException - if a matching lock could not be foundSystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<Lock> getLocks(int start, int end) throws SystemException
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from LockModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start - the lower bound of the range of locksend - the upper bound of the range of locks (not inclusive)SystemException - if a system exception occurred@Transactional(propagation=SUPPORTS, readOnly=true) int getLocksCount() throws SystemException
SystemException - if a system exception occurred@Indexable(type=REINDEX) Lock updateLock(Lock lock) throws SystemException
lock - the lockSystemException - if a system exception occurredjava.lang.String getBeanIdentifier()
void setBeanIdentifier(java.lang.String beanIdentifier)
beanIdentifier - the Spring bean ID for this beanvoid clear()
throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) Lock getLock(java.lang.String className, long key) throws PortalException, SystemException
PortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) Lock getLock(java.lang.String className, java.lang.String key) throws PortalException, SystemException
PortalExceptionSystemException@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasLock(long userId, java.lang.String className, long key) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) boolean hasLock(long userId, java.lang.String className, java.lang.String key) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) boolean isLocked(java.lang.String className, long key) throws SystemException
SystemException@Transactional(propagation=SUPPORTS, readOnly=true) boolean isLocked(java.lang.String className, java.lang.String key) throws SystemException
SystemExceptionLock lock(long userId, java.lang.String className, long key, java.lang.String owner, boolean inheritable, long expirationTime) throws PortalException, SystemException
PortalExceptionSystemExceptionLock lock(long userId, java.lang.String className, java.lang.String key, java.lang.String owner, boolean inheritable, long expirationTime) throws PortalException, SystemException
PortalExceptionSystemException@MasterDataSource @Transactional(propagation=REQUIRES_NEW) Lock lock(java.lang.String className, java.lang.String key, java.lang.String owner) throws SystemException
SystemException@MasterDataSource @Transactional(propagation=REQUIRES_NEW) Lock lock(java.lang.String className, java.lang.String key, java.lang.String owner, boolean retrieveFromCache) throws SystemException
lock(String, String,
String)SystemException@MasterDataSource @Transactional(propagation=REQUIRES_NEW) Lock lock(java.lang.String className, java.lang.String key, java.lang.String expectedOwner, java.lang.String updatedOwner) throws SystemException
SystemException@MasterDataSource @Transactional(propagation=REQUIRES_NEW) Lock lock(java.lang.String className, java.lang.String key, java.lang.String expectedOwner, java.lang.String updatedOwner, boolean retrieveFromCache) throws SystemException
lock(String, String, String,
String)SystemExceptionLock refresh(java.lang.String uuid, long companyId, long expirationTime) throws PortalException, SystemException
PortalExceptionSystemExceptionvoid unlock(java.lang.String className,
long key)
throws SystemException
SystemExceptionvoid unlock(java.lang.String className,
java.lang.String key)
throws SystemException
SystemException@MasterDataSource @Transactional(propagation=REQUIRES_NEW) void unlock(java.lang.String className, java.lang.String key, java.lang.String owner) throws SystemException
SystemException@MasterDataSource @Transactional(propagation=REQUIRES_NEW) void unlock(java.lang.String className, java.lang.String key, java.lang.String owner, boolean retrieveFromCache) throws SystemException
unlock(String, String,
String)SystemException