KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > repo > action > ActionExecutionDetailsImpl


1 /*
2  * Copyright (C) 2005 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.repo.action;
18
19 import org.alfresco.service.cmr.action.Action;
20 import org.alfresco.service.cmr.action.ActionExecutionDetails;
21 import org.alfresco.service.cmr.action.ActionExecutionStatus;
22
23 /**
24  * Action execution details implementation
25  *
26  * @author Roy Wetherall
27  */

28 public class ActionExecutionDetailsImpl implements ActionExecutionDetails
29 {
30     /**
31      * The title
32      */

33     private String JavaDoc title;
34     
35     /**
36      * The description
37      */

38     private String JavaDoc description;
39     
40     /**
41      * The action
42      */

43     private Action action;
44     
45     /**
46      * The action execution status
47      */

48     private ActionExecutionStatus executionStatus = ActionExecutionStatus.PENDING;
49     
50     /**
51      * Indicates whether a compensating action has been executed
52      */

53     private boolean compensatingActionExecuted = false;
54     
55     /**
56      * The error message
57      */

58     private String JavaDoc errorMessage;
59     
60     /**
61      * The details of the error
62      */

63     private String JavaDoc errorDetails;
64     
65     /**
66      * @see org.alfresco.service.cmr.action.ActionExecutionDetails#getTitle()
67      */

68     public String JavaDoc getTitle()
69     {
70         return this.title;
71     }
72     
73     /**
74      * Set the title
75      *
76      * @param title the title
77      */

78     public void setTitle(String JavaDoc title)
79     {
80         this.title = title;
81     }
82
83     /**
84      * @see org.alfresco.service.cmr.action.ActionExecutionDetails#getDescription()
85      */

86     public String JavaDoc getDescription()
87     {
88         return this.description;
89     }
90     
91     /**
92      * Set the description
93      *
94      * @param description the description
95      */

96     public void setDescription(String JavaDoc description)
97     {
98         this.description = description;
99     }
100
101     /**
102      * @see org.alfresco.service.cmr.action.ActionExecutionDetails#getAction()
103      */

104     public Action getAction()
105     {
106         return this.action;
107     }
108     
109     /**
110      * Set the action that this execution details relates to.
111      *
112      * @param action the action
113      */

114     public void setAction(Action action)
115     {
116         this.action = action;
117     }
118
119     /**
120      * @see org.alfresco.service.cmr.action.ActionExecutionDetails#getExecutionStatus()
121      */

122     public ActionExecutionStatus getExecutionStatus()
123     {
124         return this.executionStatus;
125     }
126     
127     /**
128      * Set the execution status
129      *
130      * @param executionStatus the execution status
131      */

132     public void setExecutionStatus(ActionExecutionStatus executionStatus)
133     {
134         this.executionStatus = executionStatus;
135     }
136
137     /**
138      * @see org.alfresco.service.cmr.action.ActionExecutionDetails#getCompensatingActionExecuted()
139      */

140     public boolean getCompensatingActionExecuted()
141     {
142         return this.compensatingActionExecuted;
143     }
144     
145     /**
146      * Set the value that indicates whether a compensating action has been executed.
147      *
148      * @param compensatingActionExecuted true if a compensating action has been executed, false otherwise
149      */

150     public void setCompensatingActionExecuted(boolean compensatingActionExecuted)
151     {
152         this.compensatingActionExecuted = compensatingActionExecuted;
153     }
154
155     /**
156      * @see org.alfresco.service.cmr.action.ActionExecutionDetails#getErrorMessage()
157      */

158     public String JavaDoc getErrorMessage()
159     {
160         return this.errorMessage;
161     }
162
163     /**
164      * Set the error message
165      *
166      * @param errorMessage the error message
167      */

168     public void setErrorMessage(String JavaDoc errorMessage)
169     {
170         this.errorMessage = errorMessage;
171     }
172     
173     /**
174      * @see org.alfresco.service.cmr.action.ActionExecutionDetails#getErrorDetails()
175      */

176     public String JavaDoc getErrorDetails()
177     {
178         return this.errorDetails;
179     }
180     
181     /**
182      * Set the error details
183      *
184      * @param errorDetails the error details
185      */

186     public void setErrorDetails(String JavaDoc errorDetails)
187     {
188         this.errorDetails = errorDetails;
189     }
190 }
191
Popular Tags