Tabnine Logo
SignatureFileInfo.hasError
Code IndexAdd Tabnine to your IDE (free)

How to use
hasError
method
in
uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureFileInfo

Best Java code snippets using uk.gov.nationalarchives.droid.core.interfaces.signature.SignatureFileInfo.hasError (Showing top 4 results out of 315)

origin: digital-preservation/droid

/**
 * {@inheritDoc}
 */
@Override
protected Map<SignatureType, SignatureFileInfo> doInBackground() throws SignatureManagerException {
  Map<SignatureType, SignatureFileInfo> downloaded = new HashMap<SignatureType, SignatureFileInfo>();
  
  for (SignatureFileInfo update : updates) {
    if (!update.hasError()) {
      downloaded.put(update.getType(), signatureManager.downloadLatest(update.getType()));
    }
  }
  
  return downloaded;
}
origin: uk.gov.nationalarchives/droid-ui

/**
 * {@inheritDoc}
 */
@Override
protected Map<SignatureType, SignatureFileInfo> doInBackground() throws SignatureManagerException {
  Map<SignatureType, SignatureFileInfo> downloaded = new HashMap<SignatureType, SignatureFileInfo>();
  
  for (SignatureFileInfo update : updates) {
    if (!update.hasError()) {
      downloaded.put(update.getType(), signatureManager.downloadLatest(update.getType()));
    }
  }
  
  return downloaded;
}
origin: uk.gov.nationalarchives/droid-ui

/**
 * @param newSignaureUpdateAction
 */
private List<SignatureFileInfo> promptForUpdate(final Collection<SignatureFileInfo> signatureFileInfos) {
  List<SignatureFileInfo> filesToUpdate = new ArrayList<SignatureFileInfo>();
  
  for (SignatureFileInfo sigFileInfo : signatureFileInfos) {
    if (sigFileInfo.hasError()) {
      DialogUtils.showSignatureUpdateErrorDialog(this, sigFileInfo.getError());
    } else {
      if (DialogUtils.showUpdateAvailableDialog(this, sigFileInfo) == JOptionPane.YES_OPTION) {
        filesToUpdate.add(sigFileInfo);
      }
    }
  }
  
  return filesToUpdate;
}
origin: digital-preservation/droid

/**
 * @param signatureFileInfos
 */
private List<SignatureFileInfo> promptForUpdate(final Collection<SignatureFileInfo> signatureFileInfos) {
  List<SignatureFileInfo> filesToUpdate = new ArrayList<>();
  
  for (SignatureFileInfo sigFileInfo : signatureFileInfos) {
    if (sigFileInfo.hasError()) {
      DialogUtils.showSignatureUpdateErrorDialog(this, sigFileInfo.getError());
    } else {
      if (DialogUtils.showUpdateAvailableDialog(this, sigFileInfo) == JOptionPane.YES_OPTION) {
        filesToUpdate.add(sigFileInfo);
      }
    }
  }
  
  return filesToUpdate;
}
uk.gov.nationalarchives.droid.core.interfaces.signatureSignatureFileInfohasError

Popular methods of SignatureFileInfo

  • getFile
  • getVersion
  • <init>
    Constructor for describing an error condition withe signature service.
  • getType
  • setFile
  • getError

Popular in Java

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • setScale (BigDecimal)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Permission (java.security)
    Legacy security code; do not use.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top plugins for Android Studio
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