public abstract class AbstractHibernateProcedureDescriptionGenerator extends Object
Modifier and Type | Field and Description |
---|---|
protected static com.google.common.base.Joiner |
COMMA_JOINER |
private Locale |
locale |
private static org.slf4j.Logger |
LOGGER |
Constructor and Description |
---|
AbstractHibernateProcedureDescriptionGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addNameAndDescription(Procedure procedure,
AbstractFeature feature) |
protected List<String> |
createDescriptions(Procedure procedure,
String[] observableProperties) |
protected List<CodeType> |
createNames(Procedure procedure)
Create a names collection for procedure description
|
abstract SosProcedureDescription |
generateProcedureDescription(Procedure procedure,
Locale i18n,
org.hibernate.Session session) |
(package private) ContentCache |
getCache() |
(package private) AbstractObservation |
getExampleObservation(String identifier,
String observableProperty,
org.hibernate.Session session)
Get example observation for output list creation
|
protected Locale |
getLocale() |
(package private) String[] |
getObservablePropertiesForProcedure(String identifier) |
(package private) ServiceConfiguration |
getServiceConfig() |
protected boolean |
hasChildProcedure(String procedure) |
protected boolean |
isSetLocale() |
(package private) ProcedureDescriptionSettings |
procedureSettings() |
protected void |
setCommonData(Procedure procedure,
AbstractFeature feature,
org.hibernate.Session session)
Set common values to procedure description
|
protected void |
setLocale(Locale i18n) |
private static final org.slf4j.Logger LOGGER
protected static final com.google.common.base.Joiner COMMA_JOINER
private Locale locale
public AbstractHibernateProcedureDescriptionGenerator()
public abstract SosProcedureDescription generateProcedureDescription(Procedure procedure, Locale i18n, org.hibernate.Session session) throws OwsExceptionReport
OwsExceptionReport
protected void setLocale(Locale i18n)
protected Locale getLocale()
protected boolean isSetLocale()
protected boolean hasChildProcedure(String procedure)
protected void setCommonData(Procedure procedure, AbstractFeature feature, org.hibernate.Session session) throws OwsExceptionReport
procedure
- Hibernate procedure entityabstractProcess
- SensorML processsession
- the sessionOwsExceptionReport
- If an error occursprotected void addNameAndDescription(Procedure procedure, AbstractFeature feature) throws OwsExceptionReport
OwsExceptionReport
protected List<CodeType> createNames(Procedure procedure)
procedure
- Hibernate procedure entityprotected List<String> createDescriptions(Procedure procedure, String[] observableProperties)
AbstractObservation getExampleObservation(String identifier, String observableProperty, org.hibernate.Session session) throws OwsExceptionReport
identifier
- Procedure identifierobservableProperty
- ObservableProperty identifiersession
- the sessionOwsExceptionReport
- If an error occurs.ServiceConfiguration getServiceConfig()
ProcedureDescriptionSettings procedureSettings()
ContentCache getCache()
Copyright © 2012-2015 52north.org. All Rights Reserved.