public class ResourceLock extends Object implements Lock
Constructor and Description |
---|
ResourceLock(String pFragment,
String pComments) |
ResourceLock(String pFragment,
String pComments,
URI pPublicURI) |
ResourceLock(URI pPublicURI,
URI pPrivateURI,
String pFragment,
String pOwnerName,
URI pOwnerURI,
Date pCreatedDate,
String pComments,
Date pExpireDate) |
Modifier and Type | Method and Description |
---|---|
String |
getComments()
Accessor methods for getting/setting comments on lock resource.
|
Date |
getCreatedDate()
Gets creation date of this lock.
|
Date |
getExpireDate()
Gets expire date of this lock.
|
String |
getFragment()
Indication of type of lock (e.g.
|
String |
getOwnerName()
Convenience method to get name of owner/author of lock resource.
|
URI |
getOwnerURI()
Gets the URI of the owner of the lock.
|
URI |
getPrivateURI()
Private URI to resource governed by lock.
|
URI |
getPublicURI()
Public URI to resource governed by lock.
|
boolean |
impliesLockOf(String pFragment)
Tests if this lock implies that the given fragment is locked
|
void |
setPrivateURI(URI pPrivateURI)
This method is needed by the client side lock manager to identify its own locks.
|
String |
toString() |
public URI getPublicURI()
Lock
getPublicURI
in interface Lock
public URI getPrivateURI()
Lock
getPrivateURI
in interface Lock
public void setPrivateURI(URI pPrivateURI)
Lock
setPrivateURI
in interface Lock
pPrivateURI
- the private URI pointer to resource governed by this lock.public String getFragment()
Lock
getFragment
in interface Lock
public String getOwnerName()
Lock
getOwnerName
in interface Lock
public URI getOwnerURI()
Lock
getOwnerURI
in interface Lock
public Date getCreatedDate()
Lock
getCreatedDate
in interface Lock
public String getComments()
Lock
getComments
in interface Lock
public boolean impliesLockOf(String pFragment)
Lock
impliesLockOf
in interface Lock
pFragment
- the fragmenttrue
if locked, otherwise false
public Date getExpireDate()
Lock
getExpireDate
in interface Lock
© 1998- 2021 Escenic AS