View Javadoc

1   /*
2    * Copyright 2008-2009 The Kuali Foundation
3    * 
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    * http://www.opensource.org/licenses/ecl2.php
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.rice.kew.webservice;
17  
18  import java.util.List;
19  
20  /**
21   * Response object used when creating or obtaining documents
22   */
23  public class DocumentResponse extends StandardResponse {
24      protected String docId;
25      protected String docContent;
26      protected String title;
27      protected List<NoteDetail> notes;
28      protected String actionRequested;
29      public DocumentResponse() {}
30      public DocumentResponse(StandardResponse standardResponse) {
31          this.appDocId = standardResponse.getAppDocId();
32          this.createDate = standardResponse.getCreateDate();
33          this.docStatus = standardResponse.getDocStatus();
34          this.errorMessage = standardResponse.getErrorMessage();
35          this.initiatorPrincipalId = standardResponse.getInitiatorPrincipalId();
36          this.initiatorName = standardResponse.getInitiatorName();
37          this.routedByPrincipalId = standardResponse.getRoutedByPrincipalId();
38          this.routedByUserName = standardResponse.getRoutedByUserName();
39      }
40      public String getDocContent() {
41          return docContent;
42      }
43      public void setDocContent(String docContent) {
44          this.docContent = docContent;
45      }
46      public String getTitle() {
47          return title;
48      }
49      public void setTitle(String title) {
50          this.title = title;
51      }
52      public List<NoteDetail> getNotes() {
53          return notes;
54      }
55      public void setNotes(List<NoteDetail> notes) {
56          this.notes = notes;
57      }
58      public String getActionRequested() {
59          return actionRequested;
60      }
61      public void setActionRequested(String actionRequested) {
62          this.actionRequested = actionRequested;
63      }
64      public String getDocId() {
65          return docId;
66      }
67      public void setDocId(String docId) {
68          this.docId = docId;
69      }
70  }