Class DistributionSupportIndexProvider
java.lang.Object
com.e1c.g5.v8.dt.internal.distribution.index.DistributionSupportIndexProvider
DistributionSupport model index provider.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllChildrenIds(DistributionSupport distributionSupport, UUID parentId) Returns all user UUID's by parent configuration UUID.getDistributionSettings(MdObject mdObject) getParentSupportMode(ParentConfigurationInfo parent, UUID userId) Returns parent support mode by user md-object UUID.Returns support languages set.getSupportModes(ParentConfigurationInfo parent, UUID userId) Returns optional parent configuration parent and user support modes for md-object.getUserSupportMode(ParentConfigurationInfo parent, UUID userId) Returns user support mode by user md-object UUID.voidinitialize(IDtProject dtProject) Initializes the provider during the project context startvoidremoveIndex(IDtProject dtProject) Clears service state data on closing of a projectvoidsetDistributionObjectModuleEnabled(MdObject mdObject, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, Boolean> objectModule, DistributionSupport distributionSupport) Sets object module settings for selected objectvoidsetDistributionParentSupportMode(MdObject mdObject, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, ParentSupportMode> distributive, DistributionSupport distributionSupport) Sets distributive settings for selected objectvoidsetUserSupportMode(ParentConfigurationInfo parent, UUID userId, UserSupportMode userSupportMode) Sets new user support mode to user UUID,s object.
-
Constructor Details
-
DistributionSupportIndexProvider
public DistributionSupportIndexProvider()
-
-
Method Details
-
initialize
Initializes the provider during the project context start- Parameters:
dtProject- TheIDtProjectbeing started. Cannot benull
-
removeIndex
Clears service state data on closing of a project- Parameters:
dtProject- TheIDtProjectbeing stopped. Cannot benull
-
getAllChildrenIds
Returns all user UUID's by parent configuration UUID.- Parameters:
distributionSupport- the distribution support, cannot benullparentId- the parent md-object id, cannot benull- Returns:
- the all user UUID's by parent UUID or empty if not present
-
getParentSupportMode
public Optional<ParentSupportMode> getParentSupportMode(ParentConfigurationInfo parent, UUID userId) Returns parent support mode by user md-object UUID.- Parameters:
parent- the parent configuration info, cannot benulluserId- the user id, cannot benull- Returns:
- optional parent support mode, can be empty, never
null
-
setDistributionParentSupportMode
public void setDistributionParentSupportMode(MdObject mdObject, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, ParentSupportMode> distributive, DistributionSupport distributionSupport) Sets distributive settings for selected object- Parameters:
mdObject- the MD object, cannot benulldistributive- the distributive entry, cannot benulldistributionSupport- the reference toDistributionSupport, cannot benull
-
setDistributionObjectModuleEnabled
public void setDistributionObjectModuleEnabled(MdObject mdObject, org.eclipse.emf.common.util.BasicEMap.Entry<UUID, Boolean> objectModule, DistributionSupport distributionSupport) Sets object module settings for selected object- Parameters:
mdObject- the MD object, cannot benullobjectModule- the object nodule entry, cannot benulldistributionSupport- the reference toDistributionSupport, cannot benull
-
getSupportLanguages
Returns support languages set.- Parameters:
parent- parent the parent configuration info, cannot benull- Returns:
- support languages set, cannot be
null
-
getSupportModes
public Optional<Pair<ParentSupportMode,UserSupportMode>> getSupportModes(ParentConfigurationInfo parent, UUID userId) Returns optional parent configuration parent and user support modes for md-object.- Parameters:
parent- the parent configuration info, cannot benulluserId- the user id, cannot benull- Returns:
- optional parent configuration parent and user support modes for md-object, never
null
-
getDistributionSettings
-
getUserSupportMode
Returns user support mode by user md-object UUID.- Parameters:
parent- the parent configuration info, cannot benulluserId- the user id, cannot benull- Returns:
- optional user support mode, can be empty, never
null
-
setUserSupportMode
public void setUserSupportMode(ParentConfigurationInfo parent, UUID userId, UserSupportMode userSupportMode) Sets new user support mode to user UUID,s object.- Parameters:
parent- the parent configuration info, cannot benulluserId- the user id, cannot benullnewUserMode- the new user mode, cannot benull
-