public void setPrivileges(Set<PrivilegeEntity> privileges) {
    this.privileges = privileges;
  }
Set the principal privileges.

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