Class RightsEditorController
- java.lang.Object
-
- com._1c.g5.v8.dt.rights.ui.editors.controllers.RightsEditorController
-
- All Implemented Interfaces:
IBmWorkspaceSynchronizationListener
,IRightsEditorController
,ISelectionChangedListener
public class RightsEditorController extends Object implements IRightsEditorController, ISelectionChangedListener, IBmWorkspaceSynchronizationListener
ImplementationIRightsEditorController
.
-
-
Constructor Summary
Constructors Constructor Description RightsEditorController(IRuntimeVersionSupport runtimeVersionSupport, IEventBroker eventBroker, ISystemIdleService systemIdleService, IConfigurationProvider configurationProvider, IResourceLookup resourceLookup, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, IModelObjectTreeSearchEngine searchEngine, IBmRightsIndexManager bmRightsIndexManager, IBmEmfIndexManager bmEmfIndexManager, IDerivedDataManagerProvider derivedDataManagerProvider, IModelEditingSupport modelEditingSupport, IIndexSlicePredicateService slicePredicateService, IFilterBySubsystemsManager filterBySubsystemsManager, IFilteredNavigatorContentProvider filteredNavigatorContentProvider, IDtProjectManager dtProjectManager)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOrEditObjectCrudRightRls(org.eclipse.emf.ecore.EObject eObject, RoleDescription roleDescription, Right right, String condition, Collection<DbViewFieldDef> selectedFields, Rls editingRls)
Adds or edits object crud right rls in performs finish wizard.void
changeAllObjectRights(RightValue value)
Change all object rights value.void
changeRightsDenotationOption(RightsDenotationOption rightsDenotationOption)
Changes rights denotation option.void
collapseAll()
Collapses all nodes in the editor view.void
deleteSelectedObjectCrudRightRlses(org.eclipse.swt.widgets.Shell shell)
Deletes selected object CRUD right RLS'es.void
deleteSelectedObjectRights(org.eclipse.swt.widgets.Shell shell)
Deletes selected objects and them rights from role content.void
dropSearchFilter(SearchFilterWithHistory searchFilter)
Drops the given search filter.void
dropSetFilterByRights()
Drops set editor view filter by rights.void
dropSetObjectsFilter()
Drops set editor view objects filter.void
expandAll()
Expands all nodes in the editor view.List<TreeViewerItem>
getActualItems()
Returns the actual editor visible items with the account of the actual filters.IBmModel
getBmModel()
ReturnsIBmModel
which contains the editor model object.Configuration
getConfiguration()
Gets editor configuration.Set<Right>
getConfigurationRights()
Gets configuration rights.List<Right>
getContainedEClassesRights(Collection<TreeViewerItem> items)
Gets contained objects 'es rights of the given collection ofTreeViewerItem
's.ITreeContentProvider
getContentProvider()
Gets project right supported top md-objects content provider.org.eclipse.ui.navigator.INavigatorContentService
getContentService()
Gets actualINavigatorContentService
.Set<Right>
getEClassRights(org.eclipse.emf.ecore.EClass eClass)
Gets e-class rights.RightsEditorTypes
getEditorType()
Gets editor type.String
getFieldName(DbViewFieldDef field)
Gets field name.List<TreeViewerItem>
getFilteredItems()
Gets the filtered content items.Set<ItemFilter>
getFilters()
Gets all item filters.TreeViewerItem
getFirstSelectedObjectItem()
Gets first selected top object item.List<TreeViewerItem>
getItemChildren(TreeViewerItem item)
Gets item children.List<Rls>
getItemRightRls(Right right, TreeViewerItem item)
Gets item right rls.List<TreeViewerItem>
getItems()
Gets the content items.org.eclipse.emf.ecore.EObject
getModel()
Gets editors model.CheckState
getRightValue(TreeViewerItem item, Right right)
Gets item right value.List<TreeViewerItem>
getSelectedTopViewerItems()
Gets the selected topTreeViewerItem
's.List<TreeViewerItem>
getSelectedViewerItems()
Gets the selectedTreeViewerItem
's.void
goToObjectEditor()
Goes to selected object in the editor view.void
goToRoleEditor()
Goes to selected role in the editor view.void
handleInSync(boolean syncActive, List<org.eclipse.core.resources.IResource> affectedResources)
Called when synchronized phase are activated or deactivated.void
init(IBmModel bmModel, IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject model, RightsEditorTypes type)
Initializes controller from all rights editor.boolean
isConfigurationAdopted()
Determines whether the configuration is adopted.boolean
isFilterActive(ItemFilter itemFilter)
Checks whether the given item filter active.boolean
isIndependentRightsOfChildObjects()
Gets independent rights of child objects role flag state.boolean
isNonBmObjectsPresents(List<TreeViewerItem> items)
Checks is items contains non-bm objects.boolean
isSetForAttributesByDefault()
Gets set for attributes by default role flag state.boolean
isSetForNewObjects()
Gets set for new objects role flag state.void
onDispose()
Removes listeners and dispose model.void
openAddObjectCrudRightRlsWizard(org.eclipse.swt.widgets.Shell shell)
Opens wizard to add RLS to selected object CRUD right.void
openAddObjectRightsWizard(org.eclipse.swt.widgets.Shell shell)
Opens wizard to add object to role content and set object rights.void
openChangeRightsPropertiesDialog(org.eclipse.swt.widgets.Shell shell)
Opens change rights properties dialog.void
openEditObjectCrudRightRlsWizard(org.eclipse.swt.widgets.Shell shell)
Opens wizard to edit RLS to selected object CRUD right.void
openEditObjectRightsWizard(org.eclipse.swt.widgets.Shell shell)
Opens wizard to edit role object rights.void
openSetFilterByRightsDialog(org.eclipse.swt.widgets.Shell shell)
Opens filter by rights setting dialog and sets the selected filter.void
openSetObjectsFilterDialog(org.eclipse.swt.widgets.Shell shell)
Opens sets filter dialog and sets selected filter.void
resourceSaved(org.eclipse.core.resources.IFile file, Collection<IBmObject> objects)
Called then objects are saved to workspace resources.void
selectionChanged(SelectionChangedEvent event)
void
setFilterByCurrentValue()
Sets filter by current (selected) object values (md-object and role).void
setIndependentRightsOfChildObjects(boolean newValue)
Changes independent rights of child objects role flag.void
setObjectsSection(ObjectsSection section)
Sets section.void
setRestrictionAccessSection(RestrictionAccessSection section)
Sets section.void
setRightValue(RightValue newValue, TreeViewerItem item, Right right)
Sets item right value.void
setRoleDescriptionSection(RoleDescriptionSection section)
Sets section.void
setSearchFilter(SearchFilterWithHistory searchFilter)
Sets the given search filter.void
setSetRightsForAttributesByDefault(boolean newValue)
Changes set rights for attributes by default role flag.void
setSetRightsForNewObjects(boolean newValue)
Changes set rights for new objects role flag.void
validateTopItem(TreeViewerItem item)
Validates the top item and sets error (warning) markers on item for displays in role content view.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.v8.bm.integration.IBmWorkspaceSynchronizationListener
changeBatchProcessingFinished, changeBatchProcessingStarted, delayedChangeDetected, fileDeleted, onClose, resourceDeleted, resourceSynchronized
-
-
-
-
Constructor Detail
-
RightsEditorController
@Inject public RightsEditorController(IRuntimeVersionSupport runtimeVersionSupport, IEventBroker eventBroker, ISystemIdleService systemIdleService, IConfigurationProvider configurationProvider, IResourceLookup resourceLookup, org.eclipse.xtext.naming.IQualifiedNameProvider qualifiedNameProvider, IModelObjectTreeSearchEngine searchEngine, IBmRightsIndexManager bmRightsIndexManager, IBmEmfIndexManager bmEmfIndexManager, IDerivedDataManagerProvider derivedDataManagerProvider, IModelEditingSupport modelEditingSupport, IIndexSlicePredicateService slicePredicateService, IFilterBySubsystemsManager filterBySubsystemsManager, IFilteredNavigatorContentProvider filteredNavigatorContentProvider, IDtProjectManager dtProjectManager)
Constructor.- Parameters:
runtimeVersionSupport
- the runtime version support, can not benull
eventBroker
- the event broker, can not benull
systemIdleService
- the system idle service, can not benull
configurationProvider
- the configuration provider, can not benull
resourceLookup
- the resource lookup, can not benull
qualifiedNameProvider
- the qualified name provider, can not benull
searchEngine
- the search engine, can not benull
bmRightsIndexManager
- the Bm rights index manager, can not benull
bmEmfIndexManager
- the Bm Emf index manager, can not benull
derivedDataManagerProvider
- the derived data manager provider, can not benull
modelEditingSupport
- the model editing support, can not benull
slicePredicateService
- the slice predicate service, can not benull
filterBySubsystemsManager
- the filter by subsystems manager, can not benull
filteredNavigatorContentProvider
- the filtered navigator content provider, can not benull
dtProjectManager
- the DT project manager, cannot benull
-
-
Method Detail
-
addOrEditObjectCrudRightRls
public void addOrEditObjectCrudRightRls(org.eclipse.emf.ecore.EObject eObject, RoleDescription roleDescription, Right right, String condition, Collection<DbViewFieldDef> selectedFields, Rls editingRls)
Description copied from interface:IRightsEditorController
Adds or edits object crud right rls in performs finish wizard.- Specified by:
addOrEditObjectCrudRightRls
in interfaceIRightsEditorController
- Parameters:
eObject
- the e-objectroleDescription
- the role descriptionright
- the rightcondition
- the conditionselectedFields
- the selected fieldseditingRls
- the editing rls, may benull
if new rls adds
-
changeAllObjectRights
public void changeAllObjectRights(RightValue value)
Description copied from interface:IRightsEditorController
Change all object rights value.- Specified by:
changeAllObjectRights
in interfaceIRightsEditorController
- Parameters:
value
- the new value
-
changeRightsDenotationOption
public void changeRightsDenotationOption(RightsDenotationOption rightsDenotationOption)
Description copied from interface:IRightsEditorController
Changes rights denotation option.- Specified by:
changeRightsDenotationOption
in interfaceIRightsEditorController
- Parameters:
rightsDenotationOption
- the rights denotation option, cannot benull
-
collapseAll
public void collapseAll()
Description copied from interface:IRightsEditorController
Collapses all nodes in the editor view.- Specified by:
collapseAll
in interfaceIRightsEditorController
-
deleteSelectedObjectCrudRightRlses
public void deleteSelectedObjectCrudRightRlses(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Deletes selected object CRUD right RLS'es.- Specified by:
deleteSelectedObjectCrudRightRlses
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
deleteSelectedObjectRights
public void deleteSelectedObjectRights(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Deletes selected objects and them rights from role content.- Specified by:
deleteSelectedObjectRights
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
dropSetObjectsFilter
public void dropSetObjectsFilter()
Description copied from interface:IRightsEditorController
Drops set editor view objects filter.- Specified by:
dropSetObjectsFilter
in interfaceIRightsEditorController
-
dropSearchFilter
public void dropSearchFilter(SearchFilterWithHistory searchFilter)
Description copied from interface:IRightsEditorController
Drops the given search filter.- Specified by:
dropSearchFilter
in interfaceIRightsEditorController
- Parameters:
searchFilter
- the given search filter, can not benull
-
expandAll
public void expandAll()
Description copied from interface:IRightsEditorController
Expands all nodes in the editor view.- Specified by:
expandAll
in interfaceIRightsEditorController
-
getConfiguration
public Configuration getConfiguration()
Description copied from interface:IRightsEditorController
Gets editor configuration.- Specified by:
getConfiguration
in interfaceIRightsEditorController
- Returns:
- the editor configuration
-
getConfigurationRights
public Set<Right> getConfigurationRights()
Description copied from interface:IRightsEditorController
Gets configuration rights.- Specified by:
getConfigurationRights
in interfaceIRightsEditorController
- Returns:
- the rights
-
getContainedEClassesRights
public List<Right> getContainedEClassesRights(Collection<TreeViewerItem> items)
Description copied from interface:IRightsEditorController
Gets contained objects 'es rights of the given collection ofTreeViewerItem
's.- Specified by:
getContainedEClassesRights
in interfaceIRightsEditorController
- Parameters:
items
- the given collection ofTreeViewerItem
's, can not benull
- Returns:
- the rights, never
null
-
getContentProvider
public ITreeContentProvider getContentProvider()
Description copied from interface:IRightsEditorController
Gets project right supported top md-objects content provider.- Specified by:
getContentProvider
in interfaceIRightsEditorController
- Returns:
- the contentProvider
-
getEClassRights
public Set<Right> getEClassRights(org.eclipse.emf.ecore.EClass eClass)
Description copied from interface:IRightsEditorController
Gets e-class rights.- Specified by:
getEClassRights
in interfaceIRightsEditorController
- Parameters:
eClass
- the e-class- Returns:
- the rights
-
getEditorType
public RightsEditorTypes getEditorType()
Description copied from interface:IRightsEditorController
Gets editor type.- Specified by:
getEditorType
in interfaceIRightsEditorController
- Returns:
- the editor type
-
getFieldName
public String getFieldName(DbViewFieldDef field)
Description copied from interface:IRightsEditorController
Gets field name.- Specified by:
getFieldName
in interfaceIRightsEditorController
- Parameters:
field
- the field- Returns:
- the name
-
getFirstSelectedObjectItem
public TreeViewerItem getFirstSelectedObjectItem()
Description copied from interface:IRightsEditorController
Gets first selected top object item. If selected top object items is empty, returnnull
- Specified by:
getFirstSelectedObjectItem
in interfaceIRightsEditorController
- Returns:
- the item or
null
-
getItemChildren
public List<TreeViewerItem> getItemChildren(TreeViewerItem item)
Description copied from interface:IRightsEditorController
Gets item children.- Specified by:
getItemChildren
in interfaceIRightsEditorController
- Parameters:
item
- the item- Returns:
- the child items
-
getItemRightRls
public List<Rls> getItemRightRls(Right right, TreeViewerItem item)
Description copied from interface:IRightsEditorController
Gets item right rls.- Specified by:
getItemRightRls
in interfaceIRightsEditorController
- Parameters:
right
- the rightitem
- the item- Returns:
- the rls
-
getItems
public List<TreeViewerItem> getItems()
Description copied from interface:IRightsEditorController
Gets the content items.- Specified by:
getItems
in interfaceIRightsEditorController
- Returns:
- the content items, never
null
-
getFilteredItems
public List<TreeViewerItem> getFilteredItems()
Description copied from interface:IRightsEditorController
Gets the filtered content items.- Specified by:
getFilteredItems
in interfaceIRightsEditorController
- Returns:
- the filtered content items, never
null
-
getActualItems
public List<TreeViewerItem> getActualItems()
Description copied from interface:IRightsEditorController
Returns the actual editor visible items with the account of the actual filters.- Specified by:
getActualItems
in interfaceIRightsEditorController
- Returns:
- the actual editor visible items, never
null
-
getModel
public org.eclipse.emf.ecore.EObject getModel()
Description copied from interface:IRightsEditorController
Gets editors model.- Specified by:
getModel
in interfaceIRightsEditorController
- Returns:
- the editors model, can't be
null
-
getRightValue
public CheckState getRightValue(TreeViewerItem item, Right right)
Description copied from interface:IRightsEditorController
Gets item right value.- Specified by:
getRightValue
in interfaceIRightsEditorController
- Parameters:
item
- the tree viewer item, can not benull
right
- the right the value gets for, can not benull
- Returns:
- the check state for obtained item right value, never
null
-
getSelectedTopViewerItems
public List<TreeViewerItem> getSelectedTopViewerItems()
Description copied from interface:IRightsEditorController
Gets the selected topTreeViewerItem
's.- Specified by:
getSelectedTopViewerItems
in interfaceIRightsEditorController
- Returns:
- the selected top viewer items, never
null
-
getSelectedViewerItems
public List<TreeViewerItem> getSelectedViewerItems()
Description copied from interface:IRightsEditorController
Gets the selectedTreeViewerItem
's.- Specified by:
getSelectedViewerItems
in interfaceIRightsEditorController
- Returns:
- the selected viewer items, never
null
-
getFilters
public Set<ItemFilter> getFilters()
Description copied from interface:IRightsEditorController
Gets all item filters.- Specified by:
getFilters
in interfaceIRightsEditorController
- Returns:
- the set of item filters, never
null
-
goToObjectEditor
public void goToObjectEditor()
Description copied from interface:IRightsEditorController
Goes to selected object in the editor view.- Specified by:
goToObjectEditor
in interfaceIRightsEditorController
-
goToRoleEditor
public void goToRoleEditor()
Description copied from interface:IRightsEditorController
Goes to selected role in the editor view.- Specified by:
goToRoleEditor
in interfaceIRightsEditorController
-
handleInSync
public void handleInSync(boolean syncActive, List<org.eclipse.core.resources.IResource> affectedResources)
Description copied from interface:IBmWorkspaceSynchronizationListener
Called when synchronized phase are activated or deactivated.- Specified by:
handleInSync
in interfaceIBmWorkspaceSynchronizationListener
- Parameters:
syncActive
- Sync activity state.affectedResources
- List of sync affected resources (added/removed/merged)
-
init
public void init(IBmModel bmModel, IBmEditingContext editingContext, org.eclipse.emf.ecore.EObject model, RightsEditorTypes type)
Description copied from interface:IRightsEditorController
Initializes controller from all rights editor.- Specified by:
init
in interfaceIRightsEditorController
- Parameters:
bmModel
- the editor BM model, cannot benull
editingContext
- the editing context, cannot benull
model
- the editor model, cannot benull
type
- the editor type, cannot benull
-
isIndependentRightsOfChildObjects
public boolean isIndependentRightsOfChildObjects()
Description copied from interface:IRightsEditorController
Gets independent rights of child objects role flag state.- Specified by:
isIndependentRightsOfChildObjects
in interfaceIRightsEditorController
- Returns:
- true if independent.
-
isNonBmObjectsPresents
public boolean isNonBmObjectsPresents(List<TreeViewerItem> items)
Description copied from interface:IRightsEditorController
Checks is items contains non-bm objects.- Specified by:
isNonBmObjectsPresents
in interfaceIRightsEditorController
- Parameters:
items
- the items- Returns:
- true if contains
-
isSetForAttributesByDefault
public boolean isSetForAttributesByDefault()
Description copied from interface:IRightsEditorController
Gets set for attributes by default role flag state.- Specified by:
isSetForAttributesByDefault
in interfaceIRightsEditorController
- Returns:
- true if set.
-
isSetForNewObjects
public boolean isSetForNewObjects()
Description copied from interface:IRightsEditorController
Gets set for new objects role flag state.- Specified by:
isSetForNewObjects
in interfaceIRightsEditorController
- Returns:
- true if set.
-
isConfigurationAdopted
public boolean isConfigurationAdopted()
Description copied from interface:IRightsEditorController
Determines whether the configuration is adopted.- Specified by:
isConfigurationAdopted
in interfaceIRightsEditorController
- Returns:
true
if the configuration is adopted andfalse
otherwise
-
isFilterActive
public boolean isFilterActive(ItemFilter itemFilter)
Description copied from interface:IRightsEditorController
Checks whether the given item filter active.- Specified by:
isFilterActive
in interfaceIRightsEditorController
- Parameters:
itemFilter
- the given item filter, can not benull
- Returns:
true
if the given filter is active andfalse
otherwise
-
onDispose
public void onDispose()
Description copied from interface:IRightsEditorController
Removes listeners and dispose model.- Specified by:
onDispose
in interfaceIRightsEditorController
-
openAddObjectCrudRightRlsWizard
public void openAddObjectCrudRightRlsWizard(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Opens wizard to add RLS to selected object CRUD right.- Specified by:
openAddObjectCrudRightRlsWizard
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
openAddObjectRightsWizard
public void openAddObjectRightsWizard(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Opens wizard to add object to role content and set object rights.- Specified by:
openAddObjectRightsWizard
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
openChangeRightsPropertiesDialog
public void openChangeRightsPropertiesDialog(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Opens change rights properties dialog.- Specified by:
openChangeRightsPropertiesDialog
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
openEditObjectCrudRightRlsWizard
public void openEditObjectCrudRightRlsWizard(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Opens wizard to edit RLS to selected object CRUD right.- Specified by:
openEditObjectCrudRightRlsWizard
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
openEditObjectRightsWizard
public void openEditObjectRightsWizard(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Opens wizard to edit role object rights.- Specified by:
openEditObjectRightsWizard
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
openSetObjectsFilterDialog
public void openSetObjectsFilterDialog(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Opens sets filter dialog and sets selected filter.- Specified by:
openSetObjectsFilterDialog
in interfaceIRightsEditorController
- Parameters:
shell
- the shell
-
resourceSaved
public void resourceSaved(org.eclipse.core.resources.IFile file, Collection<IBmObject> objects)
Description copied from interface:IBmWorkspaceSynchronizationListener
Called then objects are saved to workspace resources. objects contains list of changed objects.- Specified by:
resourceSaved
in interfaceIBmWorkspaceSynchronizationListener
objects
- - the set of objects.
-
selectionChanged
public void selectionChanged(SelectionChangedEvent event)
- Specified by:
selectionChanged
in interfaceISelectionChangedListener
-
setFilterByCurrentValue
public void setFilterByCurrentValue()
Description copied from interface:IRightsEditorController
Sets filter by current (selected) object values (md-object and role).- Specified by:
setFilterByCurrentValue
in interfaceIRightsEditorController
-
setSearchFilter
public void setSearchFilter(SearchFilterWithHistory searchFilter)
Description copied from interface:IRightsEditorController
Sets the given search filter.- Specified by:
setSearchFilter
in interfaceIRightsEditorController
- Parameters:
searchFilter
- the given search filter, can not benull
-
setIndependentRightsOfChildObjects
public void setIndependentRightsOfChildObjects(boolean newValue)
Description copied from interface:IRightsEditorController
Changes independent rights of child objects role flag.- Specified by:
setIndependentRightsOfChildObjects
in interfaceIRightsEditorController
-
setObjectsSection
public void setObjectsSection(ObjectsSection section)
Description copied from interface:IRightsEditorController
Sets section.- Specified by:
setObjectsSection
in interfaceIRightsEditorController
- Parameters:
section
- the section
-
setRestrictionAccessSection
public void setRestrictionAccessSection(RestrictionAccessSection section)
Description copied from interface:IRightsEditorController
Sets section.- Specified by:
setRestrictionAccessSection
in interfaceIRightsEditorController
- Parameters:
section
- the section
-
setRightValue
public void setRightValue(RightValue newValue, TreeViewerItem item, Right right)
Description copied from interface:IRightsEditorController
Sets item right value.- Specified by:
setRightValue
in interfaceIRightsEditorController
- Parameters:
newValue
- the new valueitem
- the itemright
- the right
-
setRoleDescriptionSection
public void setRoleDescriptionSection(RoleDescriptionSection section)
Description copied from interface:IRightsEditorController
Sets section.- Specified by:
setRoleDescriptionSection
in interfaceIRightsEditorController
- Parameters:
section
- the section
-
setSetRightsForAttributesByDefault
public void setSetRightsForAttributesByDefault(boolean newValue)
Description copied from interface:IRightsEditorController
Changes set rights for attributes by default role flag.- Specified by:
setSetRightsForAttributesByDefault
in interfaceIRightsEditorController
- Parameters:
newValue
- the new value
-
setSetRightsForNewObjects
public void setSetRightsForNewObjects(boolean newValue)
Description copied from interface:IRightsEditorController
Changes set rights for new objects role flag.- Specified by:
setSetRightsForNewObjects
in interfaceIRightsEditorController
- Parameters:
newValue
- the new value
-
validateTopItem
public void validateTopItem(TreeViewerItem item)
Description copied from interface:IRightsEditorController
Validates the top item and sets error (warning) markers on item for displays in role content view.- Specified by:
validateTopItem
in interfaceIRightsEditorController
- Parameters:
item
- the top tree viewer item to validate, can not benull
-
getContentService
public org.eclipse.ui.navigator.INavigatorContentService getContentService()
Description copied from interface:IRightsEditorController
Gets actualINavigatorContentService
.- Specified by:
getContentService
in interfaceIRightsEditorController
- Returns:
- actual
INavigatorContentService
for getting navigator content provider, nevernull
-
openSetFilterByRightsDialog
public void openSetFilterByRightsDialog(org.eclipse.swt.widgets.Shell shell)
Description copied from interface:IRightsEditorController
Opens filter by rights setting dialog and sets the selected filter.- Specified by:
openSetFilterByRightsDialog
in interfaceIRightsEditorController
- Parameters:
shell
- the shell, cannot benull
-
dropSetFilterByRights
public void dropSetFilterByRights()
Description copied from interface:IRightsEditorController
Drops set editor view filter by rights.- Specified by:
dropSetFilterByRights
in interfaceIRightsEditorController
-
getBmModel
public IBmModel getBmModel()
Description copied from interface:IRightsEditorController
ReturnsIBmModel
which contains the editor model object.- Specified by:
getBmModel
in interfaceIRightsEditorController
- Returns:
IBmModel
which contains the editor model object, nevernull
-
-