/*
 * Created on 2004-7-24
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package workflow.live.pm;

import java.util.ArrayList;
import java.util.Iterator;

import workflow.wfmc.pm.Department;
import workflow.wfmc.pm.Group;
import workflow.wfmc.pm.Participant;
import workflow.wfmc.pm.Role;
import workflow.live.LiveElement;

/**
 * @author reic
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class LiveParticipant extends LiveElement
{
	private String fullName;
	private String password;

	public LiveParticipant(Participant participant)
	{
		super(participant);
		this.fullName = participant.getFullName();
		this.password = participant.getPassword();
	}

	public String getFullName()
	{
		return fullName;
	}

	public String getPassword()
	{
		return password;
	}

	private ArrayList groups = new ArrayList();

	private ArrayList departments = new ArrayList();

	private ArrayList roles = new ArrayList();

	private ArrayList packages = new ArrayList();

	private LiveRank rank;

	public LiveRank getRank()
	{
		return rank;
	}

	public Iterator getGroups()
	{
		return groups.iterator();
	}

	public Iterator getRoles()
	{
		return groups.iterator();
	}
	public Iterator getDepartments()
	{
		return groups.iterator();
	}

	public boolean isAdministrator(String packageID)
	{
		return false;
	}

	public boolean isInGroup(Group group)
	{
		return false;
	}
	public boolean isInRole(Role role)
	{
		return false;
	}

	public boolean isInDepartment(Department department)
	{
		return false;
	}

}
