public class SessionUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_SOURCE |
static String |
EJB_OCCURENCE |
static String |
EJB_OCCURRENCES_JOB |
static String |
EJB_RESULT_ROW |
static String |
EJB_TAXON_ROW |
static String |
EJB_TAXONOMY |
static String |
EJB_TAXONOMY_JOB |
static String |
ENTITY_FACTORY |
protected static org.apache.log4j.Logger |
logger |
static String |
SEARCH_SESSION |
static String |
SPECIES_SERVICE |
static String |
TAXONOMY_OCCURRENCE |
static String |
USERNAME_ATTRIBUTE |
| Constructor and Description |
|---|
SessionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static org.gcube.application.framework.core.session.ASLSession |
getAslSession(javax.servlet.http.HttpSession httpSession) |
static OccurrenceJobPersistence |
getCurrentDaoOccurrencesJob(org.gcube.application.framework.core.session.ASLSession session) |
static TaxonomyJobPersistence |
getCurrentDAOTaxonomyJob(org.gcube.application.framework.core.session.ASLSession session) |
static OccurrenceRowPersistence |
getCurrentEJBOccurrence(org.gcube.application.framework.core.session.ASLSession session) |
static ResultRowPersistence |
getCurrentEJBResultRow(org.gcube.application.framework.core.session.ASLSession session) |
static TaxonomyRowPersistence |
getCurrentEJBTaxonomyItem(org.gcube.application.framework.core.session.ASLSession session) |
static TaxonRowPersistence |
getCurrentEJBTaxonRow(org.gcube.application.framework.core.session.ASLSession session) |
static FetchingSession<Occurrence> |
getCurrentOccurrenceSession(org.gcube.application.framework.core.session.ASLSession session) |
static FetchingSession<? extends FetchingElement> |
getCurrentSearchSession(org.gcube.application.framework.core.session.ASLSession session) |
static javax.persistence.EntityManagerFactory |
getEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session) |
static SpeciesService |
getService(org.gcube.application.framework.core.session.ASLSession session) |
static void |
setCurrentDAOTaxonomyJob(org.gcube.application.framework.core.session.ASLSession session,
TaxonomyJobPersistence taxonomyJobPeristence) |
static void |
setCurrentEJBOccurrence(org.gcube.application.framework.core.session.ASLSession session,
OccurrenceRowPersistence occurrenceRowPersistence) |
static void |
setCurrentEJBOccurrencesJob(org.gcube.application.framework.core.session.ASLSession session,
OccurrenceJobPersistence occurrenceJobPersistence) |
static void |
setCurrentEJBResultRow(org.gcube.application.framework.core.session.ASLSession session,
ResultRowPersistence resultRowPersistence) |
static void |
setCurrentEJBTaxonomyItem(org.gcube.application.framework.core.session.ASLSession session,
TaxonomyRowPersistence taxonomyItemDAO) |
static void |
setCurrentEJBTaxonRow(org.gcube.application.framework.core.session.ASLSession session,
TaxonRowPersistence taxonRowPersistence) |
static void |
setCurrentOccurrenceSession(org.gcube.application.framework.core.session.ASLSession session,
FetchingSession<Occurrence> searchSession) |
static void |
setCurrentSearchSession(org.gcube.application.framework.core.session.ASLSession session,
FetchingSession<? extends FetchingElement> searchSession) |
static void |
setEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session,
javax.persistence.EntityManagerFactory factory) |
public static final String SPECIES_SERVICE
public static final String SEARCH_SESSION
public static final String TAXONOMY_OCCURRENCE
public static final String CONNECTION_SOURCE
public static final String USERNAME_ATTRIBUTE
public static final String ENTITY_FACTORY
public static final String EJB_RESULT_ROW
public static final String EJB_TAXON_ROW
public static final String EJB_OCCURENCE
public static final String EJB_TAXONOMY
public static final String EJB_OCCURRENCES_JOB
public static final String EJB_TAXONOMY_JOB
protected static org.apache.log4j.Logger logger
public static javax.persistence.EntityManagerFactory getEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session)
public static void setEntityManagerFactory(org.gcube.application.framework.core.session.ASLSession session,
javax.persistence.EntityManagerFactory factory)
public static SpeciesService getService(org.gcube.application.framework.core.session.ASLSession session) throws Exception
Exceptionpublic static FetchingSession<? extends FetchingElement> getCurrentSearchSession(org.gcube.application.framework.core.session.ASLSession session)
public static void setCurrentSearchSession(org.gcube.application.framework.core.session.ASLSession session,
FetchingSession<? extends FetchingElement> searchSession)
public static FetchingSession<Occurrence> getCurrentOccurrenceSession(org.gcube.application.framework.core.session.ASLSession session)
public static void setCurrentOccurrenceSession(org.gcube.application.framework.core.session.ASLSession session,
FetchingSession<Occurrence> searchSession)
public static org.gcube.application.framework.core.session.ASLSession getAslSession(javax.servlet.http.HttpSession httpSession)
public static void setCurrentEJBResultRow(org.gcube.application.framework.core.session.ASLSession session,
ResultRowPersistence resultRowPersistence)
public static ResultRowPersistence getCurrentEJBResultRow(org.gcube.application.framework.core.session.ASLSession session)
public static void setCurrentEJBTaxonRow(org.gcube.application.framework.core.session.ASLSession session,
TaxonRowPersistence taxonRowPersistence)
public static TaxonRowPersistence getCurrentEJBTaxonRow(org.gcube.application.framework.core.session.ASLSession session)
public static void setCurrentEJBOccurrence(org.gcube.application.framework.core.session.ASLSession session,
OccurrenceRowPersistence occurrenceRowPersistence)
public static OccurrenceRowPersistence getCurrentEJBOccurrence(org.gcube.application.framework.core.session.ASLSession session)
public static TaxonomyRowPersistence getCurrentEJBTaxonomyItem(org.gcube.application.framework.core.session.ASLSession session)
public static void setCurrentEJBTaxonomyItem(org.gcube.application.framework.core.session.ASLSession session,
TaxonomyRowPersistence taxonomyItemDAO)
public static void setCurrentEJBOccurrencesJob(org.gcube.application.framework.core.session.ASLSession session,
OccurrenceJobPersistence occurrenceJobPersistence)
public static OccurrenceJobPersistence getCurrentDaoOccurrencesJob(org.gcube.application.framework.core.session.ASLSession session)
public static TaxonomyJobPersistence getCurrentDAOTaxonomyJob(org.gcube.application.framework.core.session.ASLSession session)
public static void setCurrentDAOTaxonomyJob(org.gcube.application.framework.core.session.ASLSession session,
TaxonomyJobPersistence taxonomyJobPeristence)
Copyright © 2013. All Rights Reserved.