Project

General

Profile

Revision 4485

Added by daigle about 12 years ago

Add some generic typing

View differences:

src/edu/ucsb/nceas/metacat/PermissionController.java
651 651
    * @param principals, list of names of principals to check for
652 652
    * @param docid, document identifier to check for
653 653
    */
654
  public Vector getAccessControl()
654
  public Vector<AccessControlForSingleFile> getAccessControl()
655 655
                  throws SQLException, Exception
656 656
  {
657
	  Vector accessControl = new Vector();
657
	Vector<AccessControlForSingleFile> accessControl = new Vector<AccessControlForSingleFile>();
658 658
    boolean hasRow;
659 659
    PreparedStatement pStmt = null;
660 660
    DBConnection conn = null;
src/edu/ucsb/nceas/metacat/DBUtil.java
440 440
  /**
441 441
   * get the lastest Accession Number from a particular scope
442 442
   */
443
  public Vector getAllDocids(String scope)
443
  public Vector<String> getAllDocids(String scope)
444 444
        throws SQLException  {
445
    Vector resultVector = new Vector();
445
    Vector<String> resultVector = new Vector<String>();
446 446
    String accnum = null;
447 447
    String sep = ".";
448 448
    try {
src/edu/ucsb/nceas/metacat/util/MetaCatUtil.java
82 82
     * from the value (e.g., name=tom&zip=99801 ). Returns a has of the name
83 83
     * value pairs, hashed on name.
84 84
     */
85
    public static Hashtable parseQuery(String query)
85
    public static Hashtable<String,String> parseQuery(String query)
86 86
            throws MalformedURLException
87 87
    {
88 88
        String[][] params = new String[200][2];
89
        Hashtable parameters = new Hashtable();
89
        Hashtable<String,String> parameters = new Hashtable<String,String>();
90 90

  
91 91
        String temp = "";
92 92
        boolean ampflag = true;

Also available in: Unified diff