Project

General

Profile

« Previous | Next » 

Revision 5025

Added by daigle over 14 years ago

Move document specific utilities to DocumentUtil from MetacatUtil. This makes it easier to define a layer between the core metacat services and the rest of the code.

View differences:

AccessControlForSingleFile.java
38 38

  
39 39
import edu.ucsb.nceas.metacat.database.DBConnection;
40 40
import edu.ucsb.nceas.metacat.database.DBConnectionPool;
41
import edu.ucsb.nceas.metacat.util.MetacatUtil;
41
import edu.ucsb.nceas.metacat.util.DocumentUtil;
42 42

  
43 43

  
44 44
/** 
......
77 77
    try
78 78
    {
79 79
      //Get rid of dev if myaccessNumber has one;
80
      docId = MetacatUtil.getDocIdFromString(myAccessionNumber);
80
      docId = DocumentUtil.getDocIdFromString(myAccessionNumber);
81 81
      if (docId == null || docId.equals(""))
82 82
      {
83 83
        throw new Exception("Docid couldn't be null");

Also available in: Unified diff