All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.security.MutableRolePermissionMapper Maven / Gradle / Ivy

There is a newer version: 15.1.0.Dev04
Show newest version
package org.infinispan.security;

import java.util.concurrent.CompletionStage;

/**
 * A {@link RolePermissionMapper} with the ability to add/remove roles at runtime
 *
 * @since 14.0
 **/
public interface MutableRolePermissionMapper extends RolePermissionMapper {
   /**
    * Adds a new role
    * @param role the role
    */
   CompletionStage addRole(Role role);

   /**
    * Removes a role
    * @param role the name of the role to be removed
    * @return true if a role with the supplied name was found and removed
    */
   CompletionStage removeRole(String role);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy