Package com._1c.g5.v8.dt.rights.tasks
Class AddRightValuesTask
java.lang.Object
com._1c.g5.v8.bm.integration.AbstractBmTask<org.eclipse.core.runtime.IStatus>
com._1c.g5.v8.bm.integration.BmBasicTask
com._1c.g5.v8.dt.rights.tasks.AddRightValuesTask
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
Add object to role or edit role object rights task
and send
RightValueEvent
.-
Method Summary
Modifier and TypeMethodDescriptionstatic IBmTask<?>
create
(Map<Role, Map<org.eclipse.emf.ecore.EObject, Map<Right, RightValue>>> changedObjects, org.eclipse.core.resources.IProject project, IEventBroker eventBroker, IModelObjectCollectionRuntimeOrderSorter sorter) Creates a new instanceorg.eclipse.core.runtime.IStatus
Perform task execution.Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask
execute, getTransaction
Methods inherited from class com._1c.g5.v8.bm.integration.AbstractBmTask
getId, getName, getServiceId
-
Method Details
-
create
public static IBmTask<?> create(Map<Role, Map<org.eclipse.emf.ecore.EObject, Map<Right, RightValue>>> changedObjects, org.eclipse.core.resources.IProject project, IEventBroker eventBroker, IModelObjectCollectionRuntimeOrderSorter sorter) Creates a new instance- Parameters:
changedObjects
- the changed objects, cannot benull
project
- the project, cannot benull
eventBroker
- the event broker, cannot benull
sorter
- the role objects and rights sorter, cannot benull
- Returns:
- the task, cannot be
null
-
execute
public org.eclipse.core.runtime.IStatus execute(List<IBmObject> bmObjects, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from class:BmBasicTask
Perform task execution. Be ware new objects will not be attached to session on execution.- Specified by:
execute
in classBmBasicTask
-