com.ibm.ftt.projects.core.logicalfactory
Interface ILogicalResourceFactory


public interface ILogicalResourceFactory

A factory for creating logical resources.


Field Summary
static String COPY_RIGHT
           
 
Method Summary
 ILogicalResource getLogicalResource(ILogicalContainer parentLogical, IPhysicalResource childPhysical)
          Returns a logical resource in the model.
 

Field Detail

COPY_RIGHT

static final String COPY_RIGHT
See Also:
Constant Field Values
Method Detail

getLogicalResource

ILogicalResource getLogicalResource(ILogicalContainer parentLogical,
                                    IPhysicalResource childPhysical)
                                    throws OperationFailedException
Returns a logical resource in the model. If the resource does not exist in the model, this method creates a new object, adds it to the specified parent container and returns it.

This is useful for adding a reference to a physical resource (such as a host artifact), to a logical container. If an existing project resource referencing the physical resource already exists, the existing resource will be returned and no new logical resource will be created.

Parameters:
parentLogical - the ILogicalContainer which will be the parent of resource
childPhysical - the IPhysicalResource whose corresponding logical resource is requested
Returns:
the ILogicalResource associated with the physical resource
Throws:
OperationFailedException