Interface ConfigurableIconRepository
-
- All Superinterfaces:
IconRepository
- All Known Implementing Classes:
DefaultIconRepository
public interface ConfigurableIconRepository extends IconRepository
AnIconRepositorywhich can be updated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddIconMapping(java.lang.String iconKey, java.lang.String iconId)Adds a custom icon mapping.voidremoveIconMapping(java.lang.String iconKey)Removes the giveniconKeyfrom thisIconRepository.voidsave()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. TheiconKeymust 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 giveniconKeyfrom thisIconRepository.- Parameters:
iconKey- The icon key to remove
-
save
void save()
Persists thisIconRepository. Should be invoked if changes to thisIconRepositoryshould be persisted permanently (e.g. on disk)
-
-