public class SITExtStore
extends java.lang.Object
| Constructor and Description |
|---|
SITExtStore() |
| Modifier and Type | Method and Description |
|---|---|
static net.sf.json.JSONObject |
extStore(net.sf.json.JSONArray obj,
net.sf.json.JsonConfig jsonConfig)
Crea lo store Ext che contiene la lista di oggetti passati .
|
static net.sf.json.JSONObject |
extStore(net.sf.json.JSONObject metaData,
JSGeometryArrayList<? extends JSGeometry> arr,
net.sf.json.JsonConfig jsonConfig)
Crea lo store Ext che contiene i metadati e le geometrie passate
|
static net.sf.json.JSONObject |
extStore(net.sf.json.JSONObject metaData,
net.sf.json.JSONArray arr,
net.sf.json.JsonConfig jsonConfig)
Crea lo store Ext che contiene i metadati e gli oggetti passati
|
static net.sf.json.JSONObject |
extStoreFromJSGeometryArrayList(JSGeometryArrayList<? extends JSGeometry> obj,
net.sf.json.JsonConfig jsonConfig)
Crea uno store Ext contenente un record per ogni geometria della lista.
|
static net.sf.json.JSONObject |
extStoreFromSITPaginatedResul(SITPaginatedResult pagRes,
boolean withGeometry,
java.lang.String toSRID,
net.sf.json.JsonConfig jsonConfig,
it.prato.comune.utilita.logging.interfaces.LogInterface logger)
Crea uno store Ext a partire da un
SITPaginatedResult. |
static net.sf.json.JSONObject |
extStoreFromString(java.lang.String str)
Crea uno store Ext a partire da una stringa.
|
static net.sf.json.JSONObject |
extStoreMetadata(java.lang.Object obj,
net.sf.json.JsonConfig jsonConfig)
Crea i metadati che saranno allegati allo store Ext
|
static net.sf.json.JSONObject |
extStoreSingleRecord(java.lang.Object obj,
net.sf.json.JsonConfig jsonConfig)
Crea lo store Ext che contiene un singolo record con l'oggetto passato (non vengono creati più record contenenti i singoli oggetti contenuti nella lista ma un unico record contenente la lista).
|
public static net.sf.json.JSONObject extStoreMetadata(java.lang.Object obj,
net.sf.json.JsonConfig jsonConfig)
obj - oggetti cge sarà contenuto nello store del quale vengono creati i metadatijsonConfig - Può essere null, se non lo è contiene la configurazione che sarà usata nei metodi di creazione degli oggetti JSONObjectpublic static net.sf.json.JSONObject extStore(net.sf.json.JSONObject metaData,
JSGeometryArrayList<? extends JSGeometry> arr,
net.sf.json.JsonConfig jsonConfig)
metaData - Metadati da allegare allo storearr - Array di geometriejsonConfig - Può essere null, se non lo è contiene la configurazione che sarà usata nei metodi di creazione degli oggetti JSONObjectpublic static net.sf.json.JSONObject extStore(net.sf.json.JSONObject metaData,
net.sf.json.JSONArray arr,
net.sf.json.JsonConfig jsonConfig)
metaData - Metadati da allegare allo storearr - Oggetti da includerejsonConfig - Può essere null, se non lo è contiene la configurazione che sarà usata nei metodi di creazione degli oggetti JSONObjectpublic static net.sf.json.JSONObject extStoreSingleRecord(java.lang.Object obj,
net.sf.json.JsonConfig jsonConfig)
obj - Oggetto da includere nello storejsonConfig - Ritorna l'oggetto JSONObject corrispondente allo store creatopublic static net.sf.json.JSONObject extStore(net.sf.json.JSONArray obj,
net.sf.json.JsonConfig jsonConfig)
obj - Lista di oggetti da includere nello storejsonConfig - Ritorna l'oggetto JSONObject corrispondente allo store creatopublic static net.sf.json.JSONObject extStoreFromJSGeometryArrayList(JSGeometryArrayList<? extends JSGeometry> obj, net.sf.json.JsonConfig jsonConfig)
obj - Array di geometrie da includere nello storejsonConfig - Ritorna l'oggetto JSONObject corrispondente allo store creatopublic static net.sf.json.JSONObject extStoreFromSITPaginatedResul(SITPaginatedResult pagRes, boolean withGeometry, java.lang.String toSRID, net.sf.json.JsonConfig jsonConfig, it.prato.comune.utilita.logging.interfaces.LogInterface logger) throws SITException
SITPaginatedResult.pagRes - Risultato paginato della ricercawithGeometry - Flag che indica se includere o meno la geometriatoSRID - SRID al quale convertirejsonConfig - oggetto JSONObject per la configurazione dello store creatologger - LoggerSITExceptionpublic static net.sf.json.JSONObject extStoreFromString(java.lang.String str)
str - Stringa di descrizioni separate da carriage return (\n)