| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| NotificationWorkflowDocument |
|
| 1.0;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.ken.document.kew; | |
| 17 | ||
| 18 | import org.kuali.rice.ken.util.NotificationConstants; | |
| 19 | import org.kuali.rice.kew.dto.UserIdDTO; | |
| 20 | import org.kuali.rice.kew.exception.WorkflowException; | |
| 21 | import org.kuali.rice.kew.service.WorkflowDocument; | |
| 22 | ||
| 23 | ||
| 24 | /** | |
| 25 | * This class extends the KEW WorkflowDocument object and becomes our gateway for | |
| 26 | * get a handle on KEW documents in workflow. | |
| 27 | * @author Kuali Rice Team (rice.collab@kuali.org) | |
| 28 | */ | |
| 29 | public class NotificationWorkflowDocument extends WorkflowDocument { | |
| 30 | private static final long serialVersionUID = 6125662798733898964L; | |
| 31 | ||
| 32 | /** | |
| 33 | * Constructs a NotificationWorkflowDocument instance - this essentially creates a new routable document in KEW | |
| 34 | * for the given user. | |
| 35 | * @param user | |
| 36 | * @throws WorkflowException | |
| 37 | */ | |
| 38 | public NotificationWorkflowDocument(UserIdDTO user) throws WorkflowException { | |
| 39 | 0 | super(user, NotificationConstants.KEW_CONSTANTS.NOTIFICATION_DOC_TYPE); |
| 40 | 0 | } |
| 41 | ||
| 42 | /** | |
| 43 | * Constructs a NotificationWorkflowDocument instance - this essentially creates a new routable document in KEW | |
| 44 | * for the given user and document type name. | |
| 45 | * @param user | |
| 46 | * @param documentTypeName | |
| 47 | * @throws WorkflowException | |
| 48 | */ | |
| 49 | public NotificationWorkflowDocument(UserIdDTO user, String documentTypeName) throws WorkflowException { | |
| 50 | 0 | super(user, documentTypeName); |
| 51 | 0 | } |
| 52 | ||
| 53 | /** | |
| 54 | * Constructs a NotificationWorkflowDocument instance - this one is used to get a handle on a workflow | |
| 55 | * document that was already created in the system. | |
| 56 | * @param user | |
| 57 | * @param documentId | |
| 58 | * @throws WorkflowException | |
| 59 | */ | |
| 60 | public NotificationWorkflowDocument(UserIdDTO user, Long documentId) throws WorkflowException { | |
| 61 | 0 | super(user, documentId); |
| 62 | 0 | } |
| 63 | } |