Tabnine Logo
RcObjectMetadata.getRootId
Code IndexAdd Tabnine to your IDE (free)

How to use
getRootId
method
in
org.rescarta.metadata.RcObjectMetadata

Best Java code snippets using org.rescarta.metadata.RcObjectMetadata.getRootId (Showing top 5 results out of 315)

origin: org.rescarta.rc-mct/rc-mct

/**
 * Checks if an object id using the specified institution id, aggregator id,
 * and root id has already been used in the current data set.
 * 
 * @param institutionId
 *            The institution is the check for.
 * @param aggregatorId
 *            The aggregator id to check for.
 * @param rootId
 *            The root id to check for.
 * 
 * @return True if an object id using the specified institution id,
 *         aggregator id, and root id has already been used in the current
 *         data set.
 */
private boolean isObjectIdUsed(String institutionId, String aggregatorId, String rootId) {
  if (this.targetObjects != null) {
    for (RcMetadata rcMd : this.targetObjects) {
      if (rcMd instanceof RcObjectMetadata &&
          ((RcObjectMetadata) rcMd).getInstitutionId().equals(institutionId) &&
          ((RcObjectMetadata) rcMd).getAggregator().equals(aggregatorId) &&
          ((RcObjectMetadata) rcMd).getRootId().equals(rootId)) {
        return true;
      }
    }
  }
  return false;
}
origin: org.rescarta.rc-cmgr/rc-cmgr

curOutputFilename += curRcObjectMetadata.getRootId();
curOutputFilename += ".xml";
curOutputFilename += curRcObjectMetadata.getRootId() + File.separator;
if (rcDcOutputParams.getDcFilenameMode() == RcDcOutputParameters.DC_OUTPUT_FILENAME_USE_FULL_OBJECT_ID) {
  curOutputFilename += curRcObjectMetadata.getInstitutionId();
  curOutputFilename += curRcObjectMetadata.getAggregator();
  curOutputFilename += curRcObjectMetadata.getRootId();
  curOutputFilename += ".xml";
origin: org.rescarta.rc-dct/rc-dct

curDestinationDirName = rootDestinationDirName + rcObjMd.getInstitutionId() + File.separator + rcObjMd.getAggregator() + File.separator + rcObjMd.getRootId();
curDestinationDir = new File(curDestinationDirName);
if (curDestinationDir.exists() && curDestinationDir.listFiles().length > 0) {
origin: org.rescarta.rc-mct/rc-mct

    this.config.getObjectIdSource() == RcMetadataCreationToolConfiguration.SHARED_FILE_OBJECT_ID_SOURCE) {
  String finalizedRootId = rcFileSyncObjIdSrc.getRootId(rcObjMd.getInstitutionId(), rcObjMd.getAggregator());
  if (!finalizedRootId.equals(rcObjMd.getRootId())) {
    this.showInformationMessageDialog("Root id " + rcObjMd.getRootId() + " was taken by another user.  Root id " + finalizedRootId + " will be used instead.", "Root Id Reassigned");
    rcObjMd.setRootId(finalizedRootId);
if (this.creatingMetadata) {
  String curRootId = rcObjMd.getRootId();
  if (this.config.getObjectIdSource() == RcMetadataCreationToolConfiguration.USER_CONFIGURATION_OBJECT_ID_SOURCE) {
origin: org.rescarta.rc-dct/rc-dct

if (!curDestinationDirectory.exists())
  curDestinationDirectory.mkdir();
curDestinationDirectoryPath += curSourceRcObjectMetadata.getRootId() + File.separator;
curDestinationDirectory = new File(curDestinationDirectoryPath);
if (curDestinationDirectory.exists())
org.rescarta.metadataRcObjectMetadatagetRootId

Popular methods of RcObjectMetadata

  • getObjectType
  • getId
  • getTitle
  • clearStructure
  • getNames
  • loadStructure
  • readMets
  • getAggregator
  • getDateCaptured
  • getDatePublished
  • getInstitutionId
  • getParentFileSystemDataSourceMetadata
  • getInstitutionId,
  • getParentFileSystemDataSourceMetadata,
  • clone,
  • getLanguages,
  • getMods,
  • readMods,
  • setRootId,
  • writeMets,
  • getAbstract

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now