Package org.alfresco.service.cmr.lock

Examples of org.alfresco.service.cmr.lock.LockStatus


  }

  public boolean isMovable(CMObject node) {
    if (!node.isSubTypeOf(ContentModel.TYPE_FOLDER)) {
      if (node.hasAspect(ContentModel.ASPECT_LOCKABLE)) {
        LockStatus lockStatus = serviceRegistry.getLockService().getLockStatus(node.getNodeRef());
        if (lockStatus == LockStatus.LOCKED || lockStatus == LockStatus.LOCK_OWNER) {
          return false;
        }
      }
    }
View Full Code Here


  }

  public final String getLockIcon(CMObject node, Context context) {
    boolean locked = false;
    if (node.hasAspect(ContentModel.ASPECT_LOCKABLE)) {
      LockStatus lockStatus = serviceRegistry.getLockService().getLockStatus(node.getNodeRef());
      if (lockStatus == LockStatus.LOCKED || lockStatus == LockStatus.LOCK_OWNER) {
        locked = true;
      }
    }
    if (locked) {
View Full Code Here

TOP

Related Classes of org.alfresco.service.cmr.lock.LockStatus

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.