Coverage Report - org.kuali.rice.kew.actionitem.OutboxItemActionListExtension
 
Classes in this File Line Coverage Branch Coverage Complexity
OutboxItemActionListExtension
0%
0/20
N/A
1
 
 1  
 /*
 2  
  * Copyright 2007 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.AttributeOverride;
 19  
 import javax.persistence.AttributeOverrides;
 20  
 import javax.persistence.Column;
 21  
 import javax.persistence.Entity;
 22  
 import javax.persistence.Table;
 23  
 
 24  
 /**
 25  
  * Outbox item.  An extension of {@link ActionItemActionListExtension} for OJB.
 26  
  *
 27  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 28  
  *
 29  
  */
 30  
 @Entity
 31  
 @Table(name="KREW_OUT_BOX_ITM_T")
 32  
 @AttributeOverrides({
 33  
         @AttributeOverride(name="actionItemId", column=@Column(name="ACTN_ITM_ID")),
 34  
         @AttributeOverride(name="principalId", column=@Column(name="PRNCPL_ID")),
 35  
         @AttributeOverride(name="dateAssigned", column=@Column(name="ASND_DT")),
 36  
         @AttributeOverride(name="actionRequestCd", column=@Column(name="RQST_CD")),
 37  
         @AttributeOverride(name="actionRequestId", column=@Column(name="ACTN_RQST_ID")),
 38  
         @AttributeOverride(name="documentId", column=@Column(name="DOC_HDR_ID")),//, insertable=false, updatable=false)),
 39  
         @AttributeOverride(name="responsibilityId", column=@Column(name="RSP_ID")),
 40  
         @AttributeOverride(name="groupId", column=@Column(name="GRP_ID")),
 41  
         @AttributeOverride(name="roleName", column=@Column(name="ROLE_NM")),
 42  
         @AttributeOverride(name="docTitle", column=@Column(name="DOC_HDR_TTL")),
 43  
         @AttributeOverride(name="docLabel", column=@Column(name="DOC_TYP_LBL")),
 44  
         @AttributeOverride(name="docHandlerURL", column=@Column(name="DOC_HDLR_URL")),
 45  
         @AttributeOverride(name="docName", column=@Column(name="DOC_TYP_NM")),
 46  
         @AttributeOverride(name="delegatorWorkflowId", column=@Column(name="DLGN_PRNCPL_ID")),
 47  
         @AttributeOverride(name="delegatorGroupId", column=@Column(name="DLGN_GRP_ID")),
 48  
         @AttributeOverride(name="delegationType", column=@Column(name="DLGN_TYP")),
 49  
         @AttributeOverride(name="lockVerNbr", column=@Column(name="VER_NBR")),
 50  
         @AttributeOverride(name="requestLabel", column=@Column(name="RQST_LBL"))
 51  
 })
 52  
 
 53  
 public class OutboxItemActionListExtension extends ActionItemActionListExtension {
 54  
 
 55  
         private static final long serialVersionUID = 5776214610837858304L;
 56  
 
 57  0
         public OutboxItemActionListExtension() {}
 58  
 
 59  0
         public OutboxItemActionListExtension(ActionItem actionItem) {
 60  0
                 this.setActionRequestCd(actionItem.getActionRequestCd());
 61  0
                 this.setActionRequestId(actionItem.getActionRequestId());
 62  0
                 this.setActionToTake(actionItem.getActionToTake());
 63  0
                 this.setDateAssigned(actionItem.getDateAssigned());
 64  0
                 this.setDelegationType(actionItem.getDelegationType());
 65  0
                 this.setDelegatorWorkflowId(actionItem.getDelegatorWorkflowId());
 66  0
                 this.setDelegatorGroupId(actionItem.getDelegatorGroupId());
 67  0
                 this.setDocHandlerURL(actionItem.getDocHandlerURL());
 68  0
                 this.setDocLabel(actionItem.getDocLabel());
 69  0
                 this.setDocName(actionItem.getDocName());
 70  0
                 this.setDocTitle(actionItem.getDocTitle());
 71  0
                 this.setResponsibilityId(actionItem.getResponsibilityId());
 72  0
                 this.setRoleName(actionItem.getRoleName());
 73  0
                 this.setDocumentId(actionItem.getDocumentId());
 74  0
                 this.setPrincipalId(actionItem.getPrincipalId());
 75  0
                 this.setGroupId(actionItem.getGroupId());
 76  0
                 this.setRequestLabel(actionItem.getRequestLabel());
 77  0
         }
 78  
 
 79  
 }