04-25-2007 05:56 PM
04-26-2007 09:05 AM
04-26-2007 11:40 AM
04-26-2007 12:52 PM
LockStatus lockStatus = getLockService(context).getLockStatus(ref);
locked = (lockStatus == LockStatus.LOCKED || lockStatus == LockStatus.LOCK_OWNER);
lockedOwner = (lockStatus == LockStatus.LOCK_OWNER);
with the following instead:
String lockerUser = (String)nodeService.getProperty(ref, ContentModel.PROP_LOCK_OWNER);
if (lockerUser != null)
{
locked = true;
lockedOwner = (lockerUser.equals(Application.getCurrentUser(context).getUserName()));
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.