public class SessionUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONNECTION_SOURCE |
static String |
CURRENT_SPD_QUERY |
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 HashMap<String,ClusterCommonNameDataSourceForResultRow> |
getCurrentClusterCommonNameForResultRow(org.gcube.application.framework.core.session.ASLSession session) |
static HashMap<String,ClusterCommonNameDataSourceForTaxonomyRow> |
getCurrentClusterCommonNameForTaxonomyRow(org.gcube.application.framework.core.session.ASLSession session) |
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 String |
getCurrentQuery(org.gcube.application.framework.core.session.ASLSession aslSession) |
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 HashMap<String,TaxonomyRow> |
getHashMapChildrenTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session) |
static HashMap<String,TaxonomyRow> |
getHashMapSynonymsTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session) |
static HashMap<String,TaxonomyRow> |
getHashMapTaxonomyByIdsCache(org.gcube.application.framework.core.session.ASLSession session) |
static SpeciesService |
getService(org.gcube.application.framework.core.session.ASLSession session) |
static void |
setCurrentClusterCommonNameForResultRow(org.gcube.application.framework.core.session.ASLSession session,
HashMap<String,ClusterCommonNameDataSourceForResultRow> hashClusterCommonNameDataSource) |
static void |
setCurrentClusterCommonNameForTaxonomyRow(org.gcube.application.framework.core.session.ASLSession session,
HashMap<String,ClusterCommonNameDataSourceForTaxonomyRow> hashClusterCommonNameDataSource) |
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 |
setCurrentQuery(org.gcube.application.framework.core.session.ASLSession aslSession,
String lastQuery) |
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) |
static void |
setHashMapChildrenTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session,
Map<String,TaxonomyRow> list) |
static void |
setHashMapSynonymsTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session,
Map<String,TaxonomyRow> list) |
static void |
setHashMapTaxonomyByIdsCache(org.gcube.application.framework.core.session.ASLSession session,
Map<String,TaxonomyRow> list) |
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
public static final String CURRENT_SPD_QUERY
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
Exception
public 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)
public static void setCurrentQuery(org.gcube.application.framework.core.session.ASLSession aslSession, String lastQuery)
aslSession
- lastQuery
- public static String getCurrentQuery(org.gcube.application.framework.core.session.ASLSession aslSession)
aslSession
- public static void setCurrentClusterCommonNameForResultRow(org.gcube.application.framework.core.session.ASLSession session, HashMap<String,ClusterCommonNameDataSourceForResultRow> hashClusterCommonNameDataSource)
hashClusterCommonNameDataSource
- public static HashMap<String,ClusterCommonNameDataSourceForResultRow> getCurrentClusterCommonNameForResultRow(org.gcube.application.framework.core.session.ASLSession session)
hashClusterCommonNameDataSource
- public static void setCurrentClusterCommonNameForTaxonomyRow(org.gcube.application.framework.core.session.ASLSession session, HashMap<String,ClusterCommonNameDataSourceForTaxonomyRow> hashClusterCommonNameDataSource)
hashClusterCommonNameDataSource
- public static HashMap<String,ClusterCommonNameDataSourceForTaxonomyRow> getCurrentClusterCommonNameForTaxonomyRow(org.gcube.application.framework.core.session.ASLSession session)
hashClusterCommonNameDataSource
- public static HashMap<String,TaxonomyRow> getHashMapChildrenTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session)
public static void setHashMapChildrenTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session, Map<String,TaxonomyRow> list)
public static HashMap<String,TaxonomyRow> getHashMapSynonymsTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session)
public static void setHashMapSynonymsTaxonomyCache(org.gcube.application.framework.core.session.ASLSession session, Map<String,TaxonomyRow> list)
public static HashMap<String,TaxonomyRow> getHashMapTaxonomyByIdsCache(org.gcube.application.framework.core.session.ASLSession session)
public static void setHashMapTaxonomyByIdsCache(org.gcube.application.framework.core.session.ASLSession session, Map<String,TaxonomyRow> list)
Copyright © 2016. All Rights Reserved.