1
2
3
4
5
6
7
8
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63