//----------------------------BEGIN LICENSE----------------------------
/* 
 * Willow : the Open Source WorkFlow Project
 * Distributable under GNU LGPL license by gun.org
 *
 * Copyright (C) 2004-2010 huihoo.org 
 * Copyright (C) 2004-2010  ZosaTapo <dertyang@hotmail.com> 
 * 
 * ====================================================================
 * Project Homepage : http://www.huihoo.org/willow
 * Source Forge     : http://sourceforge.net/projects/huihoo
 * Mailing list     : willow@lists.sourceforge.net 
 */
//----------------------------END  LICENSE----------------------------
package org.huihoo.willow.desktop;

import java.rmi.RemoteException;

import org.huihoo.workflow.WorkflowRemoteComponent;
import org.huihoo.workflow.desktop.WorkflowDesktop;
import org.huihoo.workflow.desktop.WorkflowImplementation;
import org.huihoo.workflow.server.WorkflowSession;

public interface DesktopService extends WorkflowRemoteComponent
{
	public WorkflowSession authenticate(String username, String password) throws RemoteException;

	public WorkflowImplementation findImplementation(WorkflowDesktop desktop,String xpdlid) throws RemoteException;
	public WorkflowImplementation[] findImplementations(WorkflowDesktop desktop) throws RemoteException;

	public void close(WorkflowDesktop desktop) throws RemoteException;
}
