Class GeoService
- java.lang.Object
-
- nl.tailormap.viewer.config.services.GeoService
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ArcGISService,TileService,WMSService
@Entity public abstract class GeoService extends Object implements Serializable
- Author:
- Matthijs Laan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDETAIL_ORIGINAL_NAMEstatic StringDETAIL_OVERRIDDEN_URLstatic StringDETAIL_USE_INTERSECTstatic StringDETAIL_USE_PROXYstatic StringPARAM_MUST_LOGINstatic StringPARAM_ONLINE_CHECK_ONLYstatic StringPARAM_PASSWORDHTTP Basic authentication password to use with pre-emptive authentication.static StringPARAM_USERNAMEHTTP Basic authentication username to use with pre-emptive authentication.
-
Constructor Summary
Constructors Constructor Description GeoService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidauthorizationsModified()DategetAuthorizationsModified()StringgetCapabilitiesDoc()CategorygetCategory()Map<String,ClobElement>getDetails()StringgetGeofenceHeader()LonggetId()Set<String>getKeywords()LayergetLayer(String layerName, javax.persistence.EntityManager em)Returns the layer with the given name in this server.List<Layer>getLayerChildrenCache(Layer l, javax.persistence.EntityManager em)StringgetName()StringgetPassword()StringgetProtocol()Set<String>getReaders()LayergetSingleLayer(String layerName, javax.persistence.EntityManager em)Gets a single layer without loading all layers.List<StyleLibrary>getStyleLibraries()LayergetTopLayer()StringgetUrl()StringgetUsername()StringgetVersion()booleanisMonitoringEnabled()booleanisMonitoringStatusok()List<Layer>loadLayerTree(javax.persistence.EntityManager em)To prevent a lot of SQL requests walking a tree structure of entities, load all layers using an efficient query.voidsetAuthorizationsModified(Date authorizationsModified)voidsetCapabilitiesDoc(String capabilitiesDoc)voidsetCategory(Category category)voidsetDetails(Map<String,ClobElement> details)voidsetGeofenceHeader(String geofenceHeader)voidsetId(Long id)voidsetKeywords(Set<String> keywords)voidsetMonitoringEnabled(boolean monitoringEnabled)voidsetMonitoringStatusok(boolean monitoringStatusOK)voidsetName(String name)voidsetPassword(String password)voidsetReaders(Set<String> readers)voidsetStyleLibraries(List<StyleLibrary> styleLibraries)voidsetTopLayer(Layer topLayer)voidsetUrl(String url)voidsetUsername(String username)voidsetVersion(String version)
-
-
-
Field Detail
-
PARAM_ONLINE_CHECK_ONLY
public static final String PARAM_ONLINE_CHECK_ONLY
- See Also:
- Constant Field Values
-
PARAM_MUST_LOGIN
public static final String PARAM_MUST_LOGIN
- See Also:
- Constant Field Values
-
DETAIL_OVERRIDDEN_URL
public static final String DETAIL_OVERRIDDEN_URL
- See Also:
- Constant Field Values
-
DETAIL_ORIGINAL_NAME
public static final String DETAIL_ORIGINAL_NAME
- See Also:
- Constant Field Values
-
DETAIL_USE_INTERSECT
public static final String DETAIL_USE_INTERSECT
- See Also:
- Constant Field Values
-
DETAIL_USE_PROXY
public static final String DETAIL_USE_PROXY
- See Also:
- Constant Field Values
-
PARAM_USERNAME
public static final String PARAM_USERNAME
HTTP Basic authentication username to use with pre-emptive authentication.- See Also:
- Constant Field Values
-
PARAM_PASSWORD
public static final String PARAM_PASSWORD
HTTP Basic authentication password to use with pre-emptive authentication.- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public Long getId()
-
setId
public void setId(Long id)
-
getName
public String getName()
-
setName
public void setName(String name)
-
getCategory
public Category getCategory()
-
setCategory
public void setCategory(Category category)
-
getTopLayer
public Layer getTopLayer()
-
setTopLayer
public void setTopLayer(Layer topLayer)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getUrl
public String getUrl()
-
setUrl
public void setUrl(String url)
-
getUsername
public String getUsername()
-
setUsername
public void setUsername(String username)
-
isMonitoringEnabled
public boolean isMonitoringEnabled()
-
setMonitoringEnabled
public void setMonitoringEnabled(boolean monitoringEnabled)
-
getAuthorizationsModified
public Date getAuthorizationsModified()
-
setAuthorizationsModified
public void setAuthorizationsModified(Date authorizationsModified)
-
isMonitoringStatusok
public boolean isMonitoringStatusok()
-
setMonitoringStatusok
public void setMonitoringStatusok(boolean monitoringStatusOK)
-
getDetails
public Map<String,ClobElement> getDetails()
-
setDetails
public void setDetails(Map<String,ClobElement> details)
-
getStyleLibraries
public List<StyleLibrary> getStyleLibraries()
-
setStyleLibraries
public void setStyleLibraries(List<StyleLibrary> styleLibraries)
-
getGeofenceHeader
public String getGeofenceHeader()
-
setGeofenceHeader
public void setGeofenceHeader(String geofenceHeader)
-
getVersion
public String getVersion()
-
setVersion
public void setVersion(String version)
-
getCapabilitiesDoc
public String getCapabilitiesDoc()
-
setCapabilitiesDoc
public void setCapabilitiesDoc(String capabilitiesDoc)
-
getProtocol
public String getProtocol()
-
authorizationsModified
public void authorizationsModified()
-
loadLayerTree
public List<Layer> loadLayerTree(javax.persistence.EntityManager em)
To prevent a lot of SQL requests walking a tree structure of entities, load all layers using an efficient query. The Layers.children collections are not initialized, but can be reconstructed from the list of all Layers for this service returned by the query. Call Layer.getLayerChildrenCache() to retrieve it without causing a SQL query.The cache is not updated on changes, so will only represent the database state when loadLayerTree() was last called.
- Parameters:
em- the entity manager to use- Returns:
- the list of layers of this service
-
getLayerChildrenCache
public List<Layer> getLayerChildrenCache(Layer l, javax.persistence.EntityManager em)
-
getSingleLayer
public Layer getSingleLayer(String layerName, javax.persistence.EntityManager em)
Gets a single layer without loading all layers. If multiple layers exist with the same name, a random non-virtual layer is returned.- Parameters:
layerName- the name of the layer to findem- the EntityManager to use- Returns:
- the named layer
-
getLayer
public Layer getLayer(String layerName, javax.persistence.EntityManager em)
Returns the layer with the given name in this server. The first layer in a depth-first tree traversal with the name is returned. If a child has the same name as its parent, the child is returned.- Parameters:
layerName- the layer name to search forem- the entity manager to use- Returns:
- the Layer or null if not found
-
-