Class 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 Detail

      • LockService

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

      • 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 java.util.Set<Element> selectElementsForLock​(@Nonnull
                                                                   java.util.Collection<? extends Element> collection,
                                                                   java.util.function.Predicate<Element> canBeLocked)
      • hasAutomaticUsages

        protected boolean hasAutomaticUsages​(java.util.Collection<ModuleUsage> moduleUsages)