public static RcObjectMetadata getRcObjMd(String extObjId) throws RcMetadataException { RcWebApp rcWebApp = RcWebApp.getInstance(); String extObjIdParts[] = extObjId.split("/", 2); String collId = extObjIdParts[0]; String objId = extObjIdParts[1]; RcCollectionMetadata rcCollMd = rcWebApp.getCollectionMetadata(collId); if (rcCollMd == null) { throw new RcMetadataException("Unable to find collection metadata for " + collId + "."); } RcObjectMetadata rcObjMd = rcCollMd.getObject(objId); if (rcObjMd == null) { throw new RcMetadataException("Unable to find object metadata for " + objId + " in collection " + collId + "."); } return rcObjMd; }
throw new RcMetadataException(exceptionPrefix + "object has no parent file system data source.");
throw new RcMetadataException(exPrefix + "the audio object contains no WAVE files."); throw new RcMetadataException(exPrefix + "the audio object contains multiple WAVE files.");
throw new RcMetadataException(exceptionPrefix + "unknown mode specified."); throw new RcMetadataException(exceptionPrefix + "unsupported ResCarta object type " + rcObjectMetadata.getObjectType() + ".");
RcCollectionMetadata rcCollMd = this.rcWebApp.getCollectionMetadata(collId); if (rcCollMd == null) { throw new RcMetadataException(EXCEPTION_PREFIX + "collection metadata for " + collId + " was not found."); RcObjectMetadata rcObjMd = rcCollMd.getObject(objId); if (rcObjMd == null) { throw new RcMetadataException(EXCEPTION_PREFIX + "object metadata for " + objId + " in collection " + collId + " was not found."); throw new RcMetadataException(EXCEPTION_PREFIX + "page sequence " + pgSeq + " not found."); if (rcFsDsMd == null) { throw new RcMetadataException(EXCEPTION_PREFIX + "object has no parent file system data source.");
throw new RcMetadataException(t);
throw new RcMetadataException("The object " + rcObjectMetadataToAdd[i].getId() + " already exists in " + this.rcCollectionMetadata.getTitle() + "."); throw new RcMetadataException("The date captured for title \"" + rcObjectMetadataToAdd[i].getTitle() + "\" is not ISO8601 compliant."); if (rcObjectMetadataToAdd[i].getDatePublished() != null && rcObjectMetadataToAdd[i].getDatePublished().trim().length() > 0 && (!RcDateUtils.isISO8601(rcObjectMetadataToAdd[i].getDatePublished()))) throw new RcMetadataException("The date published for title \"" + rcObjectMetadataToAdd[i].getTitle() + "\" is not ISO8601 compliant.");