Package com._1c.g5.v8.dt.rights.tasks
Class SetSetRightsForAttributesByDefaultTask
- 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.bm.integration.BmBasicTask1<RoleDescription>
-
- com._1c.g5.v8.dt.rights.tasks.SetSetRightsForAttributesByDefaultTask
-
- All Implemented Interfaces:
IBmTask<org.eclipse.core.runtime.IStatus>
public class SetSetRightsForAttributesByDefaultTask extends BmBasicTask1<RoleDescription>
Changes the "Set rights for attributes and tabular sections by default" flag value and changes right values for all objects for which the default right values are defenied by "Set rights for attributes and tabular sections by default" flag if necessary.
-
-
Constructor Summary
Constructors Constructor Description SetSetRightsForAttributesByDefaultTask(RoleDescription roleDescription, boolean setRightsForAttributesByDefault, boolean changeAllRights, org.eclipse.core.resources.IProject project, Function<org.eclipse.emf.ecore.EClass,Collection<Right>> availableRightsProvider, IEventBroker eventBroker)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus
execute(RoleDescription roleDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
-
Methods inherited from class com._1c.g5.v8.bm.integration.BmBasicTask1
execute
-
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
-
-
-
-
Constructor Detail
-
SetSetRightsForAttributesByDefaultTask
public SetSetRightsForAttributesByDefaultTask(RoleDescription roleDescription, boolean setRightsForAttributesByDefault, boolean changeAllRights, org.eclipse.core.resources.IProject project, Function<org.eclipse.emf.ecore.EClass,Collection<Right>> availableRightsProvider, IEventBroker eventBroker)
Constructor.- Parameters:
roleDescription
- the role description, cannot benull
setRightsForAttributesByDefault
- a new "Set rights for attributes and tabular sections by default" flag valuechangeAllRights
- tells whether to change all objects rightsproject
- the project, cannot benull
availableRightsProvider
- the provider of available rights forEClass
, cannot benull
eventBroker
- the event broker, cannot benull
-
-
Method Detail
-
execute
public org.eclipse.core.runtime.IStatus execute(RoleDescription roleDescription, org.eclipse.core.runtime.IProgressMonitor monitor)
- Specified by:
execute
in classBmBasicTask1<RoleDescription>
-
-