All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frameworkset.platform.resource.ExcludeResource Maven / Gradle / Ivy

There is a newer version: 5.6.4
Show newest version
package com.frameworkset.platform.resource;

import java.io.Serializable;

import com.frameworkset.platform.config.model.Operation;
import com.frameworkset.platform.config.model.OperationQueue;
import com.frameworkset.platform.config.model.ResourceInfo;

public class ExcludeResource implements Serializable

{
	private ResourceInfo resouceInfo;
    private String resourceID;
    private String resourceType;
    private OperationQueue excludeoperations;
    public ExcludeResource()
    {
    	excludeoperations = new OperationQueue();
    }
    
    public void addExcludeOperation(Operation opr)
    {
    	excludeoperations.addOperation(opr,false);
    }
    
    public OperationQueue getExcludeoperations()
    {
    	return this.excludeoperations;
    }
    
    public Operation getExcludeOperation(String oprid)
    {
    	for(int i =  0; i < this.excludeoperations.size(); i ++)
    	{
    		Operation opr = this.excludeoperations.getOperation(i);
    		if(opr.getId().equals(oprid))
    			return opr;
    	}
    	return null;
    }
    
	public ResourceInfo getResouceInfo()
	{
		return resouceInfo;
	}
	public void setResouceInfo(ResourceInfo resouceInfo)
	{
		this.resouceInfo = resouceInfo;
	}
	public String getResourceID()
	{
		return resourceID;
	}
	public void setResourceID(String resourceID)
	{
		this.resourceID = resourceID;
	}
	public String getResourceType()
	{
		return resourceType;
	}
	public void setResourceType(String resourceType)
	{
		this.resourceType = resourceType;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy