001/* 002 * (C) Copyright 2014 Nuxeo SA (http://nuxeo.com/) and others. 003 * 004 * Licensed under the Apache 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.apache.org/licenses/LICENSE-2.0 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 * 016 * Contributors: 017 * <a href="mailto:grenard@nuxeo.com">Guillaume Renard</a> 018 * 019 */ 020 021package org.nuxeo.ecm.restapi.server.jaxrs.routing.model; 022 023import java.io.Serializable; 024import java.util.ArrayList; 025import java.util.List; 026import java.util.Map; 027 028/** 029 * @since 7.2 030 */ 031public class WorkflowRequest { 032 033 protected List<String> attachedDocumentIds = new ArrayList<String>(); 034 035 protected Map<String, Serializable> variables; 036 037 protected String workflowModelName; 038 039 public WorkflowRequest() { 040 super(); 041 } 042 043 public List<String> getAttachedDocumentIds() { 044 return attachedDocumentIds; 045 } 046 047 public String getWorkflowModelName() { 048 return workflowModelName; 049 } 050 051 public Map<String, Serializable> getVariables() { 052 return variables; 053 } 054 055 public void setAttachedDocumentIds(List<String> attachedDocumentIds) { 056 this.attachedDocumentIds = attachedDocumentIds; 057 } 058 059 public void setWorkflowModelName(String workflowModelName) { 060 this.workflowModelName = workflowModelName; 061 } 062 063 public void setVariables(Map<String, Serializable> worflowVariables) { 064 this.variables = worflowVariables; 065 } 066 067}