Class ObjectsAndRolesFilter
- java.lang.Object
-
- com._1c.g5.v8.dt.rights.ui.sections.ItemFilter
-
- com._1c.g5.v8.dt.rights.ui.sections.ObjectsAndRolesFilter
-
public class ObjectsAndRolesFilter extends ItemFilter
TheItemFilter
extension to filter objects and roles.
-
-
Constructor Summary
Constructors Constructor Description ObjectsAndRolesFilter(RightsEditorTypes editorType)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelectedObjects(Collection<org.eclipse.emf.ecore.EObject> objects)
Adds the given objects to the selected objects set.void
addSelectedRoles(Collection<Role> roles)
Adds the given roles to the selected roles set.void
dropFilter()
Drops filter state.Set<org.eclipse.emf.ecore.EObject>
getSelectedObjects()
Gets the selected objects.Set<Role>
getSelectedRoles()
Gets the selected roles.boolean
select(TreeViewerItem item)
Returns whether the given item makes it through this filter.void
setSelectedObjects(Set<org.eclipse.emf.ecore.EObject> selectedObjects)
Sets the selected objects.void
setSelectedRoles(Set<Role> selectedRoles)
Sets the selected roles.void
setShowAllRightsFlag(boolean showAllRightsFlagValue)
Changes "Show all rights" flag.-
Methods inherited from class com._1c.g5.v8.dt.rights.ui.sections.ItemFilter
filter
-
-
-
-
Constructor Detail
-
ObjectsAndRolesFilter
public ObjectsAndRolesFilter(RightsEditorTypes editorType)
Constructor.- Parameters:
editorType
- the rights editor type, cannot benull
-
-
Method Detail
-
select
public boolean select(TreeViewerItem item)
Description copied from class:ItemFilter
Returns whether the given item makes it through this filter.- Specified by:
select
in classItemFilter
- Parameters:
item
- the given item, can not benull
- Returns:
true
if the item is included in the filtered set andfalse
otherwise
-
getSelectedObjects
public Set<org.eclipse.emf.ecore.EObject> getSelectedObjects()
Gets the selected objects.- Returns:
- the selected objects, never
null
-
getSelectedRoles
public Set<Role> getSelectedRoles()
Gets the selected roles.- Returns:
- the selected roles, never
null
-
setSelectedObjects
public void setSelectedObjects(Set<org.eclipse.emf.ecore.EObject> selectedObjects)
Sets the selected objects.- Parameters:
selectedObjects
- the selectedObjects to set, can not benull
-
setSelectedRoles
public void setSelectedRoles(Set<Role> selectedRoles)
Sets the selected roles.- Parameters:
selectedRoles
- the selectedRoles to set, can not benull
-
addSelectedObjects
public void addSelectedObjects(Collection<org.eclipse.emf.ecore.EObject> objects)
Adds the given objects to the selected objects set.- Parameters:
objects
- the objects to add, cannot benull
-
addSelectedRoles
public void addSelectedRoles(Collection<Role> roles)
Adds the given roles to the selected roles set.- Parameters:
roles
- the roles to add, cannot benull
-
dropFilter
public void dropFilter()
Drops filter state.
-
setShowAllRightsFlag
public void setShowAllRightsFlag(boolean showAllRightsFlagValue)
Changes "Show all rights" flag.- Parameters:
showAllRightsFlagValue
- the "Show all rights" flag calue
-
-