CPD Results

The following document contains the results of PMD's CPD 5.5.1.

Duplications

File Line
com/buckosoft/BuckoVidLib/domain/User.java 68
com/buckosoft/BuckoVidLib/domain/rest/RestUser.java 42
	}

	/** Is this user an admin?
	 * @return the admin
	 */
	public boolean isAdmin() {
		return admin;
	}

	/** Declare this user to be an admin
	 * @param admin the admin to set
	 */
	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	/** Is this user allowed access to the restricted areas of the library?
	 * @return default = false, true = allow access
	 */
	public boolean isUnrestricted() {
		return unrestricted;
	}

	/** Declare this user's access to the restricted areas.
	 * @param unrestricted the unrestricted to set
	 */
	public void setUnrestricted(boolean unrestricted) {
		this.unrestricted = unrestricted;
	}

	/** Perhaps the User wants to hide the restricted sections, even though he's authorized.
	 * @return the hideRestricted
	 */
	public boolean isHideRestricted() {
		return hideRestricted;
	}

	/**
	 * @param hideRestricted the hideRestricted to set
	 */
	public void setHideRestricted(boolean hideRestricted) {
		this.hideRestricted = hideRestricted;
	}

	/** Get the User's preference for background type
	 * 0 = fit the image to the screen
	 * 1 = fill the screen with the image (default)
	 * 2 = no background image
	 * @return the backgroundFit
	 */
	public int getBackgroundFit() {
		return backgroundFit;
	}

	/**
	 * @param backgroundFit the backgroundFit to set
	 */
	public void setBackgroundFit(int backgroundFit) {
		this.backgroundFit = backgroundFit;
	}

	/**
	 * @return the artShowFit
	 */
	public int getArtShowFit() {
		return artShowFit;
	}

	/** User's preference for the ArtShow background type.
	 * If the user is running the grey background, then he may still want to style the ArtShow.
	 * @param artShowFit the artShowFit to set
	 */
	public void setArtShowFit(int artShowFit) {
		this.artShowFit = artShowFit;
	}

	/**
	 * @return the backgroundDelay
	 */
	public int getBackgroundDelay() {
		return backgroundDelay;
	}

	/**
	 * @param backgroundDelay the backgroundDelay to set
	 */
	public void setBackgroundDelay(int backgroundDelay) {
		this.backgroundDelay = backgroundDelay;
	}

	/**
	 * @return the artShowDelay
	 */
	public int getArtShowDelay() {
		return artShowDelay;
	}

	/**
	 * @param artShowDelay the artShowDelay to set
	 */
	public void setArtShowDelay(int artShowDelay) {
		this.artShowDelay = artShowDelay;
	}

	/**
	 * @return the findMaxResults
	 */
	public int getFindMaxResults() {
		return findMaxResults;
	}

	/**
	 * @param findMaxResults the findMaxResults to set
	 */
	public void setFindMaxResults(int findMaxResults) {
		this.findMaxResults = findMaxResults;
	}
File Line
com/buckosoft/BuckoVidLib/domain/TVSeason.java 40
com/buckosoft/BuckoVidLib/domain/VideoBase.java 50
		if (!this.title.equals(((TVSeason)other).title))
			return(false);
		return(true);
	}
	
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the hashKey
	 */
	public int getHashKey() {
		return hashKey;
	}

	/**
	 * @param hashKey the hashKey to set
	 */
	public void setHashKey(int hashKey) {
		this.hashKey = hashKey;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @return the plexKey
	 */
	public int getPlexKey() {
File Line
com/buckosoft/BuckoVidLib/web/ImageController.java 237
com/buckosoft/BuckoVidLib/web/PosterController.java 123
				log.debug("grow target: " + targetw + "/" + targeth);
				BufferedImage scaled = new BufferedImage(targetw, targeth, BufferedImage.TYPE_INT_BGR);
				Graphics2D g;
				g = scaled.createGraphics();
				g.drawImage(img.getScaledInstance(targetw, targeth, Image.SCALE_SMOOTH), null, null);
				// replace outgoing image with scaled version
				img = scaled;
				g.dispose();
				// pick an exact sized slice out of the image
				int overw = img.getWidth() - w;
				int	overh = img.getHeight() - h;
				int shiftw = (int)(Math.random()*overw);
File Line
com/buckosoft/BuckoVidLib/domain/rest/RestDetailedVideo.java 43
com/buckosoft/BuckoVidLib/domain/rest/RestVideo.java 90
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the year
	 */
	public int getYear() {
		return year;
	}
	/**
	 * @param year the year to set
	 */
	public void setYear(int year) {
		this.year = year;
	}
	/**
	 * @return the hashKey
	 */
	public String getHashKey() {
		return hashKey;
	}
	/**
	 * @param hashKey the hashKey to set
	 */
	public void setHashKey(String hashKey) {
		this.hashKey = hashKey;
	}
	/**
	 * @return the studio
	 */
	public String getStudio() {
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1101
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1131
				String s = "posterCacheSM: Can't write '" + file.getAbsolutePath() + "'";
				addMessage(mtDanger, s);
				try { fos.close(); } catch (IOException e1) {}
				file.delete();
				throw(new Exception(s, e));
			}
			try {
				if (fos != null)
					fos.close();
			} catch (IOException e) {
				String s = "posterCacheSM: Can't write/close '" + file.getAbsolutePath() + "'";
File Line
com/buckosoft/BuckoVidLib/domain/Director.java 39
com/buckosoft/BuckoVidLib/domain/Writer.java 38
	public void clone(Director other) {
		this.id = other.id;
		this.name = other.name;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/** Get the name of this Director
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/** Set the name of this Director
	 * @param tag the tag to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 496
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 559
				} else {
					log.info("newest video: " + library.getNewestVideo().getTitle() 
						+ " (" + library.getNewestVideo().getYear()
						+ ") h:" + DomainConverter.intToKey(library.getNewestVideo().getHashKey()) 
						+ " d:" + library.getNewestVideo().getAddedAt());
				}
			}
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1102
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1132
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1162
				addMessage(mtDanger, s);
				try { fos.close(); } catch (IOException e1) {}
				file.delete();
				throw(new Exception(s, e));
			}
			try {
				if (fos != null)
					fos.close();
			} catch (IOException e) {
				String s = "posterCacheSM: Can't write/close '" + file.getAbsolutePath() + "'";
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 514
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 661
			MediaContainer mc = libraryService.sections();
			List<LibrarySection> list = new ArrayList<LibrarySection>();
			for (Directory d : mc.getDirectories()) {
				if (!skipSections.contains(d.getTitle()))
					list.add(DomainConverter.toLibrarySection(d));
			}
File Line
com/buckosoft/BuckoVidLib/web/ImageController.java 316
com/buckosoft/BuckoVidLib/web/ImageController.java 356
			g.dispose();
		}
		// write the image to the stream
		try {
			ImageOutputStream ios = ImageIO.createImageOutputStream(outputStream);
			Iterator<ImageWriter> writers = ImageIO.getImageWritersByFormatName("jpg");
			ImageWriter writer = (ImageWriter)writers.next();
			writer.setOutput(ios);
			writer.write(img);
		} catch (IOException e) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 713
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 819
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 925
									.setParameter("dKey", key)
									.setMaxResults(limit)
									.list();
			refreshNeeded = false;
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#addWriter(com.buckosoft.BuckoVidLib.domain.Writer)
	 */
	@Override
	public void addWriter(Writer writer) {
File Line
com/buckosoft/BuckoVidLib/domain/FailedToRip.java 27
com/buckosoft/BuckoVidLib/domain/WishList.java 28
	private	String	comment;
	private	Date	date;
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the comment
	 */
	public String getComment() {
File Line
com/buckosoft/BuckoVidLib/domain/LibrarySection.java 49
com/buckosoft/BuckoVidLib/domain/rest/RestLibrarySection.java 38
	public int getKey() {
		return key;
	}
	/**
	 * @param key the key to set
	 */
	public void setKey(int key) {
		this.key = key;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the videoCount
	 */
	public int getVideoCount() {
		return(this.videos.size());
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 713
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 819
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 925
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1033
									.setParameter("dKey", key)
									.setMaxResults(limit)
									.list();
			refreshNeeded = false;
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#addWriter(com.buckosoft.BuckoVidLib.domain.Writer)
	 */
	@Override
	public void addWriter(Writer writer) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 177
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 199
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 222
									.setParameter("actorId", key)
									.list();
			refreshNeeded = false;
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoIdsByDirector(int)
	 */
	@Override
	public List<Integer> getVideoIdsByDirector(int key) {
File Line
com/buckosoft/BuckoVidLib/domain/Director.java 41
com/buckosoft/BuckoVidLib/domain/Writer.java 40
com/buckosoft/BuckoVidLib/domain/rest/RestActor.java 36
		this.name = other.name;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/** Get the name of this Director
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/** Set the name of this Director
	 * @param tag the tag to set
	 */
	public void setName(String name) {
		this.name = name;
	}

}
File Line
com/buckosoft/BuckoVidLib/domain/Actor.java 46
com/buckosoft/BuckoVidLib/domain/WishList.java 33
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the plexId
	 */
	public int getPlexId() {
File Line
com/buckosoft/BuckoVidLib/domain/FailedToRip.java 52
com/buckosoft/BuckoVidLib/domain/WishList.java 65
	}
	/**
	 * @return the comment
	 */
	public String getComment() {
		return comment;
	}
	/**
	 * @param comment the comment to set
	 */
	public void setComment(String comment) {
		this.comment = comment;
	}
	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	
}
File Line
com/buckosoft/BuckoVidLib/domain/TVSeason.java 86
com/buckosoft/BuckoVidLib/domain/VideoBase.java 130
	}

	/**
	 * @return the plexKey
	 */
	public int getPlexKey() {
		return plexKey;
	}

	/**
	 * @param plexKey the plexKey to set
	 */
	public void setPlexKey(int plexKey) {
		this.plexKey = plexKey;
	}

	/**
	 * @return the addedAt
	 */
	public long getAddedAt() {
		return addedAt;
	}

	/**
	 * @param addedAt the addedAt to set
	 */
	public void setAddedAt(long addedAt) {
		this.addedAt = addedAt;
	}

	/**
	 * @return the updatedAt
	 */
	public long getUpdatedAt() {
File Line
com/buckosoft/BuckoVidLib/domain/VideoBase.java 80
com/buckosoft/BuckoVidLib/domain/rest/RestVideo.java 85
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the year
	 */
	public int getYear() {
		return year;
	}
	/**
	 * @param year the year to set
	 */
	public void setYear(int year) {
		this.year = year;
	}
	/**
	 * @return the section
	 */
	public int getSection() {
File Line
com/buckosoft/BuckoVidLib/web/ImageController.java 237
com/buckosoft/BuckoVidLib/web/ImageController.java 277
com/buckosoft/BuckoVidLib/web/PosterController.java 123
				log.debug("grow target: " + targetw + "/" + targeth);
				BufferedImage scaled = new BufferedImage(targetw, targeth, BufferedImage.TYPE_INT_BGR);
				Graphics2D g;
				g = scaled.createGraphics();
				g.drawImage(img.getScaledInstance(targetw, targeth, Image.SCALE_SMOOTH), null, null);
				// replace outgoing image with scaled version
				img = scaled;
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 177
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 199
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 222
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 244
									.setParameter("actorId", key)
									.list();
			refreshNeeded = false;
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoIdsByDirector(int)
	 */
	@Override
	public List<Integer> getVideoIdsByDirector(int key) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 177
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 199
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 222
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 589
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 690
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 796
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 902
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1009
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1142
									.setParameter("actorId", key)
									.list();
			refreshNeeded = false;
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoIdsByDirector(int)
	 */
	@Override
	public List<Integer> getVideoIdsByDirector(int key) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 669
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 775
									.setParameter("dName", directorName)
									.uniqueResult();
			refreshNeeded = false;
			return(d);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getDirectors()
	 */
	@Override
	public List<Director> getDirectors() {
File Line
com/buckosoft/BuckoVidLib/domain/Actor.java 42
com/buckosoft/BuckoVidLib/domain/Director.java 42
com/buckosoft/BuckoVidLib/domain/Writer.java 41
com/buckosoft/BuckoVidLib/domain/rest/RestActor.java 37
	}
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
File Line
com/buckosoft/BuckoVidLib/domain/Actor.java 46
com/buckosoft/BuckoVidLib/domain/FailedToRip.java 32
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the plexId
	 */
	public int getPlexId() {
File Line
com/buckosoft/BuckoVidLib/domain/Role.java 35
com/buckosoft/BuckoVidLib/domain/Video_Actor.java 49
	}
	/**
	 * @return the videoId
	 */
	public int getVideoId() {
		return videoId;
	}
	/**
	 * @param videoId the videoId to set
	 */
	public void setVideoId(int videoId) {
		this.videoId = videoId;
	}
	/**
	 * @return the actorId
	 */
	public int getActorId() {
		return actorId;
	}
	/**
	 * @param actorId the actorId to set
	 */
	public void setActorId(int actorId) {
		this.actorId = actorId;
	}
File Line
com/buckosoft/BuckoVidLib/domain/VideoBase.java 85
com/buckosoft/BuckoVidLib/domain/rest/RestDetailedVideo.java 43
	public String getTitle() {
		return title;
	}
	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * @return the year
	 */
	public int getYear() {
		return year;
	}
	/**
	 * @param year the year to set
	 */
	public void setYear(int year) {
		this.year = year;
	}
	/**
	 * @return the section
	 */
	public int getSection() {
File Line
com/buckosoft/BuckoVidLib/web/ImageController.java 225
com/buckosoft/BuckoVidLib/web/PosterController.java 105
			if (w > 1 && h > 1) {
				int	targetw;
				int	targeth;
				double wp = (double)img.getWidth() / (double)w;
				double hp = (double)img.getHeight() / (double)h;
File Line
com/buckosoft/BuckoVidLib/web/RestService.java 322
com/buckosoft/BuckoVidLib/web/RestService.java 341
com/buckosoft/BuckoVidLib/web/RestService.java 358
		log.info("setBackgroundFit to " + value + " (artShowFit = " + user.getArtShowFit() + ")");
		try {
			response.getWriter().print("OK");
		} catch (IOException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());			
		}
	}

	@RequestMapping(value="/config/backgroundDelays/{background}/{artShow}/{max}", produces=MediaType.TEXT_PLAIN_VALUE)
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 409
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 427
	public int	getMovieCount(boolean allowRestricted) {
		if (library == null)
			loadLibrary();
		int	count = 0;
		synchronized (library) {
			for (LibrarySection ls : this.getSectionList(allowRestricted)) {
				if (ls.getType() == Type.Movie)
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 244
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 503
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 608
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 714
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 820
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 926
									.setParameter("genreId", key)
									.list();
			refreshNeeded = false;
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);

	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#truncateLibrary()
	 */
	@Override
	public void truncateLibrary() {
File Line
com/buckosoft/BuckoVidLib/domain/Director.java 47
com/buckosoft/BuckoVidLib/domain/FailedToRip.java 32
com/buckosoft/BuckoVidLib/domain/WishList.java 33
com/buckosoft/BuckoVidLib/domain/Writer.java 46
com/buckosoft/BuckoVidLib/domain/rest/RestActor.java 42
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/** Get the name of this Director
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/** Set the name of this Director
	 * @param tag the tag to set
	 */
	public void setName(String name) {
		this.name = name;
	}
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 95
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 115
			List<FailedToRip> result = session.createQuery("from FailedToRip").list();
			refreshNeeded = false;
			return(result);
		} catch (HibernateException e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getWishList()
	 */
	@Override
	public List<WishList> getWishList() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 177
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 199
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 222
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 244
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 438
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 503
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 589
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 608
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 690
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 714
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 796
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 820
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 902
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 926
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1009
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1034
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1142
									.setParameter("actorId", key)
									.list();
			refreshNeeded = false;
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoIdsByDirector(int)
	 */
	@Override
	public List<Integer> getVideoIdsByDirector(int key) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 648
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 669
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 754
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 775
									.setParameter("dId", directorId)
									.uniqueResult();
			refreshNeeded = false;
			return(d);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getDirector(java.lang.String)
	 */
	@Override
	public Director getDirector(String directorName) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 706
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 812
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 918
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1026
	public List<Director> findDirectors(String key, int limit) {
		key = "%" + key + "%";
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<Director> list = session.createQuery("from Director d where d.name like :dKey")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 860
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 881
									.setParameter("gId", genreId)
									.uniqueResult();
			refreshNeeded = false;
			return(g);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getGenre(java.lang.String)
	 */
	@Override
	public Genre getGenre(String genreTag) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 967
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 988
									.setParameter("aId", actorId)
									.uniqueResult();
			refreshNeeded = false;
			return(a);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getActor(java.lang.String)
	 */
	@Override
	public Actor getActor(String actorName) {
File Line
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 346
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 364
	public boolean isAdmin(HttpServletRequest request) {
		if (!this.bsAccountMan.isUserWebSession(request))
			return(false);
		UserWebSession userWebSession = (UserWebSession)this.bsAccountMan.getUserWebSession(request);
		log.debug("userWebSession = " + userWebSession);
		boolean admin = false;
File Line
com/buckosoft/BuckoVidLib/web/RestService.java 341
com/buckosoft/BuckoVidLib/web/RestService.java 375
		log.info("configBackgroundDelays to " + background + " artShow: " + artShow + " maxFind: " + findMaxResults);
		try {
			response.getWriter().print("OK");
		} catch (IOException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());			
		}
	}
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 134
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 526
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 628
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 734
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 840
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 946
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1101
			session.saveOrUpdate(wishList);
			refreshNeeded = false;
		} catch (Exception e) {
			session.getTransaction().rollback();
			e.printStackTrace();
			return;
		} finally {
			session.getTransaction().commit();
		}
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoCount()
	 */
	@Override
	public int getVideoCount() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 171
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 193
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 216
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 238
	public List<Integer> getVideoIdsByActor(int key) {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<Integer> list = session.createQuery("select v.videoId from Video_Actor v where v.actorId = :actorId")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1122
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1165
									.uniqueResult();
			refreshNeeded = false;
			return(ls);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getLibrarySections()
	 */
	@Override
	public List<LibrarySection> getLibrarySections() {
File Line
com/buckosoft/BuckoVidLib/web/RestService.java 322
com/buckosoft/BuckoVidLib/web/RestService.java 358
com/buckosoft/BuckoVidLib/web/RestService.java 375
		log.info("setBackgroundFit to " + value + " (artShowFit = " + user.getArtShowFit() + ")");
		try {
			response.getWriter().print("OK");
		} catch (IOException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());			
		}
	}
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 363
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 372
			session.createQuery("delete from VideoTexts where videoId = :videoId")
				.setParameter("videoId", vb.getId())
				.executeUpdate();
			session.createQuery("delete from Video_Actor where videoId = :videoId")
				.setParameter("videoId", vb.getId())
				.executeUpdate();
			session.createQuery("delete from Video_Actor where videoId = :videoId")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 134
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 526
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 628
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 734
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 840
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 946
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1101
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1185
			session.saveOrUpdate(wishList);
			refreshNeeded = false;
		} catch (Exception e) {
			session.getTransaction().rollback();
			e.printStackTrace();
			return;
		} finally {
			session.getTransaction().commit();
		}
	}
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 136
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 381
		} catch (Exception e) {
			session.getTransaction().rollback();
			e.printStackTrace();
			return;
		} finally {
			session.getTransaction().commit();
		}
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoCount()
	 */
	@Override
	public int getVideoCount() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 584
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 602
	public List<TVSeason> getTVSeasons() {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<TVSeason> list = session.createQuery("from TVSeason")
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1092
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1122
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1152
				String s = "posterCacheSM: Can't open '" + file.getAbsolutePath() + "' for writing";
				addMessage(mtDanger, s);
				throw(new Exception(s, e));
			}
			
			try {
				if (fos != null)
					posterController.handleRequest(key, 150, 225, null, fos);
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 381
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 528
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 630
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 736
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 842
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 948
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1103
		} catch (Exception e) {
			session.getTransaction().rollback();
			e.printStackTrace();
			return;
		} finally {
			session.getTransaction().commit();
		}
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getMaxVideoTextsSummaryLength()
	 */
	@Override
	public int getMaxVideoTextsSummaryLength() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 672
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 693
			return(d);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getDirectors()
	 */
	@Override
	public List<Director> getDirectors() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 686
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 708
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<Director> list = session.createQuery("from Director")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 778
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 799
			return(d);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getWriters()
	 */
	@Override
	public List<Writer> getWriters() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 792
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 814
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<Writer> list = session.createQuery("from Writer")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 884
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 905
			return(g);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getGenres()
	 */
	@Override
	public List<Genre> getGenres() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 898
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 920
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<Genre> list = session.createQuery("from Genre")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 991
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1012
			return(a);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getActors()
	 */
	@Override
	public List<Actor> getActors() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1005
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1028
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<Actor> list = session.createQuery("from Actor")
File Line
tv/plex/domain/Directory.java 129
tv/plex/domain/MediaContainer.java 69
	public void setAllowSync(int allowSync) {
		this.allowSync = allowSync;
	}
	/**
	 * @return the art
	 */
	@XmlAttribute
	public String getArt() {
		return art;
	}
	/**
	 * @param art the art to set
	 */
	public void setArt(String art) {
		this.art = art;
	}
	/**
	 * @return the filters
	 */
	@XmlAttribute
	public String getFilters() {
File Line
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 397
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 428
	public void setHideRestricted(HttpServletRequest request, boolean hideRestricted) {
		if (!this.bsAccountMan.isUserWebSession(request))
			return;
		UserWebSession userWebSession = (UserWebSession)this.bsAccountMan.getUserWebSession(request);
		log.debug("userWebSession = " + userWebSession);
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1111
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1141
				String s = "posterCacheSM: Can't write/close '" + file.getAbsolutePath() + "'";
				addMessage(mtDanger, s);
				file.delete();
				throw(new Exception(s, e));
			}
			////////////////////////////////////////////////////////////////////////////////////////////
			file = new File(cacheDirs.lgPosterDir, key);
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 313
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 380
			saveVideoTexts(session, video);
		} catch (Exception e) {
			session.getTransaction().rollback();
			e.printStackTrace();
			return;
		} finally {
			session.getTransaction().commit();
		}
	}
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 136
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 314
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 381
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 528
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 630
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 736
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 842
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 948
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1103
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1187
		} catch (Exception e) {
			session.getTransaction().rollback();
			e.printStackTrace();
			return;
		} finally {
			session.getTransaction().commit();
		}
	}
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 180
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 202
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 225
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 592
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 672
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 693
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 778
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 799
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 884
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 905
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 991
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1012
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1124
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1145
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoIdsByDirector(int)
	 */
	@Override
	public List<Integer> getVideoIdsByDirector(int key) {
File Line
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 416
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 431
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 475
		UserWebSession userWebSession = (UserWebSession)this.bsAccountMan.getUserWebSession(request);
		log.debug("userWebSession = " + userWebSession);
		User u = (User)userWebSession.getUser();
		if (artShow && u.getBackgroundFit() == ImageController.bgGrey)
File Line
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 447
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 474
			int backgroundDelay, int artShowDelay) {
		UserWebSession userWebSession = (UserWebSession)this.bsAccountMan.getUserWebSession(request);
		log.debug("userWebSession = " + userWebSession);
		User u = (User)userWebSession.getUser();
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 352
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 386
	public List<VideoBase> getDirectorVideos(int key) {
		if (library == null)
			loadLibrary();
		List<VideoBase> vl = new ArrayList<VideoBase>();
		List<Integer>	videoIds = db.getVideoIdsByDirector(key);
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 356
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 390
		List<Integer>	videoIds = db.getVideoIdsByDirector(key);
		synchronized (library) {
			for (int videoId : videoIds) {
				vl.add(library.getVideoById(videoId));
			}
		}
		return vl;
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.business.LibraryManager#getWriterVideos(int)
	 */
	@Override
	public List<VideoBase> getWriterVideos(int key) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 247
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 506
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 611
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 717
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 823
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 929
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1084
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1167
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);

	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#truncateLibrary()
	 */
	@Override
	public void truncateLibrary() {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 541
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 562
	public TVSeason getTVSeason(int seasonId) {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			TVSeason s = (TVSeason)session.createQuery("from TVSeason t where t.id = :tId")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 643
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 664
	public Director getDirector(int directorId) {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			Director d = (Director)session.createQuery("from Director d where d.id = :dId")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 749
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 770
	public Writer getWriter(int writerId) {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			Writer d = (Writer)session.createQuery("from Writer d where d.id = :wId")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 855
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 876
	public Genre getGenre(int genreId) {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			Genre g = (Genre)session.createQuery("from Genre g where g.id = :gId")
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 962
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 983
	public Actor getActor(int actorId) {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			Actor a = (Actor)session.createQuery("from Actor a where a.id = :aId")
File Line
com/buckosoft/BuckoVidLib/web/RestService.java 220
com/buckosoft/BuckoVidLib/web/RestService.java 238
com/buckosoft/BuckoVidLib/web/RestService.java 324
com/buckosoft/BuckoVidLib/web/RestService.java 343
com/buckosoft/BuckoVidLib/web/RestService.java 360
			outputXml(response, rdv);
		} catch (IOException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());
		}
	}

	@RequestMapping(value="/randomVideo", produces=MediaType.APPLICATION_XML_VALUE)
File Line
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 415
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 464
			return(2);	// no session = no art.  XXX hmm, what about when we want to return the raw image for google?
		UserWebSession userWebSession = (UserWebSession)this.bsAccountMan.getUserWebSession(request);
		log.debug("userWebSession = " + userWebSession);
		User u = (User)userWebSession.getUser();
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 180
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 202
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 225
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 247
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 441
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 506
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 549
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 592
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 611
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 651
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 672
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 693
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 717
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 757
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 778
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 799
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 823
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 863
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 884
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 905
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 929
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 970
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 991
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1012
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1037
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1084
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1124
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1145
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1167
			return(list);
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getVideoIdsByDirector(int)
	 */
	@Override
	public List<Integer> getVideoIdsByDirector(int key) {
File Line
com/buckosoft/BuckoVidLib/domain/Video_Actor.java 37
com/buckosoft/BuckoVidLib/domain/Video_Director.java 36
com/buckosoft/BuckoVidLib/domain/Video_Genre.java 33
com/buckosoft/BuckoVidLib/domain/Video_Writer.java 36
		return(videoId == ((Video_Actor)obj).videoId && actorId == ((Video_Actor)obj).actorId);
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		int result = HashCodeUtil.SEED;
		result = HashCodeUtil.hash(result, videoId);
		result = HashCodeUtil.hash(result, actorId);
File Line
com/buckosoft/BuckoVidLib/web/AdminService.java 49
com/buckosoft/BuckoVidLib/web/RestService.java 115
public class AdminService {
	private final Log log = LogFactory.getLog(getClass());

	private	boolean logExceptions = true;
	private	boolean prettyPrint = true;

	@Autowired
	BSAccountMan	bsAccountMan;
	
	@Autowired
	private BuckoVidLib		bvl;

	public AdminService() {
File Line
com/buckosoft/BuckoVidLib/web/AdminService.java 100
com/buckosoft/BuckoVidLib/web/RestService.java 187
			m.marshal(data, os);
		} catch (IOException | JAXBException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());
		}

	}
File Line
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 416
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 431
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 448
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 465
com/buckosoft/BuckoVidLib/business/BuckoVidLibImpl.java 475
		UserWebSession userWebSession = (UserWebSession)this.bsAccountMan.getUserWebSession(request);
		log.debug("userWebSession = " + userWebSession);
		User u = (User)userWebSession.getUser();
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 90
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 110
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 149
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 433
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 498
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 584
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 685
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 791
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 897
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1004
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1137
	public List<FailedToRip> getFailedToRip() {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<FailedToRip> result = session.createQuery("from FailedToRip").list();
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 334
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 369
	public List<VideoBase>	getLibrarySectionVideos(int key) {
		if (library == null)
			loadLibrary();
		List<VideoBase> vl = new ArrayList<VideoBase>();
		synchronized (library) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 90
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 110
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 149
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 171
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 193
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 216
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 238
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 433
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 498
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 584
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 602
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 685
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 791
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 897
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1004
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1137
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1158
	public List<FailedToRip> getFailedToRip() {
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<FailedToRip> result = session.createQuery("from FailedToRip").list();
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 308
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 359
		log.info("saveVideo " + video.getTitle() + "(" + video.getYear() + ")");
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			session.saveOrUpdate(video);
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 573
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 594
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getSeasons()
	 */
	@Override
	public List<TVSeason> getTVSeasons() {
File Line
com/buckosoft/BuckoVidLib/domain/TVSeason.java 27
com/buckosoft/BuckoVidLib/domain/VideoBase.java 35
	@Override
	public int	hashCode() {
		int result = HashCodeUtil.SEED;
		result = HashCodeUtil.hash(result, title);
		result = HashCodeUtil.hash(result, videoId);
File Line
com/buckosoft/BuckoVidLib/web/AdminService.java 95
com/buckosoft/BuckoVidLib/web/RestService.java 182
			context = JAXBContext.newInstance(data.getClass());
			Marshaller m = context.createMarshaller();
			m.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, prettyPrint);
			OutputStream os;
			os = response.getOutputStream();
			m.marshal(data, os);
File Line
com/buckosoft/BuckoVidLib/business/BuckoVidLib.java 123
com/buckosoft/BuckoVidLib/business/LibraryManager.java 58
	List<VideoBase>			getLibraryListVideos(int key);
	List<VideoBase>			getDirectorVideos(int key);
	List<VideoBase>			getWriterVideos(int key);
	List<VideoBase>			getActorVideos(int key);
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 358
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 375
			for (int videoId : videoIds) {
				vl.add(library.getVideoById(videoId));
			}
		}
		return vl;
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.business.LibraryManager#getWriterVideos(int)
	 */
	@Override
	public List<VideoBase> getWriterVideos(int key) {
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 923
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 928
			if (v.getSortTitle() != null && !v.getSortTitle().equals(ov.getSortTitle())) {
				ov.setSortTitle(v.getSortTitle());
				s = statusMessage(s, v, "sortTitle updated");
				saveme = true;
				ps.sortme = true;
			} else if (ov.getSortTitle() != null && v.getSortTitle() == null) {
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 98
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 181
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 203
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 226
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 593
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 673
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 694
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 779
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 800
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 885
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 906
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 992
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1013
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1125
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1146
		} catch (HibernateException e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#getWishList()
	 */
	@Override
	public List<WishList> getWishList() {
File Line
com/buckosoft/BuckoVidLib/domain/Video_Actor.java 47
com/buckosoft/BuckoVidLib/domain/Video_Director.java 46
com/buckosoft/BuckoVidLib/domain/Video_Genre.java 42
com/buckosoft/BuckoVidLib/domain/Video_Writer.java 46
		result = HashCodeUtil.hash(result, actorId);
		return(result);
	}

	/**
	 * @return the videoId
	 */
	public int getVideoId() {
		return videoId;
	}
	/**
	 * @param videoId the videoId to set
	 */
	public void setVideoId(int videoId) {
		this.videoId = videoId;
	}
	/**
	 * @return the directorId
	 */
	public int getActorId() {
File Line
com/buckosoft/BuckoVidLib/web/RestService.java 221
com/buckosoft/BuckoVidLib/web/RestService.java 239
com/buckosoft/BuckoVidLib/web/RestService.java 307
com/buckosoft/BuckoVidLib/web/RestService.java 325
com/buckosoft/BuckoVidLib/web/RestService.java 344
com/buckosoft/BuckoVidLib/web/RestService.java 361
		} catch (IOException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());
		}
	}

	@RequestMapping(value="/randomVideo", produces=MediaType.APPLICATION_XML_VALUE)
File Line
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1111
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1141
com/buckosoft/BuckoVidLib/business/LibraryManagerImpl.java 1171
				String s = "posterCacheSM: Can't write/close '" + file.getAbsolutePath() + "'";
				addMessage(mtDanger, s);
				file.delete();
				throw(new Exception(s, e));
			}
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 91
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 111
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 150
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 172
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 194
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 217
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 239
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 434
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 499
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 585
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 603
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 686
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 708
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 792
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 814
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 898
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 920
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1005
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1028
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1138
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1159
		Session session = hibernateUtil.getSessionFactory().getCurrentSession();
		session.getTransaction().begin();
		try {
			@SuppressWarnings("unchecked")
			List<FailedToRip> result = session.createQuery("from FailedToRip").list();
File Line
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 118
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 248
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 507
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 612
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 718
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 824
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 930
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1085
com/buckosoft/BuckoVidLib/db/DatabaseImpl.java 1168
		} catch (HibernateException e) {
			e.printStackTrace();
		} finally {
			session.getTransaction().commit();
		}
		return(null);
	}

	/* (non-Javadoc)
	 * @see com.buckosoft.BuckoVidLib.db.Database#addWishList(com.buckosoft.BuckoVidLib.domain.WishList)
	 */
	@Override
	public void addWishList(WishList wishList) {
File Line
com/buckosoft/BuckoVidLib/web/ImageController.java 156
com/buckosoft/BuckoVidLib/web/PosterController.java 72
			boolean b = bvl.isAllowRestricted(request);
			v = bvl.getVideoBaseFromKey(DomainConverter.keyToInt(key), b);
			if (v == null) {
File Line
com/buckosoft/BuckoVidLib/web/RestService.java 188
com/buckosoft/BuckoVidLib/web/RestService.java 221
com/buckosoft/BuckoVidLib/web/RestService.java 239
com/buckosoft/BuckoVidLib/web/RestService.java 307
com/buckosoft/BuckoVidLib/web/RestService.java 325
com/buckosoft/BuckoVidLib/web/RestService.java 344
com/buckosoft/BuckoVidLib/web/RestService.java 361
		} catch (IOException | JAXBException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());
		}
	}

	@RequestMapping(value="/statistics", produces=MediaType.APPLICATION_XML_VALUE)
File Line
com/buckosoft/BuckoVidLib/web/RestService.java 220
com/buckosoft/BuckoVidLib/web/RestService.java 238
com/buckosoft/BuckoVidLib/web/RestService.java 377
			outputXml(response, rdv);
		} catch (IOException e) {
			if (logExceptions)
				e.printStackTrace();
			else
				log.warn(e.getMessage());
		}
	}
File Line
tv/plex/domain/Director.java 19
tv/plex/domain/Genre.java 19
public class Director {
	private	String	tag;

	/**
	 * @return the tag
	 */
	@XmlAttribute
	public String getTag() {
		return tag;
	}

	/**
	 * @param tag the tag to set
	 */
	public void setTag(String tag) {
		this.tag = tag;
	}
}
File Line
tv/plex/domain/Directory.java 170
tv/plex/domain/Video.java 157
	}
	/**
	 * @return the thumb
	 */
	@XmlAttribute
	public String getThumb() {
		return thumb;
	}
	/**
	 * @param thumb the thumb to set
	 */
	public void setThumb(String thumb) {
		this.thumb = thumb;
	}
	/**
	 * @return the composite
	 */
	@XmlAttribute
	public String getComposite() {
File Line
tv/plex/domain/Directory.java 261
tv/plex/domain/Video.java 222
	}
	/**
	 * @return the updatedAt
	 */
	@XmlAttribute
	public int getUpdatedAt() {
		return updatedAt;
	}
	/**
	 * @param updatedAt the updatedAt to set
	 */
	public void setUpdatedAt(int updatedAt) {
		this.updatedAt = updatedAt;
	}
	/**
	 * @return the createdAt
	 */
	@XmlAttribute
	public String getCreatedAt() {
File Line
tv/plex/domain/Directory.java 431
tv/plex/domain/Video.java 79
	}
	/**
	 * @return the ratingKey
	 */
	@XmlAttribute
	public int getRatingKey() {
		return ratingKey;
	}
	/**
	 * @param ratingKey the ratingKey to set
	 */
	public void setRatingKey(int ratingKey) {
		this.ratingKey = ratingKey;
	}
	/**
	 * @return the studio
	 */
	@XmlAttribute
	public String getStudio() {
File Line
tv/plex/domain/Directory.java 444
tv/plex/domain/Video.java 248
	}
	/**
	 * @return the studio
	 */
	@XmlAttribute
	public String getStudio() {
		return studio;
	}
	/**
	 * @param studio the studio to set
	 */
	public void setStudio(String studio) {
		this.studio = studio;
	}
	/**
	 * @return the summary
	 */
	@XmlAttribute
	public String getSummary() {
File Line
tv/plex/domain/Directory.java 457
tv/plex/domain/Video.java 131
	}
	/**
	 * @return the summary
	 */
	@XmlAttribute
	public String getSummary() {
		return summary;
	}
	/**
	 * @param summary the summary to set
	 */
	public void setSummary(String summary) {
		this.summary = summary;
	}
	/**
	 * @return the theme
	 */
	@XmlAttribute
	public String getTheme() {
File Line
tv/plex/domain/Directory.java 483
tv/plex/domain/Video.java 118
	}
	/**
	 * @return the titleSort
	 */
	@XmlAttribute
	public String getTitleSort() {
		return titleSort;
	}
	/**
	 * @param titleSort the titleSort to set
	 */
	public void setTitleSort(String titleSort) {
		this.titleSort = titleSort;
	}
	/**
	 * @return the type
	 */
	@XmlAttribute
	public String getType() {