com.ecyrd.jspwiki
Class PageLock

java.lang.Object
  extended by com.ecyrd.jspwiki.PageLock
All Implemented Interfaces:
Serializable

public class PageLock
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
PageLock(WikiPage page, String locker, Date acquired, Date expiry)
           
 
Method Summary
 Date getAcquisitionTime()
           
 Date getExpiryTime()
           
 String getLocker()
           
 String getPage()
           
 long getTimeLeft()
          Returns the amount of time left in minutes, rounded up to the nearest minute (so you get a zero only at the last minute).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageLock

public PageLock(WikiPage page,
                String locker,
                Date acquired,
                Date expiry)
Method Detail

getPage

public String getPage()

getLocker

public String getLocker()

getAcquisitionTime

public Date getAcquisitionTime()

getExpiryTime

public Date getExpiryTime()

getTimeLeft

public long getTimeLeft()
Returns the amount of time left in minutes, rounded up to the nearest minute (so you get a zero only at the last minute).