fr.paris.lutece.plugins.jcr.business.lock
Class JcrLock

java.lang.Object
  extended by fr.paris.lutece.plugins.jcr.business.lock.JcrLock
All Implemented Interfaces:
Serializable, javax.jcr.Credentials

public class JcrLock
extends Object
implements javax.jcr.Credentials

Implmentation of lock mechanism in JCR

See Also:
Serialized Form

Constructor Summary
JcrLock()
           
 
Method Summary
 Date getCreationDate()
           
 String getIdFile()
           
 String getIdLock()
          The id of the lock
 String getIdUser()
          The owner of the lock
 int getIdWorkspace()
          The workspace which contains the lock
 boolean isEmpty()
           
 void setCreationDate(Date creationDate)
           
 void setIdFile(String idFile)
           
 void setIdLock(String idLock)
          The id of the lock
 void setIdUser(String idUser)
          The owner of the lock
 void setIdWorkspace(int idWorkspace)
          The workspace which contains the lock
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JcrLock

public JcrLock()
Method Detail

getIdUser

public String getIdUser()
The owner of the lock

Returns:
the user id

setIdUser

public void setIdUser(String idUser)
The owner of the lock

Parameters:
idUser - the user id

getIdWorkspace

public int getIdWorkspace()
The workspace which contains the lock

Returns:
the workspace id

setIdWorkspace

public void setIdWorkspace(int idWorkspace)
The workspace which contains the lock

Parameters:
idWorkspace - the workspace id

getIdLock

public String getIdLock()
The id of the lock

Returns:
the lock id

setIdLock

public void setIdLock(String idLock)
The id of the lock

Parameters:
idLock - the lock id

isEmpty

public boolean isEmpty()
Returns:
true if a field is filled, false otherwise

toString

public String toString()
Overrides:
toString in class Object
Returns:
a string representation of this lock

getIdFile

public String getIdFile()
Returns:
the reference of this file

setIdFile

public void setIdFile(String idFile)
Parameters:
idFile - the reference of this file

getCreationDate

public Date getCreationDate()
Returns:
the creation date of this lock

setCreationDate

public void setCreationDate(Date creationDate)
Parameters:
creationDate - the creation date of this lock


Copyright © 2014 Mairie de Paris. All Rights Reserved.