public interface FeedIdStrategy
FeedIdStrategy is a service that can supply unique IDs for feeds registering with the inventory.
Implementations of this interface are fed to the Inventory, which then uses it in the implementation of the
Feeds.ReadWrite.create(Feed.Blueprint) method.
| Modifier and Type | Method and Description |
|---|---|
String |
generate(Inventory inventory,
Feed proposedFeed)
Generates a unique ID for the provided feed.
|
String generate(Inventory inventory, Feed proposedFeed) throws EntityAlreadyExistsException
inventory - the inventory implementation to optionally consult some constraintsproposedFeed - the feed to be generated with the ID proposed by the callerEntityAlreadyExistsException - if a feed with the proposed ID exists and no alternatives can be proposed
by this strategy.Copyright © 2015 Red Hat, Inc.. All rights reserved.