com.ibm.ftt.projects.core.logicalfactory
Interface ILogicalResourceFactory
public interface ILogicalResourceFactory
A factory for creating logical resources.
COPY_RIGHT
static final String COPY_RIGHT
- See Also:
- Constant Field Values
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
resourcechildPhysical - the IPhysicalResource whose corresponding logical
resource is requested
- Returns:
- the
ILogicalResource associated with the physical
resource
- Throws:
OperationFailedException