Class OrganizationUtil

java.lang.Object
edu.ucsb.nceas.metacat.util.OrganizationUtil

public class OrganizationUtil extends Object
  • Method Details

    • getOrganizations

      public static Vector<String> getOrganizations() throws MetacatUtilException
      gets a list of organization names from metacat.properties. Parses the csv string into a vector
      Returns:
      a Vector of Strings that hold all available organizations TODO MCD this should be retrieved from ldap instead of metacat.properties
      Throws:
      MetacatUtilException
    • getOrgDNs

      public static Vector<String> getOrgDNs(String orgName) throws MetacatUtilException
      gets a list of organization names from metacat.properties. Parses the csv string into a vector
      Returns:
      a Vector of Strings that hold all available organizations
      Throws:
      MetacatUtilException
    • areOrganizationsConfigured

      public static boolean areOrganizationsConfigured() throws MetacatUtilException
      Reports whether LDAP is fully configured.
      Returns:
      a boolean that is true if all sections are configured and false otherwise
      Throws:
      MetacatUtilException