public class KcPessimisticLockServiceImpl extends Object implements KcPessimisticLockService
| Constructor and Description |
|---|
KcPessimisticLockServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clearExpiredLocks()
Retrieve all of the locks from the database.
|
protected Collection<org.kuali.rice.krad.document.authorization.PessimisticLock> |
getAllLocks()
Get all of the Pessimistic Locks from the database.
|
protected long |
getCurrentTime()
Get the current time in milliseconds.
|
protected long |
getExpirationAgeMillis()
Get the timeout period in milliseconds.
|
protected int |
getLockExpirationAge()
Get the Lock Expiration Age parameter value from the system parameters.
|
protected String |
getParameterValue(String key)
Get a proposal development system parameter value.
|
void |
setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Set the Business Object Service.
|
void |
setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
Set the Date Time Service.
|
void |
setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
Sets the ParameterService.
|
public void setParameterService(org.kuali.rice.coreservice.framework.parameter.ParameterService parameterService)
parameterService - the parameter service.public void setDateTimeService(org.kuali.rice.core.api.datetime.DateTimeService dateTimeService)
dateTimeService - the date time servicepublic void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
businessObjectService - the business object service@Transactional public void clearExpiredLocks()
clearExpiredLocks in interface KcPessimisticLockServiceKcPessimisticLockService.clearExpiredLocks()protected Collection<org.kuali.rice.krad.document.authorization.PessimisticLock> getAllLocks()
protected long getCurrentTime()
protected long getExpirationAgeMillis()
protected int getLockExpirationAge()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.