/** @param other */
  public void updateFrom(RangerPolicy other) {
    super.updateFrom(other);

    setService(other.getService());
    setName(other.getName());
    setPolicyType(other.getPolicyType());
    setDescription(other.getDescription());
    setResourceSignature(other.getResourceSignature());
    setIsAuditEnabled(other.getIsAuditEnabled());
    setResources(other.getResources());
    setPolicyItems(other.getPolicyItems());
    setDenyPolicyItems(other.getDenyPolicyItems());
    setAllowExceptions(other.getAllowExceptions());
    setDenyExceptions(other.getDenyExceptions());
  }
  /**
   * @param service
   * @param name
   * @param policyType
   * @param description
   * @param resources
   * @param policyItems
   * @param resourceSignature TODO
   */
  public RangerPolicy(
      String service,
      String name,
      Integer policyType,
      String description,
      Map<String, RangerPolicyResource> resources,
      List<RangerPolicyItem> policyItems,
      String resourceSignature) {
    super();

    setService(service);
    setName(name);
    setPolicyType(policyType);
    setDescription(description);
    setResourceSignature(resourceSignature);
    setIsAuditEnabled(null);
    setResources(resources);
    setPolicyItems(policyItems);
    setDenyPolicyItems(null);
    setAllowExceptions(null);
    setDenyExceptions(null);
  }