Class RuleBasedAuthorizationPluginBase

    • Constructor Detail

      • RuleBasedAuthorizationPluginBase

        public RuleBasedAuthorizationPluginBase()
    • Method Detail

      • getPermissionNamesForRoles

        public Set<String> getPermissionNamesForRoles​(Set<String> roles)
        Retrieves permission names for a given set of roles
      • getUserRoles

        public Set<String> getUserRoles​(AuthorizationContext context)
        Finds user roles
        Parameters:
        context - the authorization context to load roles from
        Returns:
        set of roles as strings or empty set if no roles are found
      • getUserRoles

        public abstract Set<String> getUserRoles​(Principal principal)
        Finds users roles
        Parameters:
        principal - the user Principal to fetch roles for
        Returns:
        set of roles as strings or empty set if no roles found
      • edit

        public Map<String,​Object> edit​(Map<String,​Object> latestConf,
                                             List<org.apache.solr.common.util.CommandOperation> commands)
        Description copied from interface: ConfigEditablePlugin
        Operate the commands on the latest conf and return a new conf object If there are errors in the commands , throw a SolrException. return a null if no changes are to be made as a result of this edit. It is the responsibility of the implementation to ensure that the returned config is valid . The framework does no validation of the data
        Specified by:
        edit in interface ConfigEditablePlugin
      • getSpec

        public org.apache.solr.common.util.ValidatingJsonMap getSpec()
        Specified by:
        getSpec in interface org.apache.solr.common.SpecProvider