Class Layer
- java.lang.Object
-
- nl.tailormap.viewer.config.services.Layer
-
- All Implemented Interfaces:
Serializable
@Entity public class Layer extends Object implements Serializable
- Author:
- Matthijs Laan
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLayer.Visitor
-
Field Summary
Fields Modifier and Type Field Description static StringDETAIL_ALL_CHILDRENLayer.details map key for comma separated list of layer names of children of this layer.static StringDETAIL_ALTERNATE_LEGEND_IMAGE_URLstatic StringDETAIL_USERLAYER_DATE_ADDEDstatic StringDETAIL_USERLAYER_FILTERstatic StringDETAIL_USERLAYER_ORIGINAL_FEATURE_TYPE_NAMEstatic StringDETAIL_USERLAYER_ORIGINAL_LAYER_IDstatic StringDETAIL_USERLAYER_ORIGINAL_LAYERNAMEstatic StringDETAIL_USERLAYER_USERstatic StringDETAIL_WMS_STYLESJSON representation of wms:Style elements from capabilities for this layerstatic StringEXTRA_IMAGE_EXTENSIONstatic StringEXTRA_KEY_ATTRIBUTIONstatic StringEXTRA_KEY_DOWNLOAD_URLstatic StringEXTRA_KEY_FILTERABLEstatic StringEXTRA_KEY_METADATA_STYLESHEET_URLstatic StringEXTRA_KEY_METADATA_URLSet<String>preventGeomEditorsSet<String>writers
-
Constructor Summary
Constructors Constructor Description Layer()
-
Method Summary
-
-
-
Field Detail
-
EXTRA_KEY_METADATA_URL
public static final String EXTRA_KEY_METADATA_URL
- See Also:
- Constant Field Values
-
EXTRA_KEY_METADATA_STYLESHEET_URL
public static final String EXTRA_KEY_METADATA_STYLESHEET_URL
- See Also:
- Constant Field Values
-
EXTRA_KEY_DOWNLOAD_URL
public static final String EXTRA_KEY_DOWNLOAD_URL
- See Also:
- Constant Field Values
-
EXTRA_KEY_FILTERABLE
public static final String EXTRA_KEY_FILTERABLE
- See Also:
- Constant Field Values
-
EXTRA_IMAGE_EXTENSION
public static final String EXTRA_IMAGE_EXTENSION
- See Also:
- Constant Field Values
-
EXTRA_KEY_ATTRIBUTION
public static final String EXTRA_KEY_ATTRIBUTION
- See Also:
- Constant Field Values
-
DETAIL_WMS_STYLES
public static final String DETAIL_WMS_STYLES
JSON representation of wms:Style elements from capabilities for this layer- See Also:
- Constant Field Values
-
DETAIL_ALL_CHILDREN
public static final String DETAIL_ALL_CHILDREN
Layer.details map key for comma separated list of layer names of children of this layer.- See Also:
- Constant Field Values
-
DETAIL_ALTERNATE_LEGEND_IMAGE_URL
public static final String DETAIL_ALTERNATE_LEGEND_IMAGE_URL
- See Also:
- Constant Field Values
-
DETAIL_USERLAYER_FILTER
public static final String DETAIL_USERLAYER_FILTER
- See Also:
- Constant Field Values
-
DETAIL_USERLAYER_ORIGINAL_LAYERNAME
public static final String DETAIL_USERLAYER_ORIGINAL_LAYERNAME
- See Also:
- Constant Field Values
-
DETAIL_USERLAYER_ORIGINAL_FEATURE_TYPE_NAME
public static final String DETAIL_USERLAYER_ORIGINAL_FEATURE_TYPE_NAME
- See Also:
- Constant Field Values
-
DETAIL_USERLAYER_ORIGINAL_LAYER_ID
public static final String DETAIL_USERLAYER_ORIGINAL_LAYER_ID
- See Also:
- Constant Field Values
-
DETAIL_USERLAYER_DATE_ADDED
public static final String DETAIL_USERLAYER_DATE_ADDED
- See Also:
- Constant Field Values
-
DETAIL_USERLAYER_USER
public static final String DETAIL_USERLAYER_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public Layer clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
update
public void update(Layer update)
-
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:
trueif the layer has a featuretype,falseotherwise
-
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.Visitorem- the entity manager to use- Returns:
trueif visitor accepted all layers
-
getDisplayName
public String getDisplayName()
-
toJSONObject
public org.json.JSONObject toJSONObject() throws org.json.JSONException- Throws:
org.json.JSONException
-
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)
-
getService
public GeoService getService()
-
setService
public void setService(GeoService service)
-
getCrsList
public Set<CoordinateReferenceSystem> getCrsList()
-
setCrsList
public void setCrsList(Set<CoordinateReferenceSystem> crsList)
-
getFeatureType
public SimpleFeatureType getFeatureType()
-
setFeatureType
public void setFeatureType(SimpleFeatureType featureType)
-
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)
-
getDetails
public Map<String,ClobElement> getDetails()
-
setDetails
public void setDetails(Map<String,ClobElement> details)
-
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)
-
getBoundingBoxes
public Map<CoordinateReferenceSystem,BoundingBox> getBoundingBoxes()
-
setBoundingBoxes
public void setBoundingBoxes(Map<CoordinateReferenceSystem,BoundingBox> boundingBoxes)
-
getMatrixSets
public List<TileMatrixSet> getMatrixSets()
-
setMatrixSets
public void setMatrixSets(List<TileMatrixSet> matrixSets)
-
isUserlayer
public Boolean isUserlayer()
-
setUserlayer
public void setUserlayer(boolean userlayer)
-
-