org.picketlink.permission.PermissionManager Maven / Gradle / Ivy
package org.picketlink.permission;
import java.util.Collection;
/**
* Manages user, role and group permissions.
*
* @author Shane Bryzak
*
*/
public interface PermissionManager
{
/**
*
* @return A new PermissionQuery
*/
PermissionQuery createPermissionQuery();
/**
*
* @param permission
*/
void grantPermission(Permission permission);
/**
*
* @param permission
*/
void grantPermissions(Collection permission);
/**
*
* @param permission
*/
void revokePermission(Permission permission);
/**
*
* @param permissions
*/
void revokePermissions(Collection permissions);
}