Class GeoService

    • Constructor Detail

      • GeoService

        public GeoService()
    • 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)
      • getKeywords

        public Set<String> getKeywords()
      • setKeywords

        public void setKeywords​(Set<String> keywords)
      • 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)
      • setStyleLibraries

        public void setStyleLibraries​(List<StyleLibrary> styleLibraries)
      • getReaders

        public Set<String> getReaders()
      • setReaders

        public void setReaders​(Set<String> readers)
      • 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 find
        em - 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 for
        em - the entity manager to use
        Returns:
        the Layer or null if not found