@Api(allMethods=true) @UserImplemented public interface FeatureAuthorization extends BaseAuthorization
| Modifier and Type | Method and Description |
|---|---|
boolean |
isFeatureCreateAuthorized(String layerId,
InternalFeature feature)
Check whether creation of the feature is allowed.
|
boolean |
isFeatureDeleteAuthorized(String layerId,
InternalFeature feature)
Check whether deletion of the feature is allowed.
|
boolean |
isFeatureUpdateAuthorized(String layerId,
InternalFeature feature)
Check whether the feature is allowed to be updated in some way.
|
boolean |
isFeatureUpdateAuthorized(String layerId,
InternalFeature orgFeature,
InternalFeature newFeature)
Check whether a update of the feature to the new state is authorized.
|
boolean |
isFeatureVisible(String layerId,
InternalFeature feature)
Check whether a feature with given id is visible.
|
getId, isCommandAuthorized, isLayerCreateAuthorized, isLayerDeleteAuthorized, isLayerUpdateAuthorized, isLayerVisible, isToolAuthorizedboolean isFeatureVisible(String layerId, InternalFeature feature)
layerId - layer which contains the feature to testfeature - feature which needs to be testedboolean isFeatureUpdateAuthorized(String layerId, InternalFeature feature)
layerId - layer which contains the feature to testfeature - feature which needs to testedboolean isFeatureUpdateAuthorized(String layerId, InternalFeature orgFeature, InternalFeature newFeature)
layerId - layer which contains the feature to testorgFeature - feature original state, note that just receiving the original state for the client is
insufficient for this check as the client could have tampered with the value.newFeature - feature new stateboolean isFeatureDeleteAuthorized(String layerId, InternalFeature feature)
layerId - layer which contains the feature to testfeature - feature which needs to be deletedboolean isFeatureCreateAuthorized(String layerId, InternalFeature feature)
layerId - layer which contains the feature to testfeature - feature which needs to be createdCopyright © 2015 Geosparc. All Rights Reserved.