WorkflowTriggerUpdates.java :  » Workflow-Engines » JFolder » org » jfolder » workflow » model » trigger » Java Open Source

Java Open Source » Workflow Engines » JFolder 
JFolder » org » jfolder » workflow » model » trigger » WorkflowTriggerUpdates.java
/*
 * JFolder, Copyright 2001-2006 Gary Steinmetz
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package org.jfolder.workflow.model.trigger;

//base classes
import java.util.ArrayList;

//project specific classes
import org.jfolder.security.audit.SecurityAudit;
import org.jfolder.workflow.model.WorkflowComponent;
import org.jfolder.workflow.model.WorkflowComponentUpdates;

//other classes

public class WorkflowTriggerUpdates extends WorkflowComponentUpdates {
    
    //TO DO: consolidate these and the functions they are used in
    protected final static String ADD = "ADD";
    protected final static String UPDATE = "UPDATE";
    protected final static String REMOVE = "REMOVE";
    
    //
    //private SecurityAudit sa = null;
    //
    private ArrayList propCommands = null;
    private ArrayList propNames = null;
    private ArrayList propValues = null;
    
    protected WorkflowTriggerUpdates() {
        //this.sa = inSa;
    }
    
    protected void setPropertyUpdates(ArrayList inCommands, ArrayList inNames,
        ArrayList inValues) {
        
        //
        this.propCommands = inCommands;
        this.propNames = inNames;
        this.propValues = inValues;
    }
    
    //public SecurityAudit getSecurityAudit() {
    //    return this.sa;
    //}
    
    public int getPropertyUpdateCount() {
        return this.propCommands.size();
    }
    
    public String getPropertyCommand(int inIndex) {
        return (String)this.propCommands.get(inIndex);
    }
    
    public String getPropertyName(int inIndex) {
        return (String)this.propNames.get(inIndex);
    }
    
    public String getPropertyValue(int inIndex) {
        return (String)this.propValues.get(inIndex);
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.