@Api(allMethods=true)
@UserImplemented
public interface BaseAuthorization
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
Id for this authorization object if any.
|
boolean |
isCommandAuthorized(String commandName)
Check whether the command with given name is allowed to be used.
|
boolean |
isLayerCreateAuthorized(String layerId)
Check whether creating new features may be allowed.
|
boolean |
isLayerDeleteAuthorized(String layerId)
Check whether there are features in the layer which can be deleted.
|
boolean |
isLayerUpdateAuthorized(String layerId)
Check whether there are features in the layer which can be updated.
|
boolean |
isLayerVisible(String layerId)
Check whether there are features in the layer which are visible.
|
boolean |
isToolAuthorized(String toolId)
Check whether the tool with given id is allowed to be used.
|
String getId()
Authorization objects from the same
SecurityService have the same id, they should behave exactly the same.
The id is not allowed to contain the horizontal bar ("|") or at ("@") characters (except on the
SecurityContext where these characters are used to make the combination of
contained authentications unique).boolean isToolAuthorized(String toolId)
toolId - tool id, as specified in ClientToolInfo.boolean isCommandAuthorized(String commandName)
commandName - name of command as passed to CommandDispatcherboolean isLayerVisible(String layerId)
layerId - layer id for which the visibility should be testedboolean isLayerUpdateAuthorized(String layerId)
layerId - layer id for which the visible area should be returnedboolean isLayerCreateAuthorized(String layerId)
layerId - layer id for which the visible area should be returnedboolean isLayerDeleteAuthorized(String layerId)
layerId - layer id for which the visible area should be returnedCopyright © 2015 Geosparc. All Rights Reserved.