package com.orientechnologies.orient.core.metadata.security;

import com.orientechnologies.orient.core.record.OElement;

public class OSecurityPolicy {
  private OElement element;

  public OSecurityPolicy(OElement element) {
    this.element = element;
  }

  public OElement getElement() {
    return element;
  }

  public void setElement(OElement element) {
    this.element = element;
  }

  public String getName(){
    return element.getProperty("name");
  }
}

@@ -413,16 +413,17 @@
 etName()
+ 
 %7B%0A    re
@@ -459,11 +459,1638 @@
 e%22);%0A  %7D
+%0A%0A  public void setName(String name) %7B%0A    element.setProperty(%22name%22, name);%0A  %7D%0A%0A  public boolean isActive() %7B%0A    return Boolean.TRUE.equals(this.element.getProperty(%22active%22));%0A  %7D%0A%0A  public void setActive(Boolean active) %7B%0A    this.element.setProperty(%22active%22, active);%0A  %7D%0A%0A%0A  public String getCreateRule() %7B%0A    return element.getProperty(%22create%22);%0A  %7D%0A%0A  public void setCreateRule(String rule) throws IllegalArgumentException %7B%0A    element.setProperty(%22create%22, rule);%0A  %7D%0A%0A%0A  public String getReadRule() %7B%0A    return element.getProperty(%22read%22);%0A  %7D%0A%0A  public void setReadRule(String rule) throws IllegalArgumentException %7B%0A    element.setProperty(%22read%22, rule);%0A  %7D%0A%0A  public String getBeforeUpdateRule() %7B%0A    return element.getProperty(%22beforeUpdate%22);%0A  %7D%0A%0A  public void setBeforeUpdateRule(String rule) throws IllegalArgumentException %7B%0A    element.setProperty(%22beforeUpdate%22, rule);%0A  %7D%0A%0A  public String getAfterUpdateRule() %7B%0A    return element.getProperty(%22afterUpdate%22);%0A  %7D%0A%0A  public void setAfterUpdateRule(String rule) throws IllegalArgumentException %7B%0A    element.setProperty(%22afterUpdate%22, rule);%0A  %7D%0A%0A  public String getDeleteRule() %7B%0A    return element.getProperty(%22delete%22);%0A  %7D%0A%0A  public void setDeleteRule(String rule) throws IllegalArgumentException %7B%0A    element.setProperty(%22delete%22, rule);%0A  %7D%0A%0A  public String getExecuteRule() %7B%0A    return element.getProperty(%22execute%22);%0A  %7D%0A%0A  public void setExecuteeRule(String rule) throws IllegalArgumentException %7B%0A    element.setProperty(%22execute%22, rule);%0A  %7D%0A%0A  void validatePredicate(String predicate) throws IllegalArgumentException %7B%0A    //TODO%0A  %7D
 %0A%7D%0A

Implement OSecurityPolicy pojo