Package com.kheops.jmap.server
Class JMapServerProject
java.lang.Object
com.kheops.jmap.metadata.LocalizedObject
com.kheops.jmap.metadata.JMapObject
com.kheops.jmap.server.JMapServerProject
- All Implemented Interfaces:
ObjectInputValidation,Serializable,Cloneable,Comparable<JMapServerProject>
public class JMapServerProject
extends JMapObject
implements Serializable, Comparable<JMapServerProject>, ObjectInputValidation, Cloneable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttributeQueryGroup(AttributeQueryGroupInfo attributeQueryCategory) voidaddLayer(JMapServerLayer serverLayer) Adds a layer at the top position of the list.voidaddLayer(JMapServerLayer serverLayer, int pos) Adds a layer at the specified position in the list.voidaddListener(JMapServerProjectListener listener) clone()intcompareTo(JMapServerProject serverProject) Implementation of the interface Comparablebooleancontains(SpatialDataSourceInfo dataSourceInfo) Tests if the current project contains a layer which was created with the specified data source info.booleancontainsLayer(int layerId) Tests if the current project contains a layer which has the specified id.booleandeleteAttributeQueryGroup(int attributeQueryCategoryId) booleandeleteAttributeQueryGroup(AttributeQueryCategory attributeQueryGroup) booleangetAttributeQueryGroup(int id) getAttributeQueryGroup(String name) intgetId()getLayer(int layerId) intgetLayerPosition(int layerId) Returns the layer tree root group.inthashCode()booleanremoveLayer(int layerId) Removes the layer corresponding to the specified id from the project.booleanremoveLayer(SpatialDataSourceInfo dataSourceInfo) Removes all layers which were created from the specified data source info.booleanremoveLayer(JMapServerLayer serverLayer) Removes the specified layer from the project.voidremoveListener(JMapServerProjectListener listener) booleanreplaceLayer(JMapServerLayer oldServerLayer, JMapServerLayer newServerLayer) Updates a layer in the project by another layer instance.voidsetAttributeQueryGroups(List<AttributeQueryGroupInfo> attributeQueryGroups) voidsetId(int id) voidsetImageProducerSettings(ImageProducerSettings imageProducerSettings) voidsetLayers(List<JMapServerLayer> layers) voidsetLayerTreeGroup(LayerTreeGroup layerTreeGroup) voidswapLayer(int posSelect, int posDestination) toString()voidMethods inherited from class com.kheops.jmap.metadata.JMapObject
clone, setAclMethods inherited from class com.kheops.jmap.metadata.LocalizedObject
getAvailableLocales, getTranslation, isTranslationExists, removeTranslationsOtherThan, setTranslation, updateTranslations
-
Constructor Details
-
JMapServerProject
-
-
Method Details
-
addListener
-
removeListener
-
compareTo
Implementation of the interface Comparable- Specified by:
compareToin interfaceComparable<JMapServerProject>- Parameters:
serverProject- the project to compare with.- Returns:
- An integer. See Comparable for more details.
-
contains
Tests if the current project contains a layer which was created with the specified data source info.- Parameters:
dataSourceInfo- the data source info to search.- Returns:
- true if the current project contains a layer which was created with the specified data source info.
-
containsLayer
public boolean containsLayer(int layerId) Tests if the current project contains a layer which has the specified id.- Parameters:
layerId- the layer id to search.- Returns:
- true if the current project contains a layer which has the specified id.
-
setLayers
- Since:
- JMap 5.0
-
getLayers
- Since:
- JMap 5.0
-
getId
public int getId() -
setId
public void setId(int id) -
addLayer
Adds a layer at the top position of the list.- Parameters:
serverLayer- the new layer to add.- Since:
- JMap 5.0
-
addLayer
Adds a layer at the specified position in the list.- Parameters:
serverLayer- the new layer to add.pos- the target position.- Since:
- JMap 5.0
-
replaceLayer
Updates a layer in the project by another layer instance. If the new layer is null, then the old layer is removed from the project.- Parameters:
oldServerLayer- the layer to be replaced.newServerLayer- the new layer to add.- Returns:
- true if the layer could be replaced.
- Since:
- 7.0
-
removeLayer
Removes the specified layer from the project.- Parameters:
serverLayer- the layer to remove.- Since:
- JMap 5.0
-
removeLayer
Removes all layers which were created from the specified data source info.- Since:
- JMap 5.0
-
removeLayer
public boolean removeLayer(int layerId) Removes the layer corresponding to the specified id from the project.- Parameters:
layerId- the layer id of the layer to remove.- Since:
- JMap 5.0
-
getLayerPosition
public int getLayerPosition(int layerId) -
getLayer
- Since:
- JMap 5.0
-
getLayer
- Since:
- JMap 5.0
-
swapLayer
public void swapLayer(int posSelect, int posDestination) -
toString
-
getImageProducerSettings
-
setImageProducerSettings
-
getExtent
-
getLayerTreeGroup
Returns the layer tree root group.- Returns:
- the root of the layer tree.
-
setLayerTreeGroup
-
addAttributeQueryGroup
-
deleteAttributeQueryGroup
-
deleteAttributeQueryGroup
public boolean deleteAttributeQueryGroup(int attributeQueryCategoryId) -
getAttributeQueryGroup
-
getAttributeQueryGroup
-
getAttributeQueryGroups
-
setAttributeQueryGroups
-
validateObject
public void validateObject()- Specified by:
validateObjectin interfaceObjectInputValidation
-
clone
-
hashCode
public int hashCode()- Overrides:
hashCodein classJMapObject
-
equals
- Overrides:
equalsin classJMapObject
-