Class CollectionSetMapper
- java.lang.Object
-
- org.opennms.features.apilayer.collectors.CollectionSetMapper
-
public class CollectionSetMapper extends Object
Helper class that maps @CollectionSet
from Integration API to @CollectionSet
and vice versa.
-
-
Constructor Summary
Constructors Constructor Description CollectionSetMapper(org.opennms.integration.api.v1.dao.NodeDao nodeDao)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
addAttributes(org.opennms.integration.api.v1.collectors.resource.CollectionSetResource collectionSetResource, CollectionSetBuilder builder, Resource resource)
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.static CollectionSet
buildCollectionSet(CollectionSetBuilder builder, org.opennms.integration.api.v1.collectors.CollectionSet collectionSet)
Maps @CollectionSet
from Integration API to @CollectionSet
and builds it.
-
-
-
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)
-
-