Examples of addToImportErrorHolder()


Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

                    keys[i].startsWith("repo") ? ContentType.COMMUNITY
                        : ContentType.COLLECTION,
                    valueFromUltimate);
            if (contentId == -1)
            {
              vbo.addToImportErrorHolder(
                  "Couldn't locate parent repository with ID '"
                      + valueFromUltimate + "'", false);
            }
            else
            {
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

              testMethod.invoke(vbo, args);
            }
          }
          catch( NoSuchMetadataException e )
          {
            vbo.addToImportErrorHolder(keys[i] + " parent '"
                + valueFromUltimate + "' couldn't be located.",
                false);
          }
        }
        else
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

                  valueFromUltimate);
            }
          }
          catch( NoSuchMetadataException e )
          {
            vbo.addToImportErrorHolder(
                "Couldn't get a metadata ID for element '"
                    + element + "' and qualifier '"
                    + qualifier + "'", true);
          }
        }
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

          vbo.addToMetadataRegistry(metadataElement.getMetadataId(),
              metadataValue);
          try {
            vbo.validateMetadata(metadataElement, metadataValue);
          } catch (ValidationException e) {
            vbo.addToImportErrorHolder("Validation error on "
                + metadataElement
                    .getFriendlyElementQualifierName()
                + ": " + e.getMessage(), true);
          }
        }
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

        if (!hadFatalErrors) {
          if (((vbo.getType() == ContentType.ITEM.getValue()) || (vbo
              .getType() == ContentType.BUNDLE.getValue()))
              && (vbo.getImportCollectionIDs().size() == 0)
              && vbo.getImportCommunityIDs().size() == 0) {
            vbo.addToImportErrorHolder(
                "Imported items and bundles "
                    + "must have a collection or "
                    + "community parent.", true);
          } else {
            importCounter++;
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

              // this is the only exception that'll mean
              // the item itself wasn't imported ... the
              // rest are failed mappings that we'll leave
              // to the administrator to resolve.
              importCounter--;
              vbo.addToImportErrorHolder(
                  "A database problem occurred: "
                      + e.getMessage(), false);
              Logger.warn("SQLException during import", e);
            } catch (NoSuchCommunityException e) {
              vbo.addToImportErrorHolder(
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

              vbo.addToImportErrorHolder(
                  "A database problem occurred: "
                      + e.getMessage(), false);
              Logger.warn("SQLException during import", e);
            } catch (NoSuchCommunityException e) {
              vbo.addToImportErrorHolder(
                  "A community couldn't be found for mapping: "
                      + e.getMessage(), false);
              Logger.debug("mapping to community failed", e);
            } catch (NoSuchCollectionException e) {
              vbo.addToImportErrorHolder(
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

              vbo.addToImportErrorHolder(
                  "A community couldn't be found for mapping: "
                      + e.getMessage(), false);
              Logger.debug("mapping to community failed", e);
            } catch (NoSuchCollectionException e) {
              vbo.addToImportErrorHolder(
                  "A collection couldn't be found for mapping: "
                      + e.getMessage(), false);
              Logger.debug("mapping to collection failed", e);
            } catch (NoSuchBundleException e) {
              vbo.addToImportErrorHolder(
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

              vbo.addToImportErrorHolder(
                  "A collection couldn't be found for mapping: "
                      + e.getMessage(), false);
              Logger.debug("mapping to collection failed", e);
            } catch (NoSuchBundleException e) {
              vbo.addToImportErrorHolder(
                  "A bundle couldn't be found for mapping: "
                      + e.getMessage(), false);
              Logger.debug("mapping to bundle failed", e);
            } catch (NoSuchItemException e) {
              vbo.addToImportErrorHolder(
View Full Code Here

Examples of edu.uga.galileo.voci.bo.VociBusinessObject.addToImportErrorHolder()

              vbo.addToImportErrorHolder(
                  "A bundle couldn't be found for mapping: "
                      + e.getMessage(), false);
              Logger.debug("mapping to bundle failed", e);
            } catch (NoSuchItemException e) {
              vbo.addToImportErrorHolder(
                  "An item couldn't be found for mapping: "
                      + e.getMessage(), false);
              Logger.debug("mapping to item failed", e);
            }
          }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.