|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.map.view.Manager
public class Manager
| Constructor Summary | |
|---|---|
Manager()
Manage Maps using default implementation of Factory and Manager |
|
Manager(MapsFactory mFactory)
Create a new Manager using the Maps Factory in input. |
|
Manager(java.lang.String mapsFactoryLabel)
Create a new Manager using the Maps Factory with label in input. |
|
| Method Summary | |
|---|---|
void |
deleteAllMapElements()
delete all defined sub maps in existent maps |
void |
deleteAllNodeElements()
delete all defined node elements in existent maps |
void |
deleteElementsOfMap(int mapId)
|
void |
deleteMap(int mapId)
delete the map with identifier id |
void |
deleteMap(VMap map)
delete the map in input |
void |
deleteMaps(int[] maps)
delete the maps with the identifiers in input |
void |
deleteMaps(VMap[] maps)
delete the maps in input |
void |
endSession()
Close the block open by startSession() method. |
boolean |
foundLoopOnMaps(VMap parentMap,
int mapId)
|
ElementInfo[] |
getAllElementInfo()
|
MapMenu[] |
getAllMapMenus()
Get all defined maps. |
VMap[] |
getAllMaps(boolean refreshElems)
Get all defined maps. |
Manager |
getDataAccessManager()
|
java.util.List |
getLinks(VElement[] elems)
|
java.util.List |
getLinksOnElem(VElement[] elems,
VElement elem)
|
VMap |
getMap(int id,
boolean refreshElems)
Take the map with id in input and return it in VMap form. |
VMap[] |
getMap(java.lang.String mapname,
java.lang.String maptype,
boolean refreshElems)
Take the map label and type in input and return it in VMap form. |
MapMenu |
getMapMenu(int mapId)
|
VMap[] |
getMapsByName(java.lang.String mapName,
boolean refreshElems)
Take the maps with name in input and return them in VMap[] form. |
MapsFactory |
getMapsFactory()
gets the using Maps Factory |
VMap[] |
getMapsLike(java.lang.String likeLabel,
boolean refreshElems)
Take the maps with label like the pattern in input and return them in VMap[] form. |
MapMenu[] |
getMapsMenuByName(java.lang.String mapName)
Take the maps with name in input and return them in MapMenu[] form. |
java.util.List |
getMapsMenuTreeByName(java.lang.String mapName)
Take all the maps in the tree of maps considering the with name in input as the root of the tree. |
java.util.List<MapMenu> |
getVisibleMapsMenu(java.lang.String user,
java.lang.String userRole)
gets all visible maps for user and userRole in input |
VElement |
newElement(int mapId,
int elementId,
java.lang.String type)
Create a new (not child) empty Submap with the identifier setted to id. |
VElement |
newElement(int mapId,
int elementId,
java.lang.String type,
int x,
int y)
Create a new (not child) empty Submap with the identifier setted to id. |
VElement |
newElement(int mapId,
int elementId,
java.lang.String type,
java.lang.String iconname)
Create a new (not child) empty Submap with the identifier setted to id. |
VElement |
newElement(int mapId,
int elementId,
java.lang.String type,
java.lang.String iconname,
int x,
int y)
Create a new (not child) empty Submap with the identifier setted to id. |
VMap |
newMap()
Create a new empty VMap and return it. |
VMap |
newMap(java.lang.String name,
java.lang.String accessMode,
java.lang.String owner,
java.lang.String userModifies,
int width,
int height)
Create a new VMap and return it |
java.util.List |
refreshElements(VElement[] mapElements)
Refreshes of avail,severity and status of the elements in input. |
java.util.List |
refreshLinks(VLink[] mapLinks)
TODO write this method simil way to refreshElement Not Yet Implemented |
VMap |
reloadMap(VMap map)
Refreshs avail,severity and status of the map in input and its elements |
void |
save(VMap map)
save the map in input |
void |
save(VMap[] maps)
save the maps in input |
void |
startSession()
Start the session: only operations made in the block between start and end session will be saved correctly. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Manager()
throws MapsException
MapsException
public Manager(java.lang.String mapsFactoryLabel)
throws MapsException
mapsFactoryLabel -
MapsException
public Manager(MapsFactory mFactory)
throws MapsException
mFactory -
MapsException| Method Detail |
|---|
public MapsFactory getMapsFactory()
public void startSession()
throws MapsException
MapsExceptionendSession
public void endSession()
throws MapsException
MapsExceptionstartSession()public VMap newMap()
public VMap newMap(java.lang.String name,
java.lang.String accessMode,
java.lang.String owner,
java.lang.String userModifies,
int width,
int height)
name - accessMode - owner - userModifies - width - height -
public VMap getMap(int id,
boolean refreshElems)
throws MapsManagementException,
MapNotFoundException,
MapsException
id - refreshElems - says if refresh the map's elements
MapsException
MapsManagementException
MapNotFoundException
public void deleteElementsOfMap(int mapId)
throws MapsException
MapsException
public VMap[] getMap(java.lang.String mapname,
java.lang.String maptype,
boolean refreshElems)
throws MapsManagementException,
MapNotFoundException,
MapsException
mapname - maptype - refreshElems - says if refresh map's elements
MapsException
MapsManagementException
MapNotFoundException
public MapMenu getMapMenu(int mapId)
throws MapNotFoundException,
MapsException
MapNotFoundException
MapsException
public java.util.List getLinks(VElement[] elems)
throws MapsException
MapsException
public java.util.List getLinksOnElem(VElement[] elems,
VElement elem)
throws MapsException
MapsException
public VMap[] getMapsLike(java.lang.String likeLabel,
boolean refreshElems)
throws MapsException
label - refreshElems - says if refresh map's elements
MapsException
public VMap[] getMapsByName(java.lang.String mapName,
boolean refreshElems)
throws MapNotFoundException,
MapsException
mapName - refhresElems - says if refresh maps' elements
MapsException
MapNotFoundException
public VMap[] getAllMaps(boolean refreshElems)
throws MapNotFoundException,
MapsException
refreshElems - says if refresh maps' elements
MapsException
MapNotFoundException
public MapMenu[] getAllMapMenus()
throws MapNotFoundException,
MapsException
MapsException
MapNotFoundException
public MapMenu[] getMapsMenuByName(java.lang.String mapName)
throws MapNotFoundException,
MapsException
mapName -
MapsException
MapNotFoundException
public java.util.List<MapMenu> getVisibleMapsMenu(java.lang.String user,
java.lang.String userRole)
throws MapsException
user - userRole -
MapsException
public java.util.List getMapsMenuTreeByName(java.lang.String mapName)
throws MapNotFoundException,
MapsException
mapName -
MapsException
MapNotFoundException
public VElement newElement(int mapId,
int elementId,
java.lang.String type,
int x,
int y)
throws MapsException
mapId - elementId - type - the node type
MapsException
public VElement newElement(int mapId,
int elementId,
java.lang.String type)
throws MapsException
mapId - elementId - type - the node type
MapsException
public VElement newElement(int mapId,
int elementId,
java.lang.String type,
java.lang.String iconname,
int x,
int y)
throws MapsException
mapId - elementId - type - the node type
MapsException
public VElement newElement(int mapId,
int elementId,
java.lang.String type,
java.lang.String iconname)
throws MapsException
mapId - elementId - type - the node type
MapsException
public void deleteMap(VMap map)
throws MapsException,
MapNotFoundException
map - to delete
MapsException - if an error occour deleting map, MapNotFoundException if the
map to delete doesn't exist.
MapNotFoundException
public void deleteMap(int mapId)
throws MapsException
id - of the map to delete
MapsException
public void deleteMaps(VMap[] maps)
throws MapsException
maps - to delete
MapsException
public void deleteMaps(int[] maps)
throws MapsException
identifiers - of the maps to delete
MapsException
public void save(VMap map)
throws MapsException
map - to save
MapsException
public void save(VMap[] maps)
throws MapsException
maps - to save
MapsException
public void deleteAllNodeElements()
throws MapsException
MapsException
public void deleteAllMapElements()
throws MapsException
MapsException
public java.util.List refreshElements(VElement[] mapElements)
throws MapsException
mapElements - the elements to refreshincremental - return only changed elements, if the refresh implementation is capable of this operation
MapsException
public VMap reloadMap(VMap map)
throws MapsException
map -
MapsExceptionpublic java.util.List refreshLinks(VLink[] mapLinks)
public boolean foundLoopOnMaps(VMap parentMap,
int mapId)
throws MapsException
MapsException
public ElementInfo[] getAllElementInfo()
throws MapsException
MapsExceptionpublic Manager getDataAccessManager()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||