public void setPermissions(Collection<PermissionEntity> permissions) {
    this.permissions = permissions;
  }
Set the custom view permissions.

@param permissions  the permissions
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java