Example #1
0
 /**
  * delete
  *
  * <p>Deletes the given track in db
  *
  * @param track
  * @throws EJBException
  */
 @Override
 public void delete(final Track track) throws EJBException {
   try {
     trackService.delete(track);
   } catch (ServiceException e) {
     log.error(e);
     throw new EJBException(e);
   }
 }
Example #2
0
 /**
  * getTracksByUser
  *
  * <p>Gets all the tracks in db for the given user
  *
  * @param user
  * @return List<Track> the user's tracks
  * @throws EJBException
  */
 @Override
 public List<Track> getTracksByUser(final User user) throws EJBException {
   try {
     return trackService.getTracksByUser(user);
   } catch (ServiceException e) {
     log.error(e);
     throw new EJBException(e);
   }
 }
Example #3
0
 /**
  * update
  *
  * <p>Updates the given track in db
  *
  * @param track
  * @return Track updated
  * @throws EJBException
  */
 @Override
 public Track update(final Track track) throws EJBException {
   try {
     return trackService.update(track);
   } catch (ServiceException e) {
     log.error(e);
     throw new EJBException(e);
   }
 }