01: /**
02: * $Id: TaskResult.java,v 1.2 2005/04/19 22:30:37 mjain Exp $
03: * Copyright 2005 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.portlet.service.taskshared;
14:
15: /**
16: *
17: * @author mjain
18: */
19: public class TaskResult {
20:
21: private String _status = TaskCommonConstant.STATUS_SUCCESS;
22: private Exception _exception;
23:
24: /** Creates a new instance of TaskResult */
25: public TaskResult() {
26: }
27:
28: public String getStatus() {
29: return _status;
30: }
31:
32: public void setStatus(String status) {
33: _status = status;
34: }
35:
36: public Exception getException() {
37: return _exception;
38: }
39:
40: public void setException(Exception ex) {
41: _exception = ex;
42: }
43:
44: public boolean isError() {
45: if (_status != TaskCommonConstant.STATUS_SUCCESS) {
46: return true;
47: } else {
48: return false;
49: }
50: }
51:
52: }
|