public interface Manager
Manager interface.
Modifier and Type | Method and Description |
---|---|
VMap |
addElements(VMap map,
List<VElement> velems)
addElements
|
boolean |
checkCommandExecution() |
void |
clearMap()
clearMap
|
void |
closeMap()
Close a VMap previusly opened.
|
void |
deleteMap()
delete the map current map
|
String |
execCommand(Command command)
ExecCommand
|
boolean |
foundLoopOnMaps(VMap parentMap,
int mapId)
foundLoopOnMaps
|
Command |
getCommand(String id) |
VMapInfo |
getDefaultMapsMenu(String user)
get the default map for specified user in input
if exists null otherwise
|
List<VElementInfo> |
getElementInfo()
getElementInfo
|
Map<String,Set<Integer>> |
getNodeLabelToMaps(String user)
Get a Map of nodelabel to the
container mapids.
|
VProperties |
getProperties(boolean isUserAdmin)
getProperties
|
List<VMapInfo> |
getVisibleMapsMenu(String user)
gets all visible maps for user in input
|
VElement |
newElement(int mapid,
int elementId,
String type)
Create a new (not child) empty Submap with the identifier setted to id.
|
VElement |
newElement(int mapId,
int elementId,
String type,
String iconname,
int x,
int y)
Create a new (not child) empty Submap with the identifier setted to id.
|
VMap |
newMap(String owner,
String userModifies,
int width,
int height)
Create a new VMap and return it
|
VMap |
openMap()
openMap
|
VMap |
openMap(int id,
String user,
boolean refreshElems)
Take the map with id in input and return it in VMap form.
|
VMap |
refreshMap(VMap map)
refreshMap
|
void |
reloadConfig()
reloadConfig
|
VMap |
reloadMap(VMap map)
Refreshs avail,severity and status of the map in input and its elements
|
void |
removeCommand(String id) |
int |
save(VMap map)
save the map in input
|
VMap |
searchMap(String owner,
String userModifies,
int width,
int height,
List<VElement> velems)
searchMap
|
VMap newMap(String owner, String userModifies, int width, int height)
void closeMap()
VMap openMap() throws MapNotFoundException
openMap
MapsException
- if any.MapNotFoundException
- if any.VMap openMap(int id, String user, boolean refreshElems) throws MapNotFoundException, MapsException
id
- a int.user
- a String
object.refreshElems
- says if refresh the map's elementsMapsException
- if any.MapNotFoundException
- if any.void clearMap() throws MapNotFoundException, MapsException
clearMap
MapNotFoundException
- if any.MapsException
- if any.List<VMapInfo> getVisibleMapsMenu(String user) throws MapsException
user
- a String
object.MapsException
- if any.VMapInfo getDefaultMapsMenu(String user) throws MapsException
user
- a String
object.MapsException
- if any.VElement newElement(int mapid, int elementId, String type) throws MapsException
elementId
- a int.type
- the node typemapid
- a int.VElement
object.MapsException
- if any.VElement newElement(int mapId, int elementId, String type, String iconname, int x, int y) throws MapsException
mapId
- a int.elementId
- a int.type
- the node typex
- position on the x axisy
- position on the y axisiconname
- a String
object.MapsException
- if any.void deleteMap() throws MapsException, MapNotFoundException
MapsException
- if an error occour deleting map, MapNotFoundException if the
map to delete doesn't exist.MapNotFoundException
- if any.int save(VMap map) throws MapsException
map
- to saveMapsException
- if any.VMap refreshMap(VMap map) throws MapsException
refreshMap
map
- a VMap
object.VMap
object.MapsException
- if any.VMap reloadMap(VMap map) throws MapsException
map
- a VMap
object.MapsException
- if any.boolean foundLoopOnMaps(VMap parentMap, int mapId) throws MapsException
foundLoopOnMaps
parentMap
- a VMap
object.mapId
- a int.MapsException
- if any.List<VElementInfo> getElementInfo() throws MapsException
getElementInfo
List
object.MapsException
- if any.Map<String,Set<Integer>> getNodeLabelToMaps(String user) throws MapsException
user
- a String
object.MapsException
- if any.VMap searchMap(String owner, String userModifies, int width, int height, List<VElement> velems) throws MapsException
searchMap
owner
- a String
object.userModifies
- a String
object.width
- a int.height
- a int.velems
- a List
object.VMap
object.MapsException
- if any.VProperties getProperties(boolean isUserAdmin) throws MapsException
getProperties
isUserAdmin
- a boolean.VProperties
object.MapsException
- if any.VMap addElements(VMap map, List<VElement> velems) throws MapsException
addElements
map
- a VMap
object.velems
- a List
object.VMap
object.MapsException
- if any.void reloadConfig() throws MapsException
reloadConfig
MapsException
- if any.void removeCommand(String id)
boolean checkCommandExecution()
Copyright © 2015. All rights reserved.