Class RemoteServerVectorLayer
- All Implemented Interfaces:
LayerConstants,LayerNode,IRemoteServerLayer,Serializable,Cloneable
- See Also:
-
Field Summary
FieldsFields inherited from class com.kheops.jmap.server.JMapServerVectorLayer
angleAttributeIx, angleDirection, angleUnit, attributeQueries, boundAttributes, elementFactory, enabledCaching, fillCache, form, forms, hasEmptyUnivTile, hyperlinks, labelsConfig, mouseOverConfiguration, precision, requestMode, rotationOrigin, sqlAttributeFilter, subForms, thematics, tileCols, tileRows, tileSet, tilingMode, transformationsFields 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
ConstructorsConstructorDescriptionRemoteServerVectorLayer(JMapServerVectorLayer remoteLayer, int remoteConnectionPoolId, int remoteProjectId, int remoteLayerId) Creates a new remoteLayer using the specified remote information and the default remoteLevel (0).RemoteServerVectorLayer(JMapServerVectorLayer remoteLayer, int remoteConnectionPoolId, int remoteProjectId, int remoteLayerId, int remoteLevel) Creates a new remoteLayer using the specified remote information. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone(int remoteLevel) intshortshortGets the attribute queries.getAttributeQuery(int attributeQueryId) Gets the specified attributeQuery, see getAttributeQueries for notes on identifiers.Collection<com.k2.security.acl.Permission> getAvailableFormPermissions(int formId) getBoundAttribute(String attribName) intgetBoundAttributeIndex(String attribName) longReturns the description of the layer.getDescription(Locale locale) Returns the description of this layer for a specific locale.getForm()getForm(int id) getForms()longlongReturns a bitwise value that contains all layer properties.protected JMapServerVectorLayerDeprecated.doubledoublegetName()Returns the name of the layer.Returns the name of this layer for a specific locale.intprotected JMapServerVectorLayerlongReturns the a mask which contains all read-only properties for this layer.intintintintintgetStyle(double scale) Returns the style that was set for the specified scale.Thematic[]intintbooleanbooleanbooleanbooleanbooleanisLocalAttributeQuery(int attributeQueryId) Verify if this attributeQuery originates from this layervoidsetFormsAcls(Map<Integer, Acl> formsAcls) voidsetRemoteConnectionPoolId(int remoteConnectionPoolId) voidsetRemoteLayerId(int remoteLayerId) voidsetRemoteProjectId(int remoteProjectId) voidupdate(Projection projectProjection) protected voidMethods inherited from class com.kheops.jmap.server.JMapServerVectorLayer
addAttributeQuery, addForm, addForm, addHyperlink, addThematic, addTransformation, clone, getThematic, getTransformations, getUseClientCache, getVectorDataSourceInfo, isDataStructureDifferent, removeAttributeQuery, removeHyperlink, removeThematic, removeTransformation, removeTranslationsOtherThan, setAttributeQueries, setAttributeQuery, setBoundAttributes, setDataSourceInfo, setElementFactory, setElementType, setFillCache, setForm, setHasEmptyUnivTile, setHyperlinks, setLabelsConfig, setMouseOverConfiguration, setPrecision, setRequestMode, setSqlAttributeFilter, setThematics, setTileCols, setTileRows, setTransformations, setUseClientCache, toLayerInfo, toStringMethods inherited from class com.kheops.jmap.server.JMapServerLayer
equals, getDataSourceId, getDataSourceInfo, getDynamicRefresh, getElementType, getId, getOffset, getProjectId, getUpdateStatus, hashCode, isDynamic, isEditable, 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, updateTranslationsMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.kheops.jmap.server.IRemoteServerLayer
isReference
-
Field Details
-
layerLoader
-
-
Constructor Details
-
RemoteServerVectorLayer
public RemoteServerVectorLayer(JMapServerVectorLayer remoteLayer, int remoteConnectionPoolId, int remoteProjectId, int remoteLayerId) Creates a new remoteLayer using the specified remote information and the default remoteLevel (0). See constructor with remoteLevel. -
RemoteServerVectorLayer
public RemoteServerVectorLayer(JMapServerVectorLayer remoteLayer, int remoteConnectionPoolId, int remoteProjectId, int remoteLayerId, int remoteLevel) Creates a new remoteLayer using the specified remote information.Since layers can reference other layers, it can create conflicts between AttributeQueries. To prevent these issues, each remote layer has a 'remoteLevel', which indicates its location in a reference layer chain. The first element has the remoteLevel 1, and each is incremented by one.
Ex: VectorLayer1 is a shared VectorLayer. ReferenceLayer1 references VectorLayer1, its remoteLevel would be 1. ReferenceLayer2 references ReferenceLayer1, the remoteLevel of ReferenceLayer2 would be 2.
-
-
Method Details
-
getLoadedProxyLayer
Deprecated.usegetProxyLayer()- Returns:
- the layer loaded by the RemoteServerLayerLoader
-
getProxyLayer
- Returns:
- the layer loaded by the RemoteServerLayerLoader
-
getStatus
public int getStatus() -
getHyperlinks
- Overrides:
getHyperlinksin classJMapServerVectorLayer
-
getAttributeQueries
Gets the attribute queries. The RemoteServerVectorLayer will return all its local attribute queries plus all the attribute queries of the referenced layers.The local queries will start from ID 0 and the referenced attribute queries will all be incremented by 1 million using the remoteLevel. Ex: LayerRef2 references LayerRef1 which references VectorLayerX, each contains 1 attribute query. LayerRef2 1st attribute query will have ID 0, LayerRef1 1st attribute query will have ID 1000000 and VectorLayerX queries will have ID 2000000. Since all attribute queries are returned, the method would return 3 attribute queries; id 0, 1000000 and 2000000
Only the local attribute queries can be modified. To know if an AttributeQuery is local or referenced, method isLocalAttributeQuery(int attributeQueryId) can be used. The referenced attribute queries are periodically updated, added or removed automatically. (5 minutes for layers on a remote server and 30 seconds for a local referenced layer.)
- Overrides:
getAttributeQueriesin classJMapServerVectorLayer
-
getAttributeQuery
Gets the specified attributeQuery, see getAttributeQueries for notes on identifiers.- Overrides:
getAttributeQueryin classJMapServerVectorLayer
-
getName
Description copied from class:JMapServerLayerReturns the name of the layer.- Specified by:
getNamein interfaceLayerNode- Overrides:
getNamein classJMapServerLayer- Returns:
- the name of the layer.
-
getName
Description copied from class:JMapServerLayerReturns the name of this layer for a specific locale.- Overrides:
getNamein classJMapServerLayer- Returns:
- name.
-
getDescription
Description copied from class:JMapServerLayerReturns the description of the layer.- Overrides:
getDescriptionin classJMapServerLayer- Returns:
- the description of the layer.
-
getDescription
Description copied from class:JMapServerLayerReturns the description of this layer for a specific locale.- Overrides:
getDescriptionin classJMapServerLayer- Returns:
- description.
-
getThematics
- Overrides:
getThematicsin classJMapServerVectorLayer
-
getLayerFilters
-
isLayerFiltersEnabled
public boolean isLayerFiltersEnabled() -
getStyle
Description copied from class:JMapServerLayerReturns the style that was set for the specified scale.- Overrides:
getStylein classJMapServerLayer- Parameters:
scale- the scale.- Returns:
- the style that was set for the specified scale.
-
getElementFactory
- Overrides:
getElementFactoryin classJMapServerVectorLayer
-
getCacheTimeout
public long getCacheTimeout() -
isEnabledCaching
public boolean isEnabledCaching()- Overrides:
isEnabledCachingin classJMapServerLayer
-
getBoundAttributes
- Overrides:
getBoundAttributesin classJMapServerVectorLayer
-
getInfoReportConfig
- Overrides:
getInfoReportConfigin classJMapServerLayer
-
getLastUpdateTime
public long getLastUpdateTime()- Overrides:
getLastUpdateTimein classJMapServerLayer- Returns:
- Returns the lastUpdateTime.
-
getMaximumVisibleScale
public double getMaximumVisibleScale()- Overrides:
getMaximumVisibleScalein classJMapServerLayer
-
getMinimumVisibleScale
public double getMinimumVisibleScale()- Overrides:
getMinimumVisibleScalein classJMapServerLayer
-
getBoundAttribute
- Overrides:
getBoundAttributein classJMapServerVectorLayer
-
getBoundAttributeIndex
- Overrides:
getBoundAttributeIndexin classJMapServerVectorLayer
-
getStyleManager
- Overrides:
getStyleManagerin classJMapServerLayer- Returns:
- Returns the styleManager.
-
getRequestMode
public int getRequestMode()- Overrides:
getRequestModein classJMapServerVectorLayer- Returns:
- Returns the requestMode.
-
getTileSet
- Overrides:
getTileSetin classJMapServerVectorLayer
-
hasEmptyUnivTile
public boolean hasEmptyUnivTile()- Overrides:
hasEmptyUnivTilein classJMapServerVectorLayer
-
getPrecision
public int getPrecision()- Overrides:
getPrecisionin classJMapServerVectorLayer
-
getFormsAcls
-
setFormsAcls
-
isFillCache
public boolean isFillCache()- Overrides:
isFillCachein classJMapServerVectorLayer
-
getSqlAttributeFilter
- Overrides:
getSqlAttributeFilterin classJMapServerVectorLayer- Returns:
- Returns the sqlAttributeFilter.
-
getExtrusionDisplayStrategyInfo
-
toLayerInfo
Description copied from class:JMapServerVectorLayer- Overrides:
toLayerInfoin classJMapServerVectorLayer
-
getAngleAttributeIx
public int getAngleAttributeIx() -
getAngleDirection
public short getAngleDirection() -
getRotationOrigin
-
getAngleUnit
public short getAngleUnit() -
getTileRows
public int getTileRows()- Overrides:
getTileRowsin classJMapServerVectorLayer
-
getTileCols
public int getTileCols()- Overrides:
getTileColsin classJMapServerVectorLayer
-
clone
Description copied from class:JMapServerVectorLayer- Specified by:
clonein interfaceLayerNode- Overrides:
clonein classJMapServerVectorLayer
-
clone
-
getReadOnlyMask
public long getReadOnlyMask()Description copied from class:JMapServerLayerReturns the a mask which contains all read-only properties for this layer.- Overrides:
getReadOnlyMaskin classJMapServerLayer- Returns:
- the mask which defines read-only properties of the layer.
-
getLayerProperties
public long getLayerProperties()Description copied from class:JMapServerLayerReturns a bitwise value that contains all layer properties.- Overrides:
getLayerPropertiesin classJMapServerLayer- Returns:
- a value that contains all layer properties.
-
getLabelsConfig
- Overrides:
getLabelsConfigin classJMapServerVectorLayer
-
getMouseOverConfiguration
- Overrides:
getMouseOverConfigurationin classJMapServerVectorLayer
-
getForm
- Overrides:
getFormin classJMapServerVectorLayer
-
getForms
- Overrides:
getFormsin classJMapServerVectorLayer
-
getForm
- Overrides:
getFormin classJMapServerVectorLayer
-
getSubForms
- Overrides:
getSubFormsin classJMapServerVectorLayer
-
update
- Overrides:
updatein classJMapServerVectorLayer
-
getRemoteConnectionPoolId
public int getRemoteConnectionPoolId()- Specified by:
getRemoteConnectionPoolIdin interfaceIRemoteServerLayer
-
setRemoteConnectionPoolId
public void setRemoteConnectionPoolId(int remoteConnectionPoolId) - Specified by:
setRemoteConnectionPoolIdin interfaceIRemoteServerLayer
-
getRemoteProjectId
public int getRemoteProjectId()- Specified by:
getRemoteProjectIdin interfaceIRemoteServerLayer
-
setRemoteProjectId
public void setRemoteProjectId(int remoteProjectId) - Specified by:
setRemoteProjectIdin interfaceIRemoteServerLayer
-
getRemoteLayerId
public int getRemoteLayerId()- Specified by:
getRemoteLayerIdin interfaceIRemoteServerLayer
-
setRemoteLayerId
public void setRemoteLayerId(int remoteLayerId) - Specified by:
setRemoteLayerIdin interfaceIRemoteServerLayer
-
isLocalAttributeQuery
public boolean isLocalAttributeQuery(int attributeQueryId) Verify if this attributeQuery originates from this layer- Parameters:
attributeQueryId- the id of the AttributeQuery- Returns:
- true if query originates from the current layer, false if it is not local and comes from another layer
-
getAvailableFormPermissions
-
validateObjectImpl
protected void validateObjectImpl()- Overrides:
validateObjectImplin classJMapServerVectorLayer
-
toLocalLayer
- Specified by:
toLocalLayerin interfaceIRemoteServerLayer
-
getProxyLayer()