Class CollectionSetMapper


  • public class CollectionSetMapper
    extends Object
    Helper class that maps @CollectionSet from Integration API to @CollectionSet and vice versa.
    • Constructor Detail

      • CollectionSetMapper

        public CollectionSetMapper​(org.opennms.integration.api.v1.dao.NodeDao nodeDao)
    • Method Detail

      • buildCollectionSet

        public org.opennms.integration.api.v1.collectors.CollectionSet buildCollectionSet​(org.opennms.integration.api.v1.collectors.resource.immutables.ImmutableCollectionSet.Builder builder,
                                                                                          CollectionSet collectionSet)
        Maps @CollectionSet to Integration API @CollectionSet and builds it.
      • buildCollectionSet

        public static CollectionSet buildCollectionSet​(CollectionSetBuilder builder,
                                                       org.opennms.integration.api.v1.collectors.CollectionSet collectionSet)
        Maps @CollectionSet from Integration API to @CollectionSet and builds it.
      • addAttributes

        public static void addAttributes​(org.opennms.integration.api.v1.collectors.resource.CollectionSetResource collectionSetResource,
                                         CollectionSetBuilder builder,
                                         Resource resource)