View Javadoc
1   /******************************************************************************
2    * BVLRestService.java - Client facing rest service
3    * $Id: BVLRestService.java,v 1.16 2015/05/11 01:57:54 dick Exp $
4    * 
5    * BuckoVidLib - The BuckoSoft Video Library
6    * Copyright(c) 2014 - Dick Balaska
7    * 
8    * $Log: BVLRestService.java,v $
9    * Revision 1.16  2015/05/11 01:57:54  dick
10   * /statistics wants a session so we don't count restricted movies.
11   *
12   * Revision 1.15  2015/04/30 06:34:27  dick
13   * Getting lists of VideoBase is always protected by session.
14   *
15   * Revision 1.14  2015/04/27 15:27:44  dick
16   * Move service calls that want session protection to RestService.
17   *
18   * Revision 1.13  2015/04/02 23:50:58  dick
19   * actorVideos returns a list of Videos that an actor was in.
20   *
21   * Revision 1.12  2015/04/01 02:45:52  dick
22   * get videos by Recent, Director or Writer.
23   *
24   * Revision 1.11  2015/03/27 19:47:44  dick
25   * Read the about and mia data from flat files in the config directory.
26   *
27   * Revision 1.10  2015/03/25 06:48:14  dick
28   * Return a DetailedVideo from a key.
29   *
30   * Revision 1.9  2015/03/21 09:19:30  dick
31   * sectionVideos(key) return the videos from one section.
32   *
33   * Revision 1.8  2014/10/31 06:55:11  dick
34   * Add /statistics
35   *
36   * Revision 1.7  2014/10/26 05:36:58  dick
37   * recentlyAdded status can display 2 videos.
38   *
39   * Revision 1.6  2014/10/23 05:00:11  dick
40   * WishList handling.
41   *
42   * Revision 1.5  2014/10/20 01:26:20  dick
43   * /status returns the libraryStatus.
44   *
45   * Revision 1.4  2014/10/17 08:12:10  dick
46   * Add the database and getFailedToRip().
47   *
48   * Revision 1.3  2014/10/08 04:37:09  dick
49   * Declare and implement fetch a random Video.
50   *
51   * Revision 1.2  2014/10/07 02:42:55  dick
52   * Library becomes RestLibrarySection
53   *
54   * Revision 1.1  2014/10/06 08:10:21  dick
55   * Client facing rest service
56   *
57   */
58  package com.buckosoft.BuckoVidLib.web;
59  
60  import java.util.List;
61  
62  import javax.jws.WebService;
63  import javax.ws.rs.GET;
64  import javax.ws.rs.Path;
65  
66  import com.buckosoft.BuckoVidLib.domain.FailedToRip;
67  import com.buckosoft.BuckoVidLib.domain.WishList;
68  
69  /** Primary client facing rest service
70   * @author dick
71   * @since 2014-10-06
72   */
73  @WebService
74  public interface BVLRestService {
75  	
76  	@GET
77  	@Path("/failedToRip")
78  	List<FailedToRip>	failedToRip();
79  
80  	@GET
81  	@Path("/wishList")
82  	List<WishList>	wishList();
83  
84  	@GET
85  	@Path("/statistics/mia")
86  	String	missingInAction();
87  
88  	@GET
89  	@Path("/about")
90  	String	about();
91  
92  	@GET
93  	@Path("/.*")
94  	public void unhandled();
95  	
96  }