public abstract class Manager extends Object
Abstract Manager class.
Modifier and Type | Field and Description |
---|---|
protected boolean |
initialized |
Constructor and Description |
---|
Manager()
Constructor for Manager.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
countMaps(int mapId)
countMaps
|
abstract int |
deleteMap(int id)
delete the map with id in input
|
abstract void |
deleteMapTypeElementsFromAllMaps()
deleteMapTypeElementsFromAllMaps
|
abstract void |
deleteNodeTypeElementsFromAllMaps()
deleteNodeTypeElementsFromAllMaps
|
abstract List<VElementInfo> |
getAlarmedElements()
getAlarmedElements
|
abstract List<VElementInfo> |
getAllElementInfo()
getAllElementInfo
|
abstract DbElement[] |
getAllElements()
getAllElements
|
abstract VMapInfo[] |
getAllMapMenus()
getAllMapMenus
|
abstract DbMap[] |
getAllMaps()
getAllMaps
|
abstract Map<Integer,Double> |
getAvails(DbElement[] mapElements)
getAvails
|
abstract DbMap[] |
getContainerMaps(int id,
String type)
getContainerMaps
|
abstract List<Integer> |
getDeletedNodes()
getDeletedNodes
|
abstract DbElement |
getElement(int id,
int mapId,
String type)
getElement
|
abstract DbElement[] |
getElementsLike(String elementLabel)
getElementsLike
|
abstract DbElement[] |
getElementsOfMap(int mapid)
getElementsOfMap
|
abstract Set<LinkInfo> |
getLinksOnElements(Set<Integer> allnodes)
getLinksOnElements
|
abstract DbMap |
getMap(int id)
getMap
|
abstract DbElement[] |
getMapElementsOfMap(int mapid)
getMapElementsOfMap
|
abstract VMapInfo |
getMapMenu(int mapId)
getMapMenu
|
abstract DbMap[] |
getMaps(String mapname,
String maptype)
getMaps
|
abstract DbMap[] |
getMapsByName(String mapLabel)
getMapsByName
|
abstract DbMap[] |
getMapsLike(String mapLabel)
getMapsLike
|
abstract VMapInfo[] |
getMapsMenuByGroup(String group)
getMapsMenuByGroup
|
abstract VMapInfo[] |
getMapsMenuByName(String mapLabel)
getMapsMenuByName
|
abstract VMapInfo[] |
getMapsMenuByOther()
getMapsMenuByOther
|
abstract VMapInfo[] |
getMapsMenuByOwner(String owner)
getMapsMenuByOwner
|
abstract Map<Integer,Set<Integer>> |
getMapsStructure()
get a java.util.Map
|
abstract DbElement[] |
getNodeElementsOfMap(int mapid)
getNodeElementsOfMap
|
abstract Set<Integer> |
getNodeIdsBySource(String query)
getNodeIdsBySource
|
abstract Set<Integer> |
getNodeidsOnElement(DbElement elem)
getNodeidsOnElement
|
abstract boolean |
isElementDeleted(int elementId,
String type)
isElementDeleted
|
abstract boolean |
isElementInMap(int elementId,
int mapId,
String type)
isElementInMap
|
abstract DbElement |
newElement(int id,
int mapId,
String type)
newElement
|
abstract int |
saveMap(DbMap m,
Collection<DbElement> e)
saveMap
|
public abstract int saveMap(DbMap m, Collection<DbElement> e) throws MapsException
saveMap
m
- a DbMap
object.e
- a Collection
object.MapsException
- if any.public abstract int deleteMap(int id) throws MapsException
id
- a int.MapsException
- if any.public abstract void deleteNodeTypeElementsFromAllMaps() throws MapsException
deleteNodeTypeElementsFromAllMaps
MapsException
- if any.public abstract void deleteMapTypeElementsFromAllMaps() throws MapsException
deleteMapTypeElementsFromAllMaps
MapsException
- if any.public abstract DbElement getElement(int id, int mapId, String type) throws MapsException
getElement
id
- a int.mapId
- a int.type
- a String
object.DbElement
object.MapsException
- if any.public abstract DbElement newElement(int id, int mapId, String type) throws MapsException
newElement
id
- a int.mapId
- a int.type
- a String
object.DbElement
object.MapsException
- if any.public abstract DbElement[] getAllElements() throws MapsException
getAllElements
DbElement
objects.MapsException
- if any.public abstract DbElement[] getElementsOfMap(int mapid) throws MapsException
getElementsOfMap
mapid
- a int.DbElement
objects.MapsException
- if any.public abstract DbElement[] getNodeElementsOfMap(int mapid) throws MapsException
getNodeElementsOfMap
mapid
- a int.DbElement
objects.MapsException
- if any.public abstract DbElement[] getMapElementsOfMap(int mapid) throws MapsException
getMapElementsOfMap
mapid
- a int.DbElement
objects.MapsException
- if any.public abstract DbElement[] getElementsLike(String elementLabel) throws MapsException
getElementsLike
elementLabel
- a String
object.DbElement
objects.MapsException
- if any.public abstract Map<Integer,Set<Integer>> getMapsStructure() throws MapsException
MapsException
- if any.public abstract int countMaps(int mapId) throws MapsException
countMaps
mapId
- a int.MapsException
- if any.public abstract DbMap getMap(int id) throws MapsException
getMap
id
- a int.DbMap
object.MapsException
- if any.public abstract DbMap[] getMaps(String mapname, String maptype) throws MapsException
getMaps
mapname
- a String
object.maptype
- a String
object.DbMap
objects.MapsException
- if any.public abstract DbMap[] getAllMaps() throws MapsException
getAllMaps
DbMap
objects.MapsException
- if any.public abstract DbMap[] getMapsLike(String mapLabel) throws MapsException
getMapsLike
mapLabel
- a String
object.DbMap
objects.MapsException
- if any.public abstract DbMap[] getMapsByName(String mapLabel) throws MapsException
getMapsByName
mapLabel
- a String
object.DbMap
objects.MapsException
- if any.public abstract DbMap[] getContainerMaps(int id, String type) throws MapsException
getContainerMaps
id
- a int.type
- a String
object.DbMap
objects.MapsException
- if any.public abstract VMapInfo[] getAllMapMenus() throws MapsException
getAllMapMenus
VMapInfo
objects.MapsException
- if any.public abstract VMapInfo getMapMenu(int mapId) throws MapsException
getMapMenu
mapId
- a int.VMapInfo
object.MapsException
- if any.public abstract VMapInfo[] getMapsMenuByName(String mapLabel) throws MapsException
getMapsMenuByName
mapLabel
- a String
object.VMapInfo
objects.MapsException
- if any.public abstract VMapInfo[] getMapsMenuByOwner(String owner) throws MapsException
getMapsMenuByOwner
owner
- a String
object.VMapInfo
objects.MapsException
- if any.public abstract VMapInfo[] getMapsMenuByGroup(String group) throws MapsException
getMapsMenuByGroup
group
- a String
object.VMapInfo
objects.MapsException
- if any.public abstract VMapInfo[] getMapsMenuByOther() throws MapsException
getMapsMenuByOther
VMapInfo
objects.MapsException
- if any.public abstract boolean isElementInMap(int elementId, int mapId, String type) throws MapsException
isElementInMap
elementId
- a int.mapId
- a int.type
- a String
object.MapsException
- if any.public abstract boolean isElementDeleted(int elementId, String type) throws MapsException
isElementDeleted
elementId
- a int.type
- a String
object.MapsException
- if any.public abstract List<VElementInfo> getAllElementInfo() throws MapsException
getAllElementInfo
Vector
object.MapsException
- if any.public abstract List<VElementInfo> getAlarmedElements() throws MapsException
getAlarmedElements
List
object.MapsException
- if any.public abstract List<Integer> getDeletedNodes() throws MapsException
getDeletedNodes
Vector
object.MapsException
- if any.public abstract Map<Integer,Double> getAvails(DbElement[] mapElements) throws MapsException
getAvails
mapElements
- an array of DbElement
objects.Map
object.MapsException
- if any.public abstract Set<Integer> getNodeidsOnElement(DbElement elem) throws MapsException
getNodeidsOnElement
elem
- a DbElement
object.Set
object.MapsException
- if any.public abstract Set<Integer> getNodeIdsBySource(String query) throws MapsException
getNodeIdsBySource
query
- a String
object.Set
object.MapsException
- if any.public abstract Set<LinkInfo> getLinksOnElements(Set<Integer> allnodes) throws MapsException
getLinksOnElements
allnodes
- a Set
object.Set
object.MapsException
- if any.Copyright © 2015. All rights reserved.