Class PositionServiceUtil

java.lang.Object
com.bluebell.greenhouse.radicle.util.position.PositionServiceUtil

public final class PositionServiceUtil extends Object
Shared helper methods for position-related services.
Version:
2.0.3
Author:
Stephen Prizio
  • Method Details

    • resolveZoneId

      public static ZoneId resolveZoneId(Account account)
      Returns the user's ZoneId.
      Parameters:
      account - Account
      Returns:
      ZoneId
    • refreshPosition

      public static Position refreshPosition(PositionRepository positionRepository, Position position)
      Refreshes the given Position from persistence when it has an id.
      Parameters:
      positionRepository - PositionRepository
      position - Position
      Returns:
      managed Position
    • isSameEntity

      public static boolean isSameEntity(Long id, Long otherId)
      Returns true if two entity ids represent the same entity.
      Parameters:
      id - entity id
      otherId - other entity id
      Returns:
      true if same id