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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.nomagic.magicdraw.teamwork2.locks.ILockProjectService
ILockProjectService.LockOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ILockProjectService
getLockService
(Project project) Return and instance of lock service for a given projectprotected boolean
hasAutomaticUsages
(Collection<ModuleUsage> moduleUsages) selectElementsForLock
(Collection<? extends Element> collection, Predicate<Element> canBeLocked) Methods inherited from class com.dassault_systemes.modeler.foundation.project.service.ModelElementProjectService
disposeService, getIfPresent, getOrCreateInstance, getOrCreateInstanceWithNullSupport, getReferencedProject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.nomagic.magicdraw.teamwork2.locks.ILockProjectService
canBeDecompositionLocked, canBeDecompositionUnlocked, canBeLocked, canBeLocked, canBeOptionsLocked, canBeOptionsUnlocked, canBeUnlocked, canBeUnlocked, getDecompositionLock, getLockedBy, getLockedByMe, getLockedElements, getLockedElementUsers, getLockedModules, getLockInfo, getLockInfo, getModulesLockedBy, getModulesLockedByMe, getOptionsLock, hasLockedBy, hasLockedElements, hasPermissionToLock, isDecompositionLocked, isDecompositionLockedByMe, isLocked, isLocked, isLockedBy, isLockedByMe, isLockedByMe, isOptionsLocked, isOptionsLockedByMe, lockElements, lockElements, lockElements, lockModules, lockModules, setCacheOptionsLock, setDecompositionLockedByMe, setOptionsLockedByMe, unlockElements, unlockElements, unlockElements, unlockElements, unlockElements, unlockModules, updateLocks
-
Constructor Details
-
LockService
Constructor- Parameters:
project
- project
-
-
Method Details
-
getLockService
Return and instance of lock service for a given project- Parameters:
project
- project- Returns:
- lock service
-
selectElementsForLock
-
hasAutomaticUsages
-