public void setActions(Action[] assigned) {
    if (assigned != null && assigned.length > 0) {
      // setActions should cover the previous actions,
      // so we call clear here.
      actions.clear();
      actions.addAll(Arrays.asList(assigned));
    }
  }
check if given action is granted
@param action action to be checked
@return true if granted, false otherwise
hbase-client/src/main/java/org/apache/hadoop/hbase/security/access/Permission.java