|
SAP NetWeaver 7.40 Enterprise Portal (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ILockHandle
The interface that helps to protect the current object against concurrent changes.
Cooperative locking is assumed, meaning it is the responsibility of the application to
obey the lock and not to perform any changes if the lock could not be acquired.
| Nested Class Summary | |
|---|---|
static class |
ILockHandle.LockInfo
The class that describes the current state of a lock. |
| Method Summary | |
|---|---|
ILockHandle.LockInfo |
getLockInfo()
Gets the lock information for this object. |
boolean |
refreshLock(String userId,
String sessionId)
Indicates whether the lock is still owned by the specified user and session and updates the time of last access, extending the protection span to the default initial value. |
boolean |
releaseLock(String userId,
String sessionId)
Releases the lock for the current object. |
boolean |
setLock(String userId,
String sessionId,
String description)
Sets the lock for the current object. |
boolean |
takeLock(String userId,
String sessionId,
String description)
Attempts to acquire the lock for the current object even though the object is locked for a different user or session. |
| Method Detail |
|---|
boolean setLock(String userId,
String sessionId,
String description)
userId - the ID of the user, as returned from IPrincipal.getUniqueID()sessionId - an application defined parameter that could allow, for example, to distinguish between different
editor instancesdescription - a description of the locking application
ILockHandle.LockInfo getLockInfo()
boolean releaseLock(String userId,
String sessionId)
userId - the ID of the user, as returned from IPrincipal.getUniqueID()sessionId - an application defined parameter that could allow for example to distinguish between different editor instances
boolean refreshLock(String userId,
String sessionId)
userId - the ID of the user, as returned from IPrincipal.getUniqueID()sessionId - an application defined parameter that could allow for example to distinguish between different editor instances
boolean takeLock(String userId,
String sessionId,
String description)
userId - the ID of the user, as returned from IPrincipal.getUniqueID()sessionId - an application defined parameter that could allow for example to distinguish between different editor instancesdescription - a description of the locking application
| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-RUNTIME
|
[sap.com] tc/ep/semantics/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/pcm/admin/public/api
|
api
|
EP-PIN
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 Enterprise Portal (SP02) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||