Class RightsEditorRestrictionController
- java.lang.Object
-
- com._1c.g5.v8.dt.rights.ui.editors.controllers.RightsEditorRestrictionController
-
- All Implemented Interfaces:
IRightsEditorRestrictionController
public class RightsEditorRestrictionController extends Object implements IRightsEditorRestrictionController
ImplementationIRightsEditorRestrictionController
.
-
-
Field Summary
Fields Modifier and Type Field Description protected IBmEditingContext
editingContext
The editing contextprotected IEventBroker
eventBroker
The event brokerprotected IModelEditingSupport
modelEditingSupport
The model editing supportprotected org.eclipse.core.resources.IProject
project
The project
-
Constructor Summary
Constructors Constructor Description RightsEditorRestrictionController(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject model, org.eclipse.core.resources.IProject project, IEventBroker eventBroker, IModelEditingSupport modelEditingSupport)
Common constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrEditRlsTemplate(RoleDescription roleDescription, String name, String condition, RestrictionTemplate editingTemplate)
Adds or edits role rls template in performs finish wizard.void
deleteSelectedRlsTemplates(org.eclipse.swt.widgets.Shell shell)
Deletes selected RLS templates from role.void
init()
Initializes controller from all rights editor.void
onDispose()
Removes listeners and dispose model.void
openAddRlsTemplateWizard(org.eclipse.swt.widgets.Shell shell)
Opens wizard to add RLS template to role.void
openEditRlsTemplateWizard(org.eclipse.swt.widgets.Shell shell)
Opens wizard to edit role RLS template.void
setRestrictionTemplatesSection(RestrictionTemplatesSection section)
Sets section.
-
-
-
Field Detail
-
project
protected org.eclipse.core.resources.IProject project
The project
-
eventBroker
protected IEventBroker eventBroker
The event broker
-
editingContext
protected IBmEditingContext editingContext
The editing context
-
modelEditingSupport
protected IModelEditingSupport modelEditingSupport
The model editing support
-
-
Constructor Detail
-
RightsEditorRestrictionController
public RightsEditorRestrictionController(IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject model, org.eclipse.core.resources.IProject project, IEventBroker eventBroker, IModelEditingSupport modelEditingSupport)
Common constructor.- Parameters:
editingContext
- the editing context, can not benull
model
- the editor model, can not benull
project
- the project, can not benull
eventBroker
- the event broker, can not benull
modelEditingSupport
- the model editing support, can not benull
-
-
Method Detail
-
addOrEditRlsTemplate
public void addOrEditRlsTemplate(RoleDescription roleDescription, String name, String condition, RestrictionTemplate editingTemplate)
Description copied from interface:IRightsEditorRestrictionController
Adds or edits role rls template in performs finish wizard.- Specified by:
addOrEditRlsTemplate
in interfaceIRightsEditorRestrictionController
- Parameters:
roleDescription
- the role description (notnull
)name
- the parameter name (notnull
)condition
- the condition (notnull
)editingTemplate
- the editing template, may benull
if new template adds
-
deleteSelectedRlsTemplates
public void deleteSelectedRlsTemplates(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorRestrictionController
Deletes selected RLS templates from role.- Specified by:
deleteSelectedRlsTemplates
in interfaceIRightsEditorRestrictionController
- Parameters:
shell
- the shell (notnull
)
-
init
public void init()
Description copied from interface:IRightsEditorRestrictionController
Initializes controller from all rights editor.- Specified by:
init
in interfaceIRightsEditorRestrictionController
-
onDispose
public void onDispose()
Description copied from interface:IRightsEditorRestrictionController
Removes listeners and dispose model.- Specified by:
onDispose
in interfaceIRightsEditorRestrictionController
-
openAddRlsTemplateWizard
public void openAddRlsTemplateWizard(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorRestrictionController
Opens wizard to add RLS template to role.- Specified by:
openAddRlsTemplateWizard
in interfaceIRightsEditorRestrictionController
- Parameters:
shell
- the shell (notnull
)
-
openEditRlsTemplateWizard
public void openEditRlsTemplateWizard(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorRestrictionController
Opens wizard to edit role RLS template.- Specified by:
openEditRlsTemplateWizard
in interfaceIRightsEditorRestrictionController
- Parameters:
shell
- the shell (notnull
)
-
setRestrictionTemplatesSection
public void setRestrictionTemplatesSection(RestrictionTemplatesSection section)
Description copied from interface:IRightsEditorRestrictionController
Sets section.- Specified by:
setRestrictionTemplatesSection
in interfaceIRightsEditorRestrictionController
- Parameters:
section
- the section (notnull
)
-
-