transfer service : added a new LockType to the lock service so you can add children to nodes locked by the transfer service.

New lock type is a "NodeLock".

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21370 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2010-07-22 20:35:51 +00:00
parent a2580451b9
commit f1ca1b7f51
5 changed files with 183 additions and 22 deletions

View File

@@ -19,7 +19,14 @@
package org.alfresco.service.cmr.lock;
/**
* Enum used to indicate lock status.
* Used to indicate lock status.
*
* <ul>
* <li>NO_LOCK - Indicates that there is no lock present</li>
* <li>LOCKED - Indicates that the node is locked by somebody else</li>
* <li>LOCK_OWNER - Indicates that the node is locked and the current user has lock ownership rights</li>
* <li>LOCK_EXPIRED - Indicates that the lock has expired and the node can be considered to be unlocked</li>
* </ul>
*
* @author Roy Wetherall
*/

View File

@@ -19,8 +19,15 @@
package org.alfresco.service.cmr.lock;
/**
* Enum used to indicate lock type
*
* @author Roy Wetherall
* The type of lock to be used by the lock service
* <p>
* The lock owner or the administrator can release the lock.
* <ul>
* <li>NODE_LOCK - no-one can update or delete the locked node.</li>
* <li>READ_ONLY_LOCK - no-one can update or delete the locked node. No one can add children to the locked node</li>
* <li>WRITE_LOCK - the owner can update or delete the locked node. The owner can add children to the locked node</li>
* </ul>
*/
public enum LockType {READ_ONLY_LOCK, WRITE_LOCK}
public enum LockType {READ_ONLY_LOCK,
WRITE_LOCK,
NODE_LOCK }