View Javadoc

1   /*$Id: DefaultIDs.java,v 1.3 2004/07/23 10:37:28 nw Exp $
2    * Created on 08-Jun-2004
3    *
4    * Copyright (C) AstroGrid. All rights reserved.
5    *
6    * This software is published under the terms of the AstroGrid 
7    * Software License version 1.2, a copy of which has been included 
8    * with this distribution in the LICENSE.txt file.  
9    *
10  **/
11  package org.astrogrid.applications;
12  
13  import org.astrogrid.community.User;
14  
15  
16  /*** Manages all the identity info for an application execution
17   * <p> its a container that pairs together the user-assigned id and system-assigned id for an application 
18   * assignes default userid for now - dummy value.*/
19  public class DefaultIDs implements AbstractApplication.IDs {
20      
21      public DefaultIDs(String a,String b) {
22          this(a,b,new User());
23      }
24  
25        public DefaultIDs(String jobStepId,String id,User user) {
26            this.user = user;
27            this.id = id;
28            this.jobStepId = jobStepId;
29        } 
30        protected final String id;
31        protected final String jobStepId;
32        protected final User user;
33  
34       public String getId() {
35           return id;
36       }
37  
38       public String getJobStepId() {
39           return jobStepId;
40       }
41       
42       public User getUser() {
43           return user;
44       }
45     }
46  
47  /* 
48  $Log: DefaultIDs.java,v $
49  Revision 1.3  2004/07/23 10:37:28  nw
50  Javadocs
51  
52  Revision 1.2  2004/07/01 11:16:22  nw
53  merged in branch
54  nww-itn06-componentization
55  
56  Revision 1.1.2.2  2004/07/01 01:42:47  nw
57  final version, before merge
58  
59  Revision 1.1.2.1  2004/06/14 08:56:58  nw
60  factored applications into sub-projects,
61  got packaging of wars to work again
62   
63  */