Ejemplo n.º 1
0
  /**
   * Return the specific DSpaceObject. Could be a community, collection or item.
   *
   * @param context DSpace context
   * @param type DSpace Object Type
   * @param ref ID of the object
   * @return the DSpaceObject if exists or null
   */
  private DSpaceObject getDSpaceObject(Context context, int type, int ref) {
    DSpaceObject obj = null;
    try {
      obj = DSpaceObject.find(context, type, ref);
    } catch (SQLException ex) {
      Logger.getLogger(ActualContentManagement.class.getName()).log(Level.SEVERE, null, ex);
    }

    return obj;
  }