Package ORG.oclc.oai.server.verb

Examples of ORG.oclc.oai.server.verb.CannotDisseminateFormatException


        if (metadataPrefix != null) {
            if (debug) {
                System.out.println(getCrosswalks());
            }
            if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null)
                throw new CannotDisseminateFormatException(metadataPrefix);
        }
        return getRecordFactory().create(nativeRecord, schemaURL, metadataPrefix, setSpecs, abouts);
    }
View Full Code Here


        Iterator setSpecs = getSetSpecs(nativeItem);
        Iterator abouts = getAbouts(nativeItem);
       
        if (metadataPrefix != null) {
            if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null)
                throw new CannotDisseminateFormatException(metadataPrefix);
        }
        return getRecordFactory().create(nativeItem, schemaURL, metadataPrefix, setSpecs, abouts);
    }
View Full Code Here

                if (debug) System.out.println("Bad argument");
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue("oai_dc")) {
                if (debug) System.out.println("crosswalk not present: oai_dc");
    throw new CannotDisseminateFormatException("oai_dc");
      } else {
     String metadata = abstractCatalog.getRecord(identifier, "oai_dc");
     if (metadata != null) {
                    sb.append(metadata);
      } else {
View Full Code Here

                if (debug) System.out.println("Bad argument");
    throw new BadArgumentException();
      }
      else if (!crosswalks.containsValue(metadataPrefix)) {
                if (debug) System.out.println("crosswalk not present: " + metadataPrefix);
    throw new CannotDisseminateFormatException(metadataPrefix);
      } else {
     String metadata = abstractCatalog.getMetadata(identifier, metadataPrefix);
     if (metadata != null) {
                    sb.append(metadata);
     } else {
View Full Code Here

  Iterator setSpecs = getSetSpecs(nativeItem);
  Iterator abouts = getAbouts(nativeItem);

        if (metadataPrefix != null) {
            if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null)
                throw new CannotDisseminateFormatException(metadataPrefix);
        }
        return getRecordFactory().create(nativeItem, schemaURL, metadataPrefix, setSpecs, abouts);
    }
View Full Code Here

        Iterator setSpecs = getSetSpecs(nativeItem);
        Iterator abouts = getAbouts(nativeItem);
       
        if (metadataPrefix != null) {
            if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null)
                throw new CannotDisseminateFormatException(metadataPrefix);
        }
        return getRecordFactory().create(nativeItem, schemaURL, metadataPrefix, setSpecs, abouts);
    }
View Full Code Here

           
            Iterator setSpecs = this.getRecordFactory().getSetSpecs(folder);
            String schemaURL = null;
            if (metadataPrefix != null) {
                if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null) {
                    throw new CannotDisseminateFormatException(metadataPrefix);
                }
            }
           
            return getRecordFactory().create(folder, schemaURL, metadataPrefix, setSpecs, new ArrayList().iterator());
        } finally {
View Full Code Here

  Iterator setSpecs = getSetSpecs(nativeItem);
  Iterator abouts = getAbouts(nativeItem);

        if (metadataPrefix != null) {
            if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null)
                throw new CannotDisseminateFormatException(metadataPrefix);
        }
        return getRecordFactory().create(nativeItem, schemaURL, metadataPrefix, setSpecs, abouts);
    }
View Full Code Here

        Iterator setSpecs = getSetSpecs(nativeItem);
        Iterator abouts = getAbouts(nativeItem);
       
        if (metadataPrefix != null) {
            if ((schemaURL = getCrosswalks().getSchemaURL(metadataPrefix)) == null)
                throw new CannotDisseminateFormatException(metadataPrefix);
        }
        return getRecordFactory().create(nativeItem, schemaURL, metadataPrefix, setSpecs, abouts);
    }
View Full Code Here

            }
       
            return result;
        } catch (OAIInternalServerError e) {
            e.printStackTrace();
            throw new CannotDisseminateFormatException(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of ORG.oclc.oai.server.verb.CannotDisseminateFormatException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.