Interface UserIdDecorationStrategy
- All Known Subinterfaces:
MultiSiteUidDecorationStrategy
- All Known Implementing Classes:
DefaultMultiSiteUidDecorationStrategy
public interface UserIdDecorationStrategy
Provides methods for decorating identifier of the user. It should be taken into consideration that strategy can be invoked
in the system many times, which can lead to decorate the same identifier of the user many times. For this reason strategy should
be resistance for such situations and should not decorate the userId that has been already decorated.
-
Method Summary
Modifier and TypeMethodDescriptiondecorateUserId(String userId) If there is a need, it decorates and returns optional of the givenuserId, otherwise returns empty
-
Method Details
-
decorateUserId
If there is a need, it decorates and returns optional of the givenuserId, otherwise returns empty- Parameters:
userId- the unique identifier of the user- Returns:
- optional with the decorated
userIdor empty if theuserIdhasn't been decorated
-