View Javadoc
1   /**
2    * Copyright 2005-2016 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.useroptions;
17  
18  import org.kuali.rice.krad.data.jpa.IdClassBase;
19  
20  /**
21   * Composite primary key for the {@link UserOptions} class.
22   *
23   * @author Kuali Rice Team (rice.collab@kuali.org)
24   */
25  public class UserOptionsId extends IdClassBase {
26  
27      private static final long serialVersionUID = -982957447172014416L;
28  
29      private String workflowId;
30      private String optionId;
31  
32      public UserOptionsId() {}
33  
34      /**
35       * Constructor to accept a workflow id and option id as parameters and instantiate the class.
36       * @param workflowId the workflow id
37       * @param optionId the user option id
38       */
39      public UserOptionsId(String workflowId, String optionId) {
40          this.workflowId = workflowId;
41          this.optionId = optionId;
42      }
43  
44      /**
45       * Returns the current option id
46       * @return the current option id
47       */
48      public String getOptionId() {
49          return optionId;
50      }
51  
52      /**
53       * Returns the current workflow id.
54       * @return the current workflow id.
55       */
56      public String getWorkflowId() {
57          return workflowId;
58      }
59  
60  }
61