示例#1
0
 /**
  * Compute expiration date using configured timeouts.
  *
  * @param ticket
  * @return
  */
 public DateTime getExpirationDate(Authorization authorization) {
   return getExpirationDate(authorization.getCreatedDate());
 }
示例#2
0
 /**
  * Delete the {@link Authorization}.
  *
  * @param authorization
  */
 public void delete(Authorization authorization) {
   if (authorization == null) return;
   authorizationRepository.delete(authorization.getId());
   eventBus.post(new AuthorizationDeletedEvent(authorization));
 }