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 Summary
Modifier and Type Method Description static int
_askForEnablingKEGG()
Deprecated.static void
createLicenseFile(String state)
Create a new empty file, indicating the state of the KEGG license agreement.static void
deleteLicenseFile(String state)
Deletes any existing file, indicating the state of the KEGG license agreement.static boolean
doEnableKEGGaskUser()
Show the message dialog for enabling KEGG access by accepting the license.static String
getKEGGLicense()
Full license available at http://www.genome.jp/kegg/legal.htmlstatic boolean
isKEGGAccepted()
Whether the KEGG License agreement has been accepted by the user.
-
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
Create a new empty file, indicating the state of the KEGG license agreement.- Parameters:
state
- either "accepted" or "rejected"
-
deleteLicenseFile
Deletes any existing file, indicating the state of the KEGG license agreement.- Parameters:
state
- either "accepted" or "rejected"
-
getKEGGLicense
Full license available at http://www.genome.jp/kegg/legal.html- Returns:
- the HTML-adjusted text of the license
-
_askForEnablingKEGG
Deprecated.For compatibility reasons, please do not use!- Returns:
- See askForEnablingKEGG()
-