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 java.lang.Object
- Author:
- maumig
|
Method Summary |
abstract int |
countMaps(int mapId)
|
abstract void |
deleteElement(Element e)
|
abstract void |
deleteElement(int id,
int mapid,
java.lang.String type)
|
abstract void |
deleteElements(Element[] elems)
|
abstract void |
deleteElementsOfMap(int id)
|
abstract int |
deleteMap(int id)
|
abstract int |
deleteMap(Map m)
|
abstract void |
deleteMapTypeElementsFromAllMaps()
|
abstract void |
deleteNodeTypeElementsFromAllMaps()
|
abstract void |
endSession()
|
abstract void |
finalize()
|
abstract ElementInfo[] |
getAllElementInfo()
|
abstract Element[] |
getAllElements()
|
abstract MapMenu[] |
getAllMapMenus()
|
abstract Map[] |
getAllMaps()
|
abstract Map[] |
getContainerMaps(int id,
java.lang.String type)
|
abstract Element |
getElement(int id,
int mapId,
java.lang.String type)
|
abstract java.util.Map |
getElementInfo(int elementId,
int mapId,
java.lang.String type)
returns a java.util.Map containing infos for the element of the map (key, value) |
abstract Element[] |
getElementsLike(java.lang.String elementLabel)
|
abstract Element[] |
getElementsOfMap(int mapid)
|
abstract VLink[] |
getLinks(VElement[] velems)
|
abstract VLink[] |
getLinksOnElement(VElement[] velems,
VElement elem)
|
abstract Map |
getMap(int id)
|
abstract Element[] |
getMapElementsOfMap(int mapid)
|
abstract MapMenu |
getMapMenu(int mapId)
|
abstract Map[] |
getMaps(java.lang.String mapname,
java.lang.String maptype)
|
abstract Map[] |
getMapsByName(java.lang.String mapLabel)
|
abstract Map[] |
getMapsLike(java.lang.String mapLabel)
|
abstract MapMenu[] |
getMapsMenuByName(java.lang.String mapLabel)
|
abstract MapMenu[] |
getMapsMenuByOwner(java.lang.String owner)
|
abstract java.util.Map |
getMapsStructure()
get a java.util.Map (key=parentMapId, value=set of child maps) |
abstract Element[] |
getNodeElementsOfMap(int mapid)
|
abstract MapMenu[] |
getVisibleMapsMenu(java.lang.String user,
java.lang.String userRole)
|
abstract void |
init()
|
abstract boolean |
isElementInMap(int elementId,
int mapId,
java.lang.String type)
|
boolean |
isInitialized()
|
abstract boolean |
isStartedSession()
|
abstract Element |
newElement(int id,
int mapId,
java.lang.String type)
|
abstract VElement |
refreshElement(VElement velem)
|
abstract VElement[] |
refreshElements(VElement[] velems)
|
abstract VMap |
reloadMap(VMap vmap)
|
abstract void |
saveElement(Element e)
|
abstract void |
saveElements(Element[] e)
|
abstract void |
saveMap(Map m)
|
abstract void |
saveMaps(Map[] m)
|
abstract void |
startSession()
All your operations on Maps must be preceeded from a startSession() call
and termined by an endSession() call. |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
initialized
protected boolean initialized
Manager
protected Manager(DataSource dataSource)
throws MapsException
- Throws:
MapsException
Manager
public Manager(DataSource dataSource,
java.util.Map params)
throws MapsException
- Throws:
MapsException
init
public abstract void init()
throws MapsException
- Throws:
MapsException
finalize
public abstract void finalize()
throws MapsException
- Overrides:
finalize in class java.lang.Object
- Throws:
MapsException
startSession
public abstract void startSession()
throws MapsException
- All your operations on Maps must be preceeded from a startSession() call
and termined by an endSession() call.
- Throws:
MapsException
endSession
public abstract void endSession()
throws MapsException
- Throws:
MapsException
isInitialized
public boolean isInitialized()
isStartedSession
public abstract boolean isStartedSession()
throws MapsException
- Throws:
MapsException
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,
java.lang.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
- 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,
java.lang.String type)
throws MapsException
- Throws:
MapsException
newElement
public abstract Element newElement(int id,
int mapId,
java.lang.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(java.lang.String elementLabel)
throws MapsException
- Throws:
MapsException
getMapsStructure
public abstract java.util.Map 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(java.lang.String mapname,
java.lang.String maptype)
throws MapsException
- Throws:
MapsException
getAllMaps
public abstract Map[] getAllMaps()
throws MapsException
- Throws:
MapsException
getMapsLike
public abstract Map[] getMapsLike(java.lang.String mapLabel)
throws MapsException
- Throws:
MapsException
getMapsByName
public abstract Map[] getMapsByName(java.lang.String mapLabel)
throws MapsException
- Throws:
MapsException
getContainerMaps
public abstract Map[] getContainerMaps(int id,
java.lang.String type)
throws MapsException
- Throws:
MapsException
getAllMapMenus
public abstract MapMenu[] getAllMapMenus()
throws MapsException
- Throws:
MapsException
getMapMenu
public abstract MapMenu getMapMenu(int mapId)
throws MapsException
- Throws:
MapsException
getMapsMenuByName
public abstract MapMenu[] getMapsMenuByName(java.lang.String mapLabel)
throws MapsException
- Throws:
MapsException
getMapsMenuByOwner
public abstract MapMenu[] getMapsMenuByOwner(java.lang.String owner)
throws MapsException
- Throws:
MapsException
getVisibleMapsMenu
public abstract MapMenu[] getVisibleMapsMenu(java.lang.String user,
java.lang.String userRole)
throws MapsException
- Throws:
MapsException
isElementInMap
public abstract boolean isElementInMap(int elementId,
int mapId,
java.lang.String type)
throws MapsException
- Throws:
MapsException
getAllElementInfo
public abstract ElementInfo[] getAllElementInfo()
throws MapsException
- Throws:
MapsException
getLinks
public abstract VLink[] getLinks(VElement[] velems)
throws MapsException
- Throws:
MapsException
getLinksOnElement
public abstract VLink[] getLinksOnElement(VElement[] velems,
VElement elem)
throws MapsException
- Throws:
MapsException
refreshElement
public abstract VElement refreshElement(VElement velem)
throws MapsException
- Throws:
MapsException
refreshElements
public abstract VElement[] refreshElements(VElement[] velems)
throws MapsException
- Throws:
MapsException
reloadMap
public abstract VMap reloadMap(VMap vmap)
throws MapsException
- Throws:
MapsException
getElementInfo
public abstract java.util.Map getElementInfo(int elementId,
int mapId,
java.lang.String type)
throws MapsException
- returns a java.util.Map containing infos for the element of the map (key, value)
- Parameters:
elementId - mapId - type -
- Returns:
-
- Throws:
MapsException
Copyright © 2007. All Rights Reserved.