|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.liquidsite.core.content.PersistentObject
org.liquidsite.core.content.Lock
A content object lock.
| Field Summary |
| Fields inherited from class org.liquidsite.core.content.PersistentObject |
BINDERS, LOWER_CASE, NUMBERS, UPPER_CASE |
| Constructor Summary | |
Lock(ContentManager manager,
Content content)
Creates a new lock with default values. |
|
| Method Summary | |
protected void |
doDelete(DataSource src,
User user)
Deletes the object data from the database. |
protected void |
doInsert(DataSource src,
User user,
boolean restore)
Inserts the object data into the database. |
protected void |
doUpdate(DataSource src,
User user)
Updates the object data in the database. |
protected void |
doValidate()
Validates the object data before writing to the database. |
boolean |
equals(Lock obj)
Checks if this lock equals another object. |
boolean |
equals(java.lang.Object obj)
Checks if this lock equals another object. |
java.util.Date |
getAcquiredDate()
Returns the lock acquired date. |
Content |
getContent()
Returns the content object. |
int |
getContentId()
Returns the content identifier. |
Domain |
getDomain()
Returns the content domain. |
java.lang.String |
getDomainName()
Returns the content domain name |
User |
getUser()
Returns the lock owner user. |
java.lang.String |
getUserName()
Returns the lock owner user name. |
boolean |
isOwner(User user)
Checks if the specified user is the lock owner. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class org.liquidsite.core.content.PersistentObject |
decodeMap, delete, delete, encodeMap, getContentManager, hasAdminAccess, hasPublishAccess, hasReadAccess, hasWriteAccess, isPersistent, restore, restore, save, save, validateChars, validateSize |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Lock(ContentManager manager,
Content content)
manager - the content manager to usecontent - the content object| Method Detail |
public boolean equals(java.lang.Object obj)
obj - the object to compare with
public boolean equals(Lock obj)
obj - the object to compare with
public java.lang.String toString()
public boolean isOwner(User user)
user - the user to check
public Domain getDomain()
throws ContentException
ContentException - if no content manager is availablepublic java.lang.String getDomainName()
public Content getContent()
throws ContentException
ContentException - if the database couldn't be accessed
properlypublic int getContentId()
public User getUser()
throws ContentException
ContentException - if the database couldn't be accessed
properlypublic java.lang.String getUserName()
public java.util.Date getAcquiredDate()
protected void doValidate()
throws ContentException
doValidate in class PersistentObjectContentException - if the object data wasn't valid
protected void doInsert(DataSource src,
User user,
boolean restore)
throws ContentException
doInsert in class PersistentObjectsrc - the data source to useuser - the user performing the operationrestore - the restore flag
ContentException - if the database couldn't be accessed
properly
protected void doUpdate(DataSource src,
User user)
throws ContentException
doUpdate in class PersistentObjectsrc - the data source to useuser - the user performing the operation
ContentException - if the database couldn't be accessed
properly
protected void doDelete(DataSource src,
User user)
throws ContentException
doDelete in class PersistentObjectsrc - the data source to useuser - the user performing the operation
ContentException - if the database couldn't be accessed
properly
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||