public class MyEMFDatabase
extends javax.servlet.http.HttpServlet
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ORGANIZATION |
static String |
DWR_EM |
static String |
INIT_EM |
static String |
LDAP_DEFAULTGROUP |
static String |
LDAP_HOST |
static String |
LDAP_PORT |
static String |
LDAP_USELDAP |
static String |
LDAP_USERSUFFIX |
static String |
MAIN_EM |
static String |
MAPFILE_DIR |
static String |
REALM_EM |
static String |
SLD_EM |
static String |
UPLOAD_DIR |
static String |
USER_UPDATELASTLOGINSTATUS |
| Constructor and Description |
|---|
MyEMFDatabase() |
| Modifier and Type | Method and Description |
|---|---|
static void |
closeEntityManager(Object ownership,
String emKey) |
static Object |
createEntityManager(String emKey)
get the hibernate session and set it on the thread local.
|
static String[] |
getAllowedUploadFiles() |
static String |
getDefaultOrganization() |
static javax.persistence.EntityManager |
getEntityManager(String emKey) |
static javax.persistence.EntityManagerFactory |
getEntityManagerFactory() |
static String |
getLdapDefaultGroup() |
static String |
getLdapHost() |
static Integer |
getLdapPort() |
static Boolean |
getLdapUseLdap() |
static String |
getLdapUserSuffix() |
static String |
getMapfiles() |
static String |
getUpload() |
void |
init(javax.servlet.ServletConfig config) |
void |
initGlobalContextParams(javax.servlet.ServletConfig config) |
static String |
localPath()
Returns the local path of a filename.
|
static String |
localPath(String fileName) |
static void |
openEntityManagerFactory(String persistenceUnit) |
static String |
uniqueName(String prefix,
String extension)
Returns a unique name created with given parameters without taking the path into account.
|
static String |
uniqueName(String prefix,
String extension,
boolean includePath)
Returns a unique name created with given parameters.
|
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, servicepublic static final String MAPFILE_DIR
public static final String UPLOAD_DIR
public static final String DEFAULT_ORGANIZATION
public static final String LDAP_USELDAP
public static final String LDAP_DEFAULTGROUP
public static final String LDAP_HOST
public static final String LDAP_PORT
public static final String LDAP_USERSUFFIX
public static final String USER_UPDATELASTLOGINSTATUS
public static final String MAIN_EM
public static final String INIT_EM
public static final String REALM_EM
public static final String DWR_EM
public static final String SLD_EM
public static void openEntityManagerFactory(String persistenceUnit) throws Exception
Exceptionpublic static javax.persistence.EntityManagerFactory getEntityManagerFactory()
throws Exception
Exceptionpublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletExceptionpublic void initGlobalContextParams(javax.servlet.ServletConfig config)
public static Object createEntityManager(String emKey) throws Exception
Exceptionpublic static javax.persistence.EntityManager getEntityManager(String emKey) throws Exception
Exceptionpublic static String localPath()
fileName - String containing the fileNamepublic static String uniqueName(String prefix, String extension)
prefix - String containing the prefix.extension - String containing the extension.public static String uniqueName(String prefix, String extension, boolean includePath)
prefix - String containing the prefix.extension - String containing the extension.includePath - boolean setting the including of the path to true or false.public static String[] getAllowedUploadFiles()
public static String getMapfiles()
public static String getUpload()
public static String getDefaultOrganization()
public static Boolean getLdapUseLdap()
public static String getLdapDefaultGroup()
public static String getLdapHost()
public static Integer getLdapPort()
public static String getLdapUserSuffix()
Copyright © 2015. All rights reserved.