Interface ConfigurableIconRepository
-
- All Superinterfaces:
IconRepository
- All Known Implementing Classes:
DefaultIconRepository
public interface ConfigurableIconRepository extends IconRepository
AnIconRepository
which can be updated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addIconMapping(java.lang.String iconKey, java.lang.String iconId)
Adds a custom icon mapping.void
removeIconMapping(java.lang.String iconKey)
Removes the giveniconKey
from thisIconRepository
.void
save()
Persists thisIconRepository
.-
Methods inherited from interface org.opennms.features.topology.api.IconRepository
contains, getSVGIconId
-
-
-
-
Method Detail
-
addIconMapping
void addIconMapping(java.lang.String iconKey, java.lang.String iconId)
Adds a custom icon mapping. TheiconKey
must be unique in thisIconRepository
.- Parameters:
iconKey
- The icon keyiconId
- The icon id for the icon key
-
removeIconMapping
void removeIconMapping(java.lang.String iconKey)
Removes the giveniconKey
from thisIconRepository
.- Parameters:
iconKey
- The icon key to remove
-
save
void save()
Persists thisIconRepository
. Should be invoked if changes to thisIconRepository
should be persisted permanently (e.g. on disk)
-
-