Class ObjectsAndRolesFilter


  • public class ObjectsAndRolesFilter
    extends ItemFilter
    The ItemFilter extension to filter objects and roles.
    • Constructor Detail

      • ObjectsAndRolesFilter

        public ObjectsAndRolesFilter​(RightsEditorTypes editorType)
        Constructor.
        Parameters:
        editorType - the rights editor type, cannot be null
    • 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 class ItemFilter
        Parameters:
        item - the given item, can not be null
        Returns:
        true if the item is included in the filtered set and false 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 be null
      • setSelectedRoles

        public void setSelectedRoles​(Set<Role> selectedRoles)
        Sets the selected roles.
        Parameters:
        selectedRoles - the selectedRoles to set, can not be null
      • 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 be null
      • addSelectedRoles

        public void addSelectedRoles​(Collection<Role> roles)
        Adds the given roles to the selected roles set.
        Parameters:
        roles - the roles to add, cannot be null
      • 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