Exemplo n.º 1
0
  private void removeUserInformation() {
    if (element instanceof ISingleObject) {
      ISingleObject so = (ISingleObject) element;
      DBObject projectData = so.getData();
      ObjectId id = (ObjectId) projectData.get(IDBConstants.FIELD_SYSID);
      DBObject charger = (DBObject) projectData.get(IDBConstants.FIELD_PROJECT_PM);

      DataUtil.saveUserRelationInformation(
          (ObjectId) charger.get(IDBConstants.FIELD_SYSID),
          null,
          IDBConstants.COLLECTION_USER_PROJECT_IN_CHARGED,
          id);
    }
  }