Package com.kheops.jmap.server
Class JMapServerVectorLayer
java.lang.Object
com.kheops.jmap.metadata.LocalizedObject
com.kheops.jmap.metadata.JMapObject
com.kheops.jmap.server.JMapServerLayer
com.kheops.jmap.server.JMapServerVectorLayer
- All Implemented Interfaces:
LayerConstants,LayerNode,Serializable,Cloneable
- Direct Known Subclasses:
RemoteServerVectorLayer,RemoteServerVectorLayerClone
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected shortprotected shortprotected List<AttributeQueryInfo> protected Attribute[]protected K2DElementFactoryprotected booleanprotected booleanprotected Formprotected booleanprotected Hyperlink[]protected LabelsConfigurationprotected MouseOverConfigurationprotected intprotected intprotected GeometryUtil.RotationOriginprotected SQLQueryFilterprotected Thematic[]protected intprotected intprotected TileSetprotected intprotected Transformation[]Fields inherited from class com.kheops.jmap.server.JMapServerLayer
acl, cacheTimeout, dataSourceId, dataSourceInfo, description, dynamicRefresh, elementType, extent, geometryType, id, infoReportConfig, lastException, lastUpdateTime, layerProperties, layerUpdateStatus, maximumVisibleScale, minimumVisibleScale, name, OBJECT_VERSION_ID_5_0, OBJECT_VERSION_ID_6_0, OBJECT_VERSION_ID_6_5, OBJECT_VERSION_ID_7_0, OBJECT_VERSION_ID_7_0_FUNAFUTI, OBJECT_VERSION_ID_7_0_ISTANBUL, objectVersionId, offset, projectId, readOnlyMask, status, styleManagerFields inherited from interface com.kheops.jmap.client.layers.LayerConstants
DEFAULT_MAXIMUM_SCALE, DEFAULT_MINIMUM_SCALE, PERSONAL_LAYER_BASE_ID, PERSONAL_LAYER_MAX_ID, PROJECT_LAYER_BASE_ID, PROJECT_LAYER_MAX_ID, PROPERTY_ALL_SETTINGS, PROPERTY_ALWAYS_DRAW_SELECTION, PROPERTY_DRAW_GRID, PROPERTY_EDITABLE, PROPERTY_EDITING, PROPERTY_INCLUDE_IN_CONTEXT, PROPERTY_INDEX, PROPERTY_LISTED, PROPERTY_LOCAL, PROPERTY_MAX_SCALE, PROPERTY_MIN_SCALE, PROPERTY_PUBLISHED, PROPERTY_QUERIABLE, PROPERTY_SELECTABLE, PROPERTY_USE_CLIENT_CACHE, PROPERTY_VISIBLE, REQUEST_MODE_BY_REGION, REQUEST_MODE_BY_TILE, RESERVED_LAYER_BASE_ID, RESERVED_LAYER_MAX_ID, SYSTEM_LAYER_BASE_AUTO_ID, SYSTEM_LAYER_BASE_ID, SYSTEM_LAYER_MAX_ID, TILING_MODE_AUTO, TILING_MODE_MANUAL, USER_LAYER_BASE_AUTO_ID, USER_LAYER_BASE_ID, USER_LAYER_MAX_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJMapServerVectorLayer(int dataSourceId) JMapServerVectorLayer(VectorDataSourceInfo dataSourceInfo) JMapServerVectorLayer(String name, VectorDataSourceInfo dataSourceInfo, Style style, Attribute[] boundAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeQuery(AttributeQueryInfo attributeQuery) voidaddForm(IAbstractForm form) protected voidaddForm(IAbstractForm form, boolean assignNewId) voidaddHyperlink(Hyperlink hyperlink) voidaddThematic(Thematic thematic) voidaddTransformation(Transformation tranformation) clone()protected voidclone(JMapServerLayer layerInfo) Clones all properties from this server layer into the specified JMapServerLayer instance.getAttributeQuery(int attributeQueryId) getBoundAttribute(String attribName) intgetBoundAttributeIndex(String attribName) getForm()Deprecated.getForm(int id) getForms()intDeprecated.intgetThematic(int id) Thematic[]intintbooleanGets the useClientCache boolean flagfinal VectorDataSourceInfobooleanprotected booleanisDataStructureDifferent(JMapServerLayer oldLayer) Compare with database-persisted layer to determine if some properties have changed.booleanbooleanremoveAttributeQuery(AttributeQueryInfo attributeQuery) voidremoveHyperlink(Hyperlink hyperlink) voidremoveThematic(Thematic thematic) voidremoveTransformation(Transformation tranformation) voidremoveTranslationsOtherThan(Locale[] locales) Removes anyLocalefrom this object that are not in the specifiedlocales.voidsetAttributeQueries(List<AttributeQueryInfo> attributeQueries) booleansetAttributeQuery(AttributeQueryInfo attributeQuery) voidsetBoundAttributes(Attribute[] newBoundAttributes) voidsetDataSourceInfo(SpatialDataSourceInfo dataSourceInfo) voidsetElementFactory(K2DElementFactory elementFactory) voidsetElementType(int elementType) voidsetFillCache(boolean fillCache) voidDeprecated.As of JMap 6.0, replaced bygetForms()voidsetHasEmptyUnivTile(boolean hasEmptyUniverseTile) voidsetHyperlinks(Hyperlink[] hyperlinks) voidsetLabelsConfig(LabelsConfiguration labelsConfig) voidsetMouseOverConfiguration(MouseOverConfiguration mouseOverConfiguration) voidsetPrecision(int precision) Deprecated.voidsetRequestMode(int requestMode) voidsetSqlAttributeFilter(SQLQueryFilter sqlAttributeFilter) voidsetThematics(Thematic[] thematics) voidsetTileCols(int tileCols) voidsetTileRows(int tileRows) voidsetTransformations(Transformation[] transformations) voidsetUseClientCache(boolean flag) Sets useClientCache boolean flagprotected voidtoLayerInfo(LayerInfo layerInfo) Copies all properties from this server layer to the specified layer info.toString()voidupdate(Projection projectProjection) protected voidMethods inherited from class com.kheops.jmap.server.JMapServerLayer
equals, getDataSourceId, getDataSourceInfo, getDescription, getDescription, getDynamicRefresh, getElementType, getId, getInfoReportConfig, getLastUpdateTime, getLayerProperties, getMaximumVisibleScale, getMinimumVisibleScale, getName, getName, getOffset, getProjectId, getReadOnlyMask, getStyle, getStyleManager, getUpdateStatus, hashCode, isDynamic, isEditable, isEnabledCaching, isIndex, isListed, isNamed, isPublished, isSelectable, isVisible, setDescription, setDescription, setDynamicRefresh, setId, setIndex, setLastUpdateTime, setLayerProperties, setListed, setMaximumVisibleScale, setMinimumVisibleScale, setName, setName, setOffset, setProjectId, setProperty, setPublished, setReadOnlyMask, setReadOnlyProperty, setSelectable, setStyle, setStyleManager, setVisibleMethods inherited from class com.kheops.jmap.metadata.JMapObject
clone, setAclMethods inherited from class com.kheops.jmap.metadata.LocalizedObject
getAvailableLocales, getTranslation, isTranslationExists, setTranslation, updateTranslations
-
Field Details
-
precision
protected int precision -
boundAttributes
-
thematics
-
hyperlinks
-
mouseOverConfiguration
-
labelsConfig
-
form
-
forms
-
subForms
-
hasEmptyUnivTile
protected boolean hasEmptyUnivTile -
requestMode
protected int requestMode -
tilingMode
protected int tilingMode -
enabledCaching
protected boolean enabledCaching -
fillCache
protected boolean fillCache -
sqlAttributeFilter
-
transformations
-
angleAttributeIx
protected int angleAttributeIx -
angleDirection
protected short angleDirection -
angleUnit
protected short angleUnit -
rotationOrigin
-
elementFactory
-
tileSet
-
tileRows
protected int tileRows -
tileCols
protected int tileCols -
attributeQueries
-
-
Constructor Details
-
JMapServerVectorLayer
protected JMapServerVectorLayer(int dataSourceId) -
JMapServerVectorLayer
-
JMapServerVectorLayer
public JMapServerVectorLayer(String name, VectorDataSourceInfo dataSourceInfo, Style style, Attribute[] boundAttributes)
-
-
Method Details
-
getElementFactory
-
setElementFactory
-
setThematics
-
getThematics
-
getThematic
-
getTransformations
-
setTransformations
-
getHyperlinks
-
setHyperlinks
-
addHyperlink
-
removeHyperlink
-
addTransformation
-
removeTransformation
-
addThematic
-
removeThematic
-
getUseClientCache
public boolean getUseClientCache()Gets the useClientCache boolean flag- Returns:
- true if the use of cache on the client is enabled, false otherwise
-
setUseClientCache
public void setUseClientCache(boolean flag) Sets useClientCache boolean flag- Parameters:
flag- the boolean value to be set.
-
getBoundAttributes
-
setBoundAttributes
-
getBoundAttribute
-
getBoundAttributeIndex
-
toString
-
getRequestMode
public int getRequestMode()- Returns:
- Returns the requestMode.
-
setRequestMode
public void setRequestMode(int requestMode) - Parameters:
requestMode- The requestMode to set.
-
getTileSet
-
setElementType
public void setElementType(int elementType) - Overrides:
setElementTypein classJMapServerLayer- Parameters:
elementType- The elementType to set.
-
hasEmptyUnivTile
public boolean hasEmptyUnivTile() -
setHasEmptyUnivTile
public void setHasEmptyUnivTile(boolean hasEmptyUniverseTile) -
getPrecision
Deprecated. -
setPrecision
Deprecated. -
isFillCache
public boolean isFillCache() -
setFillCache
public void setFillCache(boolean fillCache) -
getSqlAttributeFilter
- Returns:
- Returns the sqlAttributeFilter.
-
setSqlAttributeFilter
- Parameters:
sqlAttributeFilter- The sqlAttributeFilter to set.
-
toLayerInfo
- Specified by:
toLayerInfoin classJMapServerLayer
-
getTileRows
public int getTileRows() -
setTileRows
public void setTileRows(int tileRows) -
getTileCols
public int getTileCols() -
setTileCols
public void setTileCols(int tileCols) -
clone
- Specified by:
clonein interfaceLayerNode- Specified by:
clonein classJMapServerLayer
-
clone
Clones all properties from this server layer into the specified JMapServerLayer instance.- Overrides:
clonein classJMapServerLayer- Parameters:
layerInfo- the instance that will receive cloned properties.
-
toLayerInfo
Copies all properties from this server layer to the specified layer info.- Overrides:
toLayerInfoin classJMapServerLayer- Parameters:
layerInfo- the layer info to copy properties into.
-
getVectorDataSourceInfo
-
update
- Specified by:
updatein classJMapServerLayer
-
getLabelsConfig
-
setLabelsConfig
-
getMouseOverConfiguration
-
setMouseOverConfiguration
-
getForm
Deprecated.As of JMap 6.0, replaced bygetForms() -
setForm
Deprecated.As of JMap 6.0, replaced bygetForms() -
getForms
- Since:
- 6.0
-
addForm
- Since:
- 6.0
-
addForm
-
getForm
- Since:
- 6.0
-
getSubForms
- Since:
- 6.0
-
setAttributeQueries
-
getAttributeQueries
-
addAttributeQuery
-
setAttributeQuery
-
removeAttributeQuery
-
getAttributeQuery
-
setDataSourceInfo
- Overrides:
setDataSourceInfoin classJMapServerLayer- Parameters:
dataSourceInfo- The dataSourceInfo to set.
-
validateObjectImpl
protected void validateObjectImpl()- Overrides:
validateObjectImplin classJMapServerLayer
-
removeTranslationsOtherThan
Description copied from class:LocalizedObjectRemoves anyLocalefrom this object that are not in the specifiedlocales.locales[0]should be the default language- Overrides:
removeTranslationsOtherThanin classJMapServerLayer- Parameters:
locales-
-
isDataStructureDifferent
Description copied from class:JMapServerLayerCompare with database-persisted layer to determine if some properties have changed. If any data-sensible property has changed, we need to update last update time to notify remote servers that layer data needs to be updated.- Overrides:
isDataStructureDifferentin classJMapServerLayer- Returns:
trueif we need to update property lastUpdateTime,falseotherwise.
-
getForms()