KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > applications > editwizard > ConnectorCommandGetNewRelation


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.applications.editwizard;
11
12 import org.mmbase.applications.dove.Dove;
13
14 /**
15  * EditWizard
16  * @javadoc
17  * @author Kars Veling
18  * @since MMBase-1.6
19  * @version $Id: ConnectorCommandGetNewRelation.java,v 1.8 2003/06/13 13:30:36 pierre Exp $
20  */

21
22 public class ConnectorCommandGetNewRelation extends ConnectorCommand {
23
24     /**
25      * Constructs a command to craete a new temporarily relation.
26      *
27      * @param role The name of the role the new relation should have.
28      * @param sourceObjectNumber the number of the sourceobject
29      * @param sourceType the type of the sourceobject
30      * @param destinationObjectNumber the number of the destination object
31      * @param destinationType the type of the destination object
32      */

33      public ConnectorCommandGetNewRelation(String JavaDoc role, String JavaDoc sourceObjectNumber, String JavaDoc sourceType,
34                                            String JavaDoc destinationObjectNumber, String JavaDoc destinationType, String JavaDoc createDir) throws WizardException {
35          super(Dove.GETNEWRELATION);
36          addCommandAttr(Dove.ELM_ROLE, role);
37          addCommandAttr(Dove.ELM_SOURCE, sourceObjectNumber);
38          addCommandAttr(Dove.ELM_SOURCETYPE, sourceType);
39          addCommandAttr(Dove.ELM_DESTINATION, destinationObjectNumber);
40          addCommandAttr(Dove.ELM_DESTINATIONTYPE, destinationType);
41          addCommandAttr(Dove.ELM_CREATEDIR, createDir);
42      }
43
44 }
45
Popular Tags