/**
 * IRightsManager.java
 * Created Oct 6, 2008
 * Copyright (C) Tandberg Television 2008
 */
package com.tandbergtv.watchpoint.pmm.title.conf;

import java.util.Date;

import com.tandbergtv.watchpoint.pmm.entities.Title;

/**
 * Rights management interface
 * 
 * @author Sahil Verma
 */
public interface IRightsManager {
	
	/**
	 * Determines if the specified title is licensed beyond the end date 
	 * 
	 * @param title
	 * @param date
	 * @return true if the license for the title expires after the specified date
	 */
	boolean isLicensed(Title title, Date date);
	
	/**
	 * Determines if the specified title is licensed within the interval
	 * 
	 * @param title
	 * @param start the window start date
	 * @param end the window end date
	 * @return true if the title license window falls entirely within the specified window
	 */
	boolean isLicensed(Title title, Date start, Date end);
}
