Class PermissionFilter

    • Field Detail

      • required

        protected final Set<String> required
      • excluded

        protected final Set<String> excluded
    • Constructor Detail

      • PermissionFilter

        public PermissionFilter​(String permission,
                                boolean isRequired)
    • Method Detail

      • accept

        public boolean accept​(DocumentModel docModel)
        Description copied from interface: Filter
        Filters data models objects.
        Specified by:
        accept in interface Filter
        Returns:
        true if accepting the object false otherwise