Class Layer

    • Constructor Detail

      • Layer

        public Layer()
    • Method Detail

      • update

        public void update​(Layer update)
      • update

        public void update​(Layer update,
                           Set<String> additionalUpdatableDetails)
      • copyUserModifiedProperties

        public void copyUserModifiedProperties​(Layer other)
        Copy user modified properties of given layer onto this instance. Used for updating the topLayer. Not called for other layers, those instances are updated with update().
        Parameters:
        other - the source of properties to copy
      • isBufferable

        public boolean isBufferable()
        Checks if the layer is bufferable.
        Returns:
        true if the layer has a featuretype, false otherwise
      • accept

        public boolean accept​(Layer.Visitor visitor,
                              javax.persistence.EntityManager em)
        Do a depth-first traversal while the visitor returns true. Uses the call stack to save layers yet to visit.
        Parameters:
        visitor - the Layer.Visitor
        em - the entity manager to use
        Returns:
        true if visitor accepted all layers
      • getDisplayName

        public String getDisplayName()
      • toJSONObject

        public org.json.JSONObject toJSONObject()
                                         throws org.json.JSONException
        Throws:
        org.json.JSONException
      • getCachedChildren

        public List<Layer> getCachedChildren​(javax.persistence.EntityManager em)
      • getApplicationLayers

        public List<ApplicationLayer> getApplicationLayers​(javax.persistence.EntityManager em)
      • getParent

        public Layer getParent()
      • setParent

        public void setParent​(Layer parent)
      • isVirtual

        public boolean isVirtual()
      • setVirtual

        public void setVirtual​(boolean virtual)
      • getTitle

        public String getTitle()
      • setTitle

        public void setTitle​(String title)
      • getTitleAlias

        public String getTitleAlias()
      • setTitleAlias

        public void setTitleAlias​(String titleAlias)
      • setService

        public void setService​(GeoService service)
      • isFilterable

        public boolean isFilterable()
      • setFilterable

        public void setFilterable​(boolean filterable)
      • getId

        public Long getId()
      • setId

        public void setId​(Long id)
      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • isQueryable

        public boolean isQueryable()
      • setQueryable

        public void setQueryable​(boolean queryable)
      • getReaders

        public Set<String> getReaders()
      • setReaders

        public void setReaders​(Set<String> readers)
      • getWriters

        public Set<String> getWriters()
      • setWriters

        public void setWriters​(Set<String> writers)
      • getPreventGeomEditors

        public Set<String> getPreventGeomEditors()
      • setPreventGeomEditors

        public void setPreventGeomEditors​(Set<String> preventGeomEditors)
      • getChildren

        public List<Layer> getChildren()
      • setChildren

        public void setChildren​(List<Layer> children)
      • getKeywords

        public Set<String> getKeywords()
      • setKeywords

        public void setKeywords​(Set<String> keywords)
      • getMaxScale

        public Double getMaxScale()
      • setMaxScale

        public void setMaxScale​(Double maxScale)
      • getMinScale

        public Double getMinScale()
      • setMinScale

        public void setMinScale​(Double minScale)
      • getTileset

        public TileSet getTileset()
      • setTileset

        public void setTileset​(TileSet tileset)
      • getLegendImageUrl

        public String getLegendImageUrl()
      • setLegendImageUrl

        public void setLegendImageUrl​(String legendImageUrl)
      • isUserlayer

        public Boolean isUserlayer()
      • setUserlayer

        public void setUserlayer​(boolean userlayer)