001: /*
002: * This file is part of the WfMOpen project.
003: * Copyright (C) 2001-2003 Danet GmbH (www.danet.de), GS-AN.
004: * All rights reserved.
005: *
006: * This program is free software; you can redistribute it and/or modify
007: * it under the terms of the GNU General Public License as published by
008: * the Free Software Foundation; either version 2 of the License, or
009: * (at your option) any later version.
010: *
011: * This program is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
014: * GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, write to the Free Software
018: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
019: *
020: * $Id: Requester.java,v 1.3 2007/05/03 21:58:16 mlipp Exp $
021: *
022: * $Log: Requester.java,v $
023: * Revision 1.3 2007/05/03 21:58:16 mlipp
024: * Internal refactoring for making better use of local EJBs.
025: *
026: * Revision 1.2 2006/09/29 12:32:08 drmlipp
027: * Consistently using WfMOpen as projct name now.
028: *
029: * Revision 1.1.1.1 2003/06/30 20:05:15 drmlipp
030: * Initial import
031: *
032: * Revision 1.8 2003/06/27 08:51:45 lipp
033: * Fixed copyright/license information.
034: *
035: * Revision 1.7 2003/04/26 16:11:14 lipp
036: * Moved some classes to reduce package dependencies.
037: *
038: * Revision 1.6 2003/04/25 14:50:59 lipp
039: * Fixed javadoc errors and warnings.
040: *
041: * Revision 1.5 2002/04/03 12:53:05 lipp
042: * JavaDoc fixes.
043: *
044: * Revision 1.4 2001/10/09 13:48:28 montag
045: * doccheck
046: *
047: * Revision 1.3 2001/10/06 11:40:28 lipp
048: * Some javadoc fixes.
049: *
050: * Revision 1.2 2001/08/13 11:41:28 montag
051: * create parameter for WfProcess corrected
052: *
053: * Revision 1.1 2001/08/02 09:40:48 montag
054: * priority and domain classes
055: *
056: *
057: */
058: package de.danet.an.workflow.domain;
059:
060: import java.util.Collection;
061:
062: import de.danet.an.workflow.localcoreapi.WfProcessLocal;
063: import de.danet.an.workflow.omgcore.InvalidPerformerException;
064: import de.danet.an.workflow.omgcore.WfAuditEvent;
065: import de.danet.an.workflow.omgcore.WfProcess;
066: import de.danet.an.workflow.omgcore.WfRequester;
067:
068: /**
069: * <code>Requester</code> represents a simple implementation
070: * of the interface
071: * {@link de.danet.an.workflow.localcoreapi.WfRequesterLocal <code>WfRequester</code>}.
072: */
073: public class Requester implements WfRequester, java.io.Serializable {
074:
075: /** The processes started by this requester. */
076: private Collection performers = null;
077:
078: // The name of the requester
079: private String requesterName = null;
080:
081: /**
082: * Default constructor.
083: * @param name name of the requester
084: */
085: public Requester(String name) {
086: requesterName = name;
087: }
088:
089: /**
090: * For the 1. iteration the method throws an
091: * <code>UnsupportedOperationException</code>
092: */
093: public Collection performers() {
094: throw new UnsupportedOperationException();
095: }
096:
097: /**
098: * For the 1. iteration the method throws an
099: * <code>UnsupportedOperationException</code>
100: */
101: public boolean isMemberOfPerformers(WfProcess member) {
102: throw new UnsupportedOperationException();
103: }
104:
105: /**
106: * For the 1. iteration the method throws an
107: * <code>UnsupportedOperationException</code>
108: */
109: public void receiveEvent(WfAuditEvent e)
110: throws InvalidPerformerException {
111: throw new UnsupportedOperationException();
112: }
113:
114: /**
115: * Gives the name of the requester.
116: * @return name of the requester
117: */
118: public String toString() {
119: return requesterName;
120: }
121:
122: }
|