コード例 #1
0
 /**
  * Gets the best available position id.
  *
  * @param overrideId the override id, null derives the result from the data
  * @return the id, may be null
  */
 public String getBestPositionUriId(final UniqueIdentifier overrideId) {
   if (overrideId != null) {
     return overrideId.toLatest().toString();
   }
   return getPosition() != null
       ? getPosition().getUniqueId().toLatest().toString()
       : getUriPositionId();
 }
コード例 #2
0
 /**
  * Gets the best available holiday id.
  *
  * @param overrideId the override id, null derives the result from the data
  * @return the id, may be null
  */
 public String getBestHolidayUriId(final UniqueIdentifier overrideId) {
   if (overrideId != null) {
     return overrideId.toLatest().toString();
   }
   return getHoliday() != null
       ? getHoliday().getUniqueId().toLatest().toString()
       : getUriHolidayId();
 }
コード例 #3
0
 /**
  * Gets the best available batch id.
  *
  * @param overrideId the override id, null derives the result from the data
  * @return the id, may be null
  */
 public String getBestBatchUriId(final UniqueIdentifier overrideId) {
   if (overrideId != null) {
     return overrideId.toLatest().toString();
   }
   return getBatch() != null ? getBatch().getUniqueId().toLatest().toString() : getUriBatchId();
 }