Class LockService

java.lang.Object
com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService<Project>
com.nomagic.magicdraw.core.project.service.ProjectService
com.nomagic.magicdraw.teamwork2.locks.LockService
All Implemented Interfaces:
com.dassault_systemes.modeler.foundation.project.service.DisposableService, ILockProjectService

@OpenApiAll public abstract class LockService extends com.nomagic.magicdraw.core.project.service.ProjectService implements ILockProjectService
Project related lock service. Provides api to check, request and release locks on various project data.
  • Constructor Details

    • LockService

      protected LockService(Project project)
      Constructor
      Parameters:
      project - project
  • Method Details

    • getLockService

      @CheckForNull public static ILockProjectService getLockService(@CheckForNull Project project)
      Return and instance of lock service for a given project
      Parameters:
      project - project
      Returns:
      lock service
    • selectElementsForLock

      public static Set<Element> selectElementsForLock(@Nonnull Collection<? extends Element> collection, Predicate<Element> canBeLocked)
    • hasAutomaticUsages

      protected boolean hasAutomaticUsages(Collection<ModuleUsage> moduleUsages)