org.opennms.web.map.db
Class Manager
java.lang.Object
org.opennms.web.map.db.Manager
- Direct Known Subclasses:
- DBManager
public abstract class Manager
- extends Object
- Author:
- maumig, Antonio Russo
|
Method Summary |
abstract int |
countMaps(int mapId)
|
abstract void |
deleteElement(Element e)
|
abstract void |
deleteElement(int id,
int mapid,
String type)
|
abstract void |
deleteElements(Element[] elems)
|
abstract void |
deleteElementsOfMap(int id)
|
abstract int |
deleteMap(int id)
delete the map with id in input |
abstract int |
deleteMap(Map m)
|
abstract void |
deleteMapTypeElementsFromAllMaps()
|
abstract void |
deleteNodeTypeElementsFromAllMaps()
|
abstract List<VElementInfo> |
getAlarmedElements()
|
abstract VElementInfo[] |
getAllElementInfo()
|
abstract Element[] |
getAllElements()
|
abstract VMapInfo[] |
getAllMapMenus()
|
abstract Map[] |
getAllMaps()
|
abstract Map<Integer,Double> |
getAvails(Element[] mapElements)
|
abstract Map[] |
getContainerMaps(int id,
String type)
|
abstract Vector<Integer> |
getDeletedNodes()
|
abstract Element |
getElement(int id,
int mapId,
String type)
|
abstract VElementInfo[] |
getElementInfoLike(String like)
|
abstract Element[] |
getElementsLike(String elementLabel)
|
abstract Element[] |
getElementsOfMap(int mapid)
|
abstract Set<LinkInfo> |
getLinksOnElements(Set<Integer> allnodes)
|
abstract Map |
getMap(int id)
|
abstract Element[] |
getMapElementsOfMap(int mapid)
|
abstract VMapInfo |
getMapMenu(int mapId)
|
abstract Map[] |
getMaps(String mapname,
String maptype)
|
abstract Map[] |
getMapsByName(String mapLabel)
|
abstract Map[] |
getMapsLike(String mapLabel)
|
abstract VMapInfo[] |
getMapsMenuByGroup(String group)
|
abstract VMapInfo[] |
getMapsMenuByName(String mapLabel)
|
abstract VMapInfo[] |
getMapsMenuByOther()
|
abstract VMapInfo[] |
getMapsMenuByOwner(String owner)
|
abstract Map<Integer,Set<Integer>> |
getMapsStructure()
get a java.util.Map (key=parentMapId, value=set of child maps) |
abstract Element[] |
getNodeElementsOfMap(int mapid)
|
abstract Set<Integer> |
getNodeIdsBySource(String query)
|
abstract Set<Integer> |
getNodeidsOnElement(Element elem)
|
abstract boolean |
isElementInMap(int elementId,
int mapId,
String type)
|
abstract boolean |
isElementNotDeleted(int elementId,
String type)
|
boolean |
isInitialized()
|
abstract Element |
newElement(int id,
int mapId,
String type)
|
abstract void |
saveElement(Element e)
|
abstract void |
saveElements(Element[] e)
|
abstract void |
saveMap(Map m)
|
abstract void |
saveMaps(Map[] m)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialized
protected boolean initialized
Manager
public Manager()
isInitialized
public boolean isInitialized()
saveMaps
public abstract void saveMaps(Map[] m)
throws MapsException
- Throws:
MapsException
saveMap
public abstract void saveMap(Map m)
throws MapsException
- Throws:
MapsException
saveElements
public abstract void saveElements(Element[] e)
throws MapsException
- Throws:
MapsException
saveElement
public abstract void saveElement(Element e)
throws MapsException
- Throws:
MapsException
deleteElements
public abstract void deleteElements(Element[] elems)
throws MapsException
- Throws:
MapsException
deleteElement
public abstract void deleteElement(Element e)
throws MapsException
- Throws:
MapsException
deleteElement
public abstract void deleteElement(int id,
int mapid,
String type)
throws MapsException
- Throws:
MapsException
deleteElementsOfMap
public abstract void deleteElementsOfMap(int id)
throws MapsException
- Throws:
MapsException
deleteMap
public abstract int deleteMap(Map m)
throws MapsException
- Throws:
MapsException
deleteMap
public abstract int deleteMap(int id)
throws MapsException
- delete the map with id in input
- Parameters:
id -
- Returns:
- number of maps deleted
- Throws:
MapsException
deleteNodeTypeElementsFromAllMaps
public abstract void deleteNodeTypeElementsFromAllMaps()
throws MapsException
- Throws:
MapsException
deleteMapTypeElementsFromAllMaps
public abstract void deleteMapTypeElementsFromAllMaps()
throws MapsException
- Throws:
MapsException
getElement
public abstract Element getElement(int id,
int mapId,
String type)
throws MapsException
- Throws:
MapsException
newElement
public abstract Element newElement(int id,
int mapId,
String type)
throws MapsException
- Throws:
MapsException
getAllElements
public abstract Element[] getAllElements()
throws MapsException
- Throws:
MapsException
getElementsOfMap
public abstract Element[] getElementsOfMap(int mapid)
throws MapsException
- Throws:
MapsException
getNodeElementsOfMap
public abstract Element[] getNodeElementsOfMap(int mapid)
throws MapsException
- Throws:
MapsException
getMapElementsOfMap
public abstract Element[] getMapElementsOfMap(int mapid)
throws MapsException
- Throws:
MapsException
getElementsLike
public abstract Element[] getElementsLike(String elementLabel)
throws MapsException
- Throws:
MapsException
getMapsStructure
public abstract Map<Integer,Set<Integer>> getMapsStructure()
throws MapsException
- get a java.util.Map (key=parentMapId, value=set of child maps)
- Returns:
- java.util.Map (key=parentMapId, value=set of child maps)
- Throws:
MapsException
countMaps
public abstract int countMaps(int mapId)
throws MapsException
- Throws:
MapsException
getMap
public abstract Map getMap(int id)
throws MapsException
- Throws:
MapsException
getMaps
public abstract Map[] getMaps(String mapname,
String maptype)
throws MapsException
- Throws:
MapsException
getAllMaps
public abstract Map[] getAllMaps()
throws MapsException
- Throws:
MapsException
getMapsLike
public abstract Map[] getMapsLike(String mapLabel)
throws MapsException
- Throws:
MapsException
getMapsByName
public abstract Map[] getMapsByName(String mapLabel)
throws MapsException
- Throws:
MapsException
getContainerMaps
public abstract Map[] getContainerMaps(int id,
String type)
throws MapsException
- Throws:
MapsException
getAllMapMenus
public abstract VMapInfo[] getAllMapMenus()
throws MapsException
- Throws:
MapsException
getMapMenu
public abstract VMapInfo getMapMenu(int mapId)
throws MapsException
- Throws:
MapsException
getMapsMenuByName
public abstract VMapInfo[] getMapsMenuByName(String mapLabel)
throws MapsException
- Throws:
MapsException
getMapsMenuByOwner
public abstract VMapInfo[] getMapsMenuByOwner(String owner)
throws MapsException
- Throws:
MapsException
getMapsMenuByGroup
public abstract VMapInfo[] getMapsMenuByGroup(String group)
throws MapsException
- Throws:
MapsException
getMapsMenuByOther
public abstract VMapInfo[] getMapsMenuByOther()
throws MapsException
- Throws:
MapsException
isElementInMap
public abstract boolean isElementInMap(int elementId,
int mapId,
String type)
throws MapsException
- Throws:
MapsException
isElementNotDeleted
public abstract boolean isElementNotDeleted(int elementId,
String type)
throws MapsException
- Throws:
MapsException
getAllElementInfo
public abstract VElementInfo[] getAllElementInfo()
throws MapsException
- Throws:
MapsException
getElementInfoLike
public abstract VElementInfo[] getElementInfoLike(String like)
throws MapsException
- Throws:
MapsException
getAlarmedElements
public abstract List<VElementInfo> getAlarmedElements()
throws MapsException
- Throws:
MapsException
getDeletedNodes
public abstract Vector<Integer> getDeletedNodes()
throws MapsException
- Throws:
MapsException
getAvails
public abstract Map<Integer,Double> getAvails(Element[] mapElements)
throws MapsException
- Throws:
MapsException
getNodeidsOnElement
public abstract Set<Integer> getNodeidsOnElement(Element elem)
throws MapsException
- Throws:
MapsException
getNodeIdsBySource
public abstract Set<Integer> getNodeIdsBySource(String query)
throws MapsException
- Throws:
MapsException
getLinksOnElements
public abstract Set<LinkInfo> getLinksOnElements(Set<Integer> allnodes)
throws MapsException
- Throws:
MapsException
Copyright © 2009. All Rights Reserved.