|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Read-And-Write interface describing a repository sub manager for locking. Resources may be locked shallow or deep (in the resource hierarchy), exclusiv or shared (concerning concurrent access) and for reading or writing. Shallow locks affect only the given resource handle (content, properties, etc. and the namespace, not the resources, below the resource), where deep locks effect also the descendents in the resource hierarchy. Exclusive locks block any other lock from being obtained on the given resource handle and block any unlocked access. Shared locks block any exclusive lock from being obtained on the given resource handle and block any unlocked access too, but allow for further shared locks. Write locks block any other lock from being obtained on the given resource handle and block any unlocked access. Read locks block any write lock from being obtained on the given resource handle and block any unlocked access too, but allow for further read locks.
| Method Summary | |
ILockInfo |
lock(IResourceHandle resourceHandle,
ILockDescriptor lockDescriptor)
Lock a resource (content, properties, etc. and the namespace, not the resources, below the resource). |
ILockInfo |
refreshLock(IResourceHandle resourceHandle,
String lockToken)
Refresh, i.e. reset the timer of the given lock for a given resource handle until the lock is released automatically. |
void |
unlock(IResourceHandle resourceHandle,
String lockToken)
Unlock a resource (content, properties, etc. and the namespace, not the resources, below the resource). |
| Methods inherited from interface com.sap.netweaver.bc.rf.mi.lock.ILockManager |
getLocks |
| Method Detail |
public ILockInfo lock(IResourceHandle resourceHandle,
ILockDescriptor lockDescriptor)
throws ResourceException
resourceHandle - resource handlelockDescriptor - lock descriptor object describing the properties of
the lock
ResourceException - when the lock can't be obtained
public void unlock(IResourceHandle resourceHandle,
String lockToken)
throws ResourceException
resourceHandle - resource handlelockToken - lock token identifying the lock
ResourceException - when the lock can't be released
public ILockInfo refreshLock(IResourceHandle resourceHandle,
String lockToken)
throws ResourceException
resourceHandle - resource handlelockToken - lock token identifying the lock
ResourceException - when the lock can't be refreshed
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||