|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.wcm.repository.LockInfo
public class LockInfo
This object represents an active lock on a resource.
Copyright 2004 SAP AG
| Field Summary | |
|---|---|
protected XMLMarkup |
clientSuppliedOwner
|
protected Date |
created
|
protected LockDepth |
depth
|
protected Date |
expiration
|
static int |
LOCK_TIMEOUT_INFINITE
|
protected String |
lockToken
|
protected String |
owner
|
protected LockScope |
scope
|
protected int |
timeout
Timeout in seconds |
protected LockType |
type
|
| Constructor Summary | |
|---|---|
LockInfo(LockType type,
LockScope scope,
LockDepth depth,
String owner,
int timeout,
String lockToken)
|
|
LockInfo(LockType type,
LockScope scope,
LockDepth depth,
String owner,
int timeout,
String lockToken,
Date created)
|
|
LockInfo(LockType type,
LockScope scope,
LockDepth depth,
String owner,
int timeout,
String lockToken,
Date created,
XMLMarkup ownerInfoFromClient)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compare this LockInfo with another one or with a String (token) |
XMLMarkup |
getClientSuppliedOwner()
A client can submit his own owner information that SHOULD be returned upon lock discovery. |
Date |
getCreated()
|
LockDepth |
getDepth()
|
Date |
getExpiration()
The date and time when the lock will expire. |
String |
getLockToken()
The lock token must be either an absolute URI (as defined in RFC2396 or a relative URI reference (in which case the opaquelocktoken URI scheme is assumed). |
String |
getOwner()
Returns the unique id of the lock owner. |
LockScope |
getScope()
|
int |
getTimeout()
|
LockType |
getType()
|
int |
hashCode()
|
long |
timeRemaining()
The time remaining until the lock expires. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int LOCK_TIMEOUT_INFINITE
protected LockType type
protected LockScope scope
protected LockDepth depth
protected String owner
protected XMLMarkup clientSuppliedOwner
protected String lockToken
protected int timeout
protected Date expiration
protected Date created
| Constructor Detail |
|---|
public LockInfo(LockType type,
LockScope scope,
LockDepth depth,
String owner,
int timeout,
String lockToken,
Date created,
XMLMarkup ownerInfoFromClient)
type - lock typescope - lock scopedepth - lock depthowner - lock ownertimeout - timeout in secondslockToken - The lock token must be either an absolute URI (as defined
in RFC2396 or a
relative URI reference (in which case the
opaquelocktoken URI scheme is assumed).created - creation timeownerInfoFromClient - A client can submit his own owner information
that SHOULD be returned upon lock discovery. If present, the format
MUST be the XML serialization of a DAV:owner element.
public LockInfo(LockType type,
LockScope scope,
LockDepth depth,
String owner,
int timeout,
String lockToken,
Date created)
public LockInfo(LockType type,
LockScope scope,
LockDepth depth,
String owner,
int timeout,
String lockToken)
| Method Detail |
|---|
public LockType getType()
getType in interface ILockInfoLockType of lock.public LockScope getScope()
getScope in interface ILockInfoLockScope of lock.public LockDepth getDepth()
getDepth in interface ILockInfoLockDepth of lock.public String getOwner()
getOwner in interface ILockInfopublic int getTimeout()
getTimeout in interface ILockInfopublic XMLMarkup getClientSuppliedOwner()
ILockInfo
getClientSuppliedOwner in interface ILockInfonull
if not available).public Date getExpiration()
getExpiration in interface ILockInfopublic long timeRemaining()
timeRemaining in interface ILockInfopublic String getLockToken()
ILockInfo
getLockToken in interface ILockInfopublic Date getCreated()
getCreated in interface ILockInfopublic boolean equals(Object o)
equals in class Objecto - TBD: Description of the incoming method parameter
public int hashCode()
hashCode in class Object| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] KMC-CM
|
[sap.com] tc/km/frwk
|
api
|
EP-KM-CM
|
[sap.com] KMC-WPC
|
[sap.com] tc/kmc/wpc/wpcfacade
|
api
|
EP-PIN-WPC-WCM
|
|
SAP NetWeaver 7.40 SP 07 KMC | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||