ActivityFacadeRemote.java :  » Google-tech » dexter » ejb » Java Open Source

Java Open Source » Google tech » dexter 
dexter » ejb » ActivityFacadeRemote.java
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ejb;

import entity.Activity;
import java.util.List;
import javax.ejb.Remote;

/**
 *
 * @author rahul
 */
@Remote
public interface ActivityFacadeRemote {

    void create(Activity activity);

    void edit(Activity activity);

    void remove(Activity activity);

    Activity find(Object id);

    List<Activity> findAll();

   
    public boolean ifVotedUp(entity.User user, entity.URL url);

    public entity.Activity findByUserUrl(entity.User user, entity.URL url);

    public java.util.List<entity.Activity> findRecentActivityByUser(entity.User user, int noOfRecords);

    public java.util.ArrayList<entity.Activity> findActivityVotedUpByUser(entity.User user);

    public java.util.ArrayList<entity.Activity> findWhoVotedUpURL(entity.URL url);

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.