Interface SnIdentityProvider<T extends ItemModel>
- All Known Implementing Classes:
DefaultSnIdentityProvider
public interface SnIdentityProvider<T extends ItemModel>
Creates identifiers for items.
-
Method Summary
Modifier and TypeMethodDescriptiongetIdentifier(SnContext context, PK pk) Provides a unique identifier for the given pk.getIdentifier(SnContext context, T item) Provides a unique identifier for the given item.
-
Method Details
-
getIdentifier
Provides a unique identifier for the given item.- Parameters:
context- - the contextitem- - the item- Returns:
- the identifier
- Throws:
SnIndexerException- if an error occursSnException
-
getIdentifier
Provides a unique identifier for the given pk.- Parameters:
context- - the contextpk- - the pk- Returns:
- the identifier
- Throws:
SnIndexerException- if an error occursSnException
-