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

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