cancel
Showing results for 
Search instead for 
Did you mean: 

Lockable Aspect

lilyh
Champ in-the-making
Champ in-the-making
Hello,
In a webscript to resize and create renditions for an uploaded image, I have added the aspect cm:lockable.

   // lock the object
   var props = new Array(2);
   props["cm:lockType"] = "READ_ONLY_LOCK";
   props["cm:lockOwner"] = "admin";
   transformedNode.addAspect("cm:lockable", props);

Using the Node Browser, I have confirmed the properties lockType and lockOwner are applied to my content.
It also appears in my modified items.
Problem is, the lock icon (with key) does not appear next to my content.
Does anyone have any idea why the lock icon doesn't display?

Thank you.
Regards,
Lily.
1 REPLY 1

derek
Star Contributor
Star Contributor
I don't know.  You could debug to find out why it is not showing the icon:
org.alfresco.web.bean.repository.Node#isLocked
org.alfresco.repo.lock.LockServiceImpl#getLockStatus