public boolean checkPermission ( String user , List < String > groups , AclAction action ) { return getPermission ( user , groups ) . contains ( action ) ; }
Checks whether the user has the permission to perform the action .