001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kew.useroptions;
017
018import org.kuali.rice.krad.data.jpa.IdClassBase;
019
020/**
021 * Composite primary key for the {@link UserOptions} class.
022 *
023 * @author Kuali Rice Team (rice.collab@kuali.org)
024 */
025public class UserOptionsId extends IdClassBase {
026
027    private static final long serialVersionUID = -982957447172014416L;
028
029    private String workflowId;
030    private String optionId;
031
032    public UserOptionsId() {}
033
034    /**
035     * Constructor to accept a workflow id and option id as parameters and instantiate the class.
036     * @param workflowId the workflow id
037     * @param optionId the user option id
038     */
039    public UserOptionsId(String workflowId, String optionId) {
040        this.workflowId = workflowId;
041        this.optionId = optionId;
042    }
043
044    /**
045     * Returns the current option id
046     * @return the current option id
047     */
048    public String getOptionId() {
049        return optionId;
050    }
051
052    /**
053     * Returns the current workflow id.
054     * @return the current workflow id.
055     */
056    public String getWorkflowId() {
057        return workflowId;
058    }
059
060}
061