View Javadoc
1   /**
2    * Copyright 2005-2014 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.actionitem;
17  
18  import javax.persistence.Entity;
19  import javax.persistence.Table;
20  
21  /**
22   * Outbox item.  An extension of {@link ActionItemActionListExtension} for OJB.
23   *
24   * @author Kuali Rice Team (rice.collab@kuali.org)
25   *
26   */
27  @Entity
28  @Table(name="KREW_OUT_BOX_ITM_T")
29  public class OutboxItem extends ActionItemBase {
30  
31  	private static final long serialVersionUID = 5776214610837858304L;
32  
33  	public OutboxItem() {}
34  
35  	public OutboxItem(ActionItem actionItem) {
36  		this.setActionRequestCd(actionItem.getActionRequestCd());
37  		this.setActionRequestId(actionItem.getActionRequestId());
38  		this.setDateAssigned(actionItem.getDateAssigned());
39  		this.setDelegationType(actionItem.getDelegationType());
40  		this.setDelegatorPrincipalId(actionItem.getDelegatorPrincipalId());
41  		this.setDelegatorGroupId(actionItem.getDelegatorGroupId());
42  		this.setDocHandlerURL(actionItem.getDocHandlerURL());
43  		this.setDocLabel(actionItem.getDocLabel());
44  		this.setDocName(actionItem.getDocName());
45  		this.setDocTitle(actionItem.getDocTitle());
46  		this.setResponsibilityId(actionItem.getResponsibilityId());
47  		this.setRoleName(actionItem.getRoleName());
48  		this.setDocumentId(actionItem.getDocumentId());
49  		this.setPrincipalId(actionItem.getPrincipalId());
50  		this.setGroupId(actionItem.getGroupId());
51  		this.setRequestLabel(actionItem.getRequestLabel());
52  	}
53  
54  }