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 Type
    Method
    Description
    If there is a need, it decorates and returns optional of the given userId, otherwise returns empty
  • Method Details

    • decorateUserId

      Optional<String> decorateUserId(String userId)
      If there is a need, it decorates and returns optional of the given userId, otherwise returns empty
      Parameters:
      userId - the unique identifier of the user
      Returns:
      optional with the decorated userId or empty if the userId hasn't been decorated