Package org.vanted

Class KeggAccess

java.lang.Object
org.vanted.KeggAccess

public final class KeggAccess
extends Object
Handle KEGG Access with regards to the user.
Since:
2.8.0
Version:
3.0
Author:
Dímitar Garkov
  • Method Details

    • doEnableKEGGaskUser

      public static boolean doEnableKEGGaskUser()
      Show the message dialog for enabling KEGG access by accepting the license.
      Returns:
      true, if KEGG access should be enabled.
    • isKEGGAccepted

      public static boolean isKEGGAccepted()
      Whether the KEGG License agreement has been accepted by the user.
      Returns:
      true, if the correct file exists.
    • createLicenseFile

      public static void createLicenseFile​(String state)
      Create a new empty file, indicating the state of the KEGG license agreement.
      Parameters:
      state - either "accepted" or "rejected"
    • deleteLicenseFile

      public static void deleteLicenseFile​(String state)
      Deletes any existing file, indicating the state of the KEGG license agreement.
      Parameters:
      state - either "accepted" or "rejected"
    • getKEGGLicense

      public static String getKEGGLicense()
      Full license available at http://www.genome.jp/kegg/legal.html
      Returns:
      the HTML-adjusted text of the license
    • _askForEnablingKEGG

      @Deprecated public static int _askForEnablingKEGG()
      Deprecated.
      For compatibility reasons, please do not use!
      Returns:
      See askForEnablingKEGG()