1 | |
package fr.paris.lutece.plugins.releaser.business; |
2 | |
|
3 | |
import java.io.Serializable; |
4 | |
import java.util.Date; |
5 | |
|
6 | |
import fr.paris.lutece.plugins.releaser.business.Component; |
7 | |
import fr.paris.lutece.plugins.releaser.business.ReleaserUser; |
8 | |
import fr.paris.lutece.plugins.releaser.business.Site; |
9 | |
import fr.paris.lutece.plugins.releaser.util.CommandResult; |
10 | |
|
11 | 1 | public class WorkflowReleaseContext implements Serializable |
12 | |
{ |
13 | |
|
14 | |
public static final String WORKFLOW_RESOURCE_TYPE = "WORKFLOW_RELEASE_CONTEXT"; |
15 | |
|
16 | |
private static final long serialVersionUID = 8956577881980599537L; |
17 | |
private int _nId; |
18 | |
private Component _component; |
19 | |
private Site _site; |
20 | |
private CommandResult _commandResult; |
21 | |
private ReleaserUser _releaserUser; |
22 | |
private String _strRefBranchRelease; |
23 | |
private String _strRefBranchDev; |
24 | |
|
25 | |
|
26 | |
public int getId( ) |
27 | |
{ |
28 | 0 | return _nId; |
29 | |
} |
30 | |
|
31 | |
public void setId( int _nId ) |
32 | |
{ |
33 | 0 | this._nId = _nId; |
34 | 0 | } |
35 | |
|
36 | |
public Component getComponent( ) |
37 | |
{ |
38 | 1 | return _component; |
39 | |
} |
40 | |
|
41 | |
public void setComponent( Component _component ) |
42 | |
{ |
43 | 1 | this._component = _component; |
44 | 1 | } |
45 | |
|
46 | |
public CommandResult getCommandResult( ) |
47 | |
{ |
48 | 2 | return _commandResult; |
49 | |
} |
50 | |
|
51 | |
public void setCommandResult( CommandResult _commandResult ) |
52 | |
{ |
53 | 1 | this._commandResult = _commandResult; |
54 | 1 | } |
55 | |
|
56 | |
|
57 | |
|
58 | |
public void setSite(Site site) |
59 | |
{ |
60 | 0 | _site=site; |
61 | 0 | } |
62 | |
|
63 | |
public Site getSite() |
64 | |
{ |
65 | 0 | return _site; |
66 | |
} |
67 | |
|
68 | |
|
69 | |
|
70 | |
|
71 | |
|
72 | |
public boolean isLuteceSite( ) |
73 | |
{ |
74 | 0 | return _component==null && _site!=null; |
75 | |
} |
76 | |
|
77 | |
public ReleaserUser getReleaserUser( ) |
78 | |
{ |
79 | 1 | return _releaserUser; |
80 | |
} |
81 | |
|
82 | |
public void setReleaserUser( ReleaserUser _releaserUser ) |
83 | |
{ |
84 | 1 | this._releaserUser = _releaserUser; |
85 | 1 | } |
86 | |
|
87 | |
public String getRefBranchRelease( ) |
88 | |
{ |
89 | 0 | return _strRefBranchRelease; |
90 | |
} |
91 | |
|
92 | |
public void setRefBranchRelease( String _strRefBranchRelease ) |
93 | |
{ |
94 | 1 | this._strRefBranchRelease = _strRefBranchRelease; |
95 | 1 | } |
96 | |
|
97 | |
public String getRefBranchDev( ) |
98 | |
{ |
99 | 0 | return _strRefBranchDev; |
100 | |
} |
101 | |
|
102 | |
public void setRefBranchDev( String _strRefBranchDev ) |
103 | |
{ |
104 | 1 | this._strRefBranchDev = _strRefBranchDev; |
105 | 1 | } |
106 | |
|
107 | |
|
108 | |
|
109 | |
} |