public class EdalHelpers extends Object
| Constructor and Description |
|---|
EdalHelpers() |
| Modifier and Type | Method and Description |
|---|---|
static Subject |
authenticateGoogleUser(String httpProxyHost,
int httpProxyPort)
Authenticate user using the
GoogleLoginModule. |
static Subject |
authenticateGoogleUser(String user,
String httpProxyHost,
int httpProxyPort)
Authenticate user using the
GoogleLoginModule. |
static Subject |
authenticateIPKKerberosUser(String user)
Authenticate user using the IPK Kerberos-LoginModule.
|
static Subject |
authenticateSampleUser()
Authenticate user using the
SampleUserLoginModule
-LoginModule. |
static Subject |
authenticateUser(String name,
String password)
Authenticate user using the
UserLoginModule
-LoginModule. |
static Subject |
authenticateWinOrUnixOrMacUser()
Authenticate user using the Windows- or Unix- or MAC-LoginModule.
|
static ImplementationProvider |
getFileSystemImplementationProvider(boolean cleanMountPathBefore,
EdalConfiguration config)
Get a new
FileSystemImplementationProvider. |
static void |
getSearchStatistic(org.hibernate.stat.Statistics statistics)
Print SearchStatistic.
|
static void |
getStatistic(org.hibernate.stat.Statistics statistics)
Print PermissionStatistic.
|
public static Subject authenticateGoogleUser(String user, String httpProxyHost, int httpProxyPort) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
GoogleLoginModule.user - user name.httpProxyHost - the address of the HTTP proxy hosthttpProxyPort - the address of the HTTP proxy portSubjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateGoogleUser(String httpProxyHost, int httpProxyPort) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
GoogleLoginModule.Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateIPKKerberosUser(String user) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
user - user name.Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateUser(String name, String password) throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
UserLoginModule
-LoginModule.Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateSampleUser() throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
SampleUserLoginModule
-LoginModule.Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException - if unable to run LoginModule
successful.public static Subject authenticateWinOrUnixOrMacUser() throws de.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateException
Subjectde.ipk_gatersleben.bit.bi.edal.primary_data.security.EdalAuthenticateExceptionpublic static ImplementationProvider getFileSystemImplementationProvider(boolean cleanMountPathBefore, EdalConfiguration config) throws EdalException
FileSystemImplementationProvider. The path to use for
file storage and database is set to users home/edal_testcleanMountPathBefore - true if you want to clean the database before start eDAL.config - the EdalConfiguration class.FileSystemImplementationProviderEdalException - if unable to clean mount path or create new mount path.public static void getSearchStatistic(org.hibernate.stat.Statistics statistics)
statistics - public static void getStatistic(org.hibernate.stat.Statistics statistics)
statistics - Copyright © 2015 Leibniz Institute of Plant Genetics and Crop Plant Research (IPK). All rights reserved.