⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subscribermanagementsystem.java

📁 Sun公司Dream项目
💻 JAVA
字号:
/*

 * The contents of this file are subject to the terms

 * of the Common Development and Distribution License

 * (the "License").  You may not use this file except

 * in compliance with the License.

 *

 * You can obtain a copy of the license at

 * http://www.opensource.org/licenses/cddl1.php

 * See the License for the specific language governing

 * permissions and limitations under the License.

 *

 * When distributing Covered Code, include this CDDL

 * HEADER in each file and include the License file at

 * http://www.opensource.org/licenses/cddl1.php.  If 

 * applicable, add the following below this CDDL HEADER, 

 * with the fields enclosed by brackets "[]" replaced 

 * with your own identifying information: 

 * Portions Copyright [yyyy]

 * [name of copyright owner]

 */ 



/*

 * $(@)SubscriberManagementSystem.java $Revision: 1.2 $ $Date: 2006/07/24 21:58:58 $

 * 

 * Copyright 2006 Sun Microsystems, Inc. All Rights Reserved.

 */

/**

 *

 * @version: 1.0

 * @date: Sept 19, 2002

 *

 */

package com.sun.sjc.idtv.vod.server.subscriber;



import java.sql.*;

import java.util.*;

import javax.ejb.EJBObject;

import java.rmi.RemoteException;

import com.sun.sjc.idtv.vod.shared.data.*;



/**

 * Remote interface for the <code>SubscriberManagementSystemBean</code>. The remote interface, <code>SubscriberManagementSystem</code>

 * defines all possible business methods for the bean.

 *

 * @see SubscriberManagementSystemHome

 * @see SubscriberManagementSystemBean

 */

public interface SubscriberManagementSystem extends EJBObject {

 

    /**

     * Fetch the list of subscribers for a given STB IP address.

     * @param title title of the book.

     * @return array of subscriber logins (prettynames)

     * @exception RemoteException

     */

   public Subscriber[] getSubscriberList(String ip) throws RemoteException, SQLException;



    /**

     * Authenticate a subscriber.

     * @param subscriber the subscriber.

     * @return the subscriber's detailed info

     * @exception RemoteException

     */

    public Subscriber authenticate(Subscriber subscriber) throws java.rmi.RemoteException, SQLException;



    /**

     * Store the watch position in a movie.

     * @param subscriber the subscriber.

     * @param rental the movie.

     * @return nothing

     * @exception RemoteException

     */

    public void storeBookmark(Subscriber subscriber, Rental rental) throws java.rmi.RemoteException, SQLException;



    /**

     * Create a subscriber object for a given userid and ipAddress.

     * @param userid: userid of the subscriber.

     * @param ipAddress: ipAddress of the browser or set top box that the user is on.

     * @return the subscriber's detailed info

     * @exception RemoteException

     */

    public Subscriber getSubscriber(String userId, String ipAddress) throws java.rmi.RemoteException, SQLException;

    

    public RightsInfo[] getUserRightsInfo(Subscriber subscriber) throws java.rmi.RemoteException, SQLException;

    public Subscriber getSubscriberInfoFromID(String userID) throws java.rmi.RemoteException, SQLException;

    public void updateFixedRightsInfo(RightsInfo userRightsInfo) throws java.rmi.RemoteException, SQLException;

    public void addRightsInfo(String Userid,String contentid,int rightsType, int NumRights) throws SQLException,java.rmi.RemoteException;

    public String registerUser(long masterID, String login, String password, String firstName, String lastName, String SIMNum) throws SQLException,java.rmi.RemoteException;



}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -