/*
 * $Id: UserMappingManager.java,v 1.2 2004/09/20 10:26:14 koppy Exp $
 *
 * Copyright (c) Siemens AG 2008 
 *           (c) Universität Paderborn 2008 
 * Licensed under EUPL 1.1. 
 * 
 * Created on 13.07.2004
 *
 * $Log: UserMappingManager.java,v $
 * Revision 1.2  2004/09/20 10:26:14  koppy
 * +javadoc Dokumentation
 *
 * Revision 1.1  2004/08/30 14:49:59  koppy
 * Initiale Version der Workflow-Komponente
 *
 */
package vkc.workflow.service.manager;

import java.util.List;

import vkc.workflow.WorkflowException;
import vkc.workflow.service.WfMConnection;

/**
 * This interface defines methods
 * for usermapping management.
 * 
 * @author Andreas Koop
 */
public interface UserMappingManager {

    
    /**
     * Returns a list (containing objects of type MappingInfo)
     * associated with the given package and process definition id.
     * 
     * @param conn workflow connection
     * @param pkgId package id
     * @param pDefId process definition id
     * @return list (containing objects of type MappingInfo)
     * @throws WorkflowException
     */
    public List getUserMappings( WfMConnection conn, String pkgId, String pDefId )
    	throws WorkflowException;
    
    /**
     * Sets/Updates the given usermappings.
     * 
     * @param conn workflow connection
     * @param userMappings the usermappings with new mapping information.
     * @throws WorkflowException
     */
    public void setUserMappings( WfMConnection conn, List userMappings)
    	throws WorkflowException;
}
