?? ofbizsoapworkflow.java
字號(hào):
/* * Copyright (c) 2002-2003 by OpenSymphony * All rights reserved. *//* * Created by IntelliJ IDEA. * User: plightbo * Date: May 22, 2002 * Time: 2:02:10 PM */package com.opensymphony.workflow.soap;import com.opensymphony.module.propertyset.PropertySet;import com.opensymphony.workflow.*;import com.opensymphony.workflow.config.Configuration;import com.opensymphony.workflow.loader.WorkflowDescriptor;import com.opensymphony.workflow.ofbiz.OfbizWorkflow;import com.opensymphony.workflow.query.WorkflowExpressionQuery;import com.opensymphony.workflow.query.WorkflowQuery;import electric.util.Context;import java.util.List;import java.util.Map;import javax.servlet.http.HttpServletRequest;/** * DOCUMENT ME! */public class OfbizSOAPWorkflow implements Workflow { //~ Methods //////////////////////////////////////////////////////////////// public int[] getAvailableActions(long id) { return new OfbizWorkflow(getRemoteUser()).getAvailableActions(id); } public int[] getAvailableActions(long id, Map inputs) { return new OfbizWorkflow(getRemoteUser()).getAvailableActions(id, inputs); } public void setConfiguration(Configuration configuration) { new OfbizWorkflow(getRemoteUser()).setConfiguration(configuration); } public List getCurrentSteps(long id) { return new OfbizWorkflow(getRemoteUser()).getCurrentSteps(id); } public int getEntryState(long id) { return new OfbizWorkflow(getRemoteUser()).getEntryState(id); } public List getHistorySteps(long id) { return new OfbizWorkflow(getRemoteUser()).getHistorySteps(id); } public PropertySet getPropertySet(long id) { return new OfbizWorkflow(getRemoteUser()).getPropertySet(id); } public List getSecurityPermissions(long id) { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id, null); } public List getSecurityPermissions(long id, Map inputs) { return new OfbizWorkflow(getRemoteUser()).getSecurityPermissions(id, inputs); } public WorkflowDescriptor getWorkflowDescriptor(String workflowName) { return new OfbizWorkflow(getRemoteUser()).getWorkflowDescriptor(workflowName); } public String getWorkflowName(long id) { return new OfbizWorkflow(getRemoteUser()).getWorkflowName(id); } public String[] getWorkflowNames() { return new OfbizWorkflow(getRemoteUser()).getWorkflowNames(); } public boolean canInitialize(String workflowName, int initialState) { return new OfbizWorkflow(getRemoteUser()).canInitialize(workflowName, initialState); } public boolean canInitialize(String workflowName, int initialAction, Map inputs) { return new OfbizWorkflow(getRemoteUser()).canInitialize(workflowName, initialAction, inputs); } public boolean canModifyEntryState(long id, int newState) { return new OfbizWorkflow(getRemoteUser()).canModifyEntryState(id, newState); } public void changeEntryState(long id, int newState) throws WorkflowException { new OfbizWorkflow(getRemoteUser()).changeEntryState(id, newState); } public void doAction(long id, int actionId, Map inputs) throws WorkflowException, StoreException { new OfbizWorkflow(getRemoteUser()).doAction(id, actionId, inputs); } public void executeTriggerFunction(long id, int triggerId) throws WorkflowException { new OfbizWorkflow(getRemoteUser()).executeTriggerFunction(id, triggerId); } public long initialize(String workflowName, int initialState, Map inputs) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).initialize(workflowName, initialState, inputs); } public List query(WorkflowQuery query) throws StoreException, FactoryException { return new OfbizWorkflow(getRemoteUser()).query(query); } public List query(WorkflowExpressionQuery query) throws WorkflowException { return new OfbizWorkflow(getRemoteUser()).query(query); } public boolean removeWorkflowDescriptor(String workflowName) throws FactoryException { return new OfbizWorkflow(getRemoteUser()).removeWorkflowDescriptor(workflowName); } public boolean saveWorkflowDescriptor(String workflowName, WorkflowDescriptor descriptor, boolean replace) throws FactoryException { return new OfbizWorkflow(getRemoteUser()).saveWorkflowDescriptor(workflowName, descriptor, replace); } protected String getRemoteUser() { HttpServletRequest request = (HttpServletRequest) Context.thread().getProperty("httpRequest"); return request.getRemoteUser(); }}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -