public void setPrincipal(PrincipalEntity principal) {
    this.principal = principal;
  }
Set the principal entity.

@param principal  the principal entity
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/PrivilegeEntity.java