Class PositionServiceUtil
java.lang.Object
com.bluebell.greenhouse.radicle.util.position.PositionServiceUtil
Shared helper methods for position-related services.
- Version:
- 2.0.3
- Author:
- Stephen Prizio
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSameEntity(Long id, Long otherId) Returns true if two entity ids represent the same entity.static PositionrefreshPosition(PositionRepository positionRepository, Position position) Refreshes the givenPositionfrom persistence when it has an id.static ZoneIdresolveZoneId(Account account) Returns the user'sZoneId.
-
Method Details
-
resolveZoneId
-
refreshPosition
Refreshes the givenPositionfrom persistence when it has an id.- Parameters:
positionRepository-PositionRepositoryposition-Position- Returns:
- managed
Position
-
isSameEntity
-