Class LockService
- java.lang.Object
-
- com.nomagic.magicdraw.core.project.service.AbstractProjectService
-
- com.nomagic.magicdraw.teamwork2.locks.LockService
-
- All Implemented Interfaces:
ILockProjectService
,com.nomagic.uml2.project.service.DisposableService
@OpenApiAll public abstract class LockService extends com.nomagic.magicdraw.core.project.service.AbstractProjectService 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
Constructors Modifier Constructor Description protected
LockService(Project project)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ILockProjectService
getLockService(Project project)
Return and instance of lock service for a given projectprotected boolean
hasAutomaticUsages(java.util.Collection<ModuleUsage> moduleUsages)
static java.util.Set<Element>
selectElementsForLock(java.util.Collection<? extends Element> collection, java.util.function.Predicate<Element> canBeLocked)
-
Methods inherited from class com.nomagic.magicdraw.core.project.service.AbstractProjectService
disposeService, getInternalInstance, getKey, 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, 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 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)
-
-