com.ibm.ftt.projects.core.logical
Interface ILogicalContainer

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, IContainer, ILogicalResource
All Known Subinterfaces:
ILogicalProject, ILogicalSubProject, IRemoteProject, IRemoteSubProject, LZOSPartitionedDataSet, LZOSProject, LZOSSubProject

public interface ILogicalContainer
extends IContainer, ILogicalResource

A container for logical resources.


Field Summary
static String COPY_RIGHT
           
 
Method Summary
 void addMember(ILogicalResource newMember)
          Adds a logical resource to this container.
 void removeMember(ILogicalResource member)
          Removes a logical resource from this container.
 
Methods inherited from interface com.ibm.ftt.resources.core.physical.IContainer
exists, findMember, findMember, getMembers, members
 
Methods inherited from interface com.ibm.ftt.projects.core.logical.ILogicalResource
delete, deleteOverriddenPropertiesInCategory, deleteOverride, getCurrentPropertyGroup, getFullPath, getLogicalParent, getName, getOverriddenProperties, getPersistentProperty, getPhysicalResource, getResourcePublisher, getSessionProperty, getSubProject, refresh, remove, rename, setCurrentPropertyGroup, setOverride, setPersistentProperty, setSessionProperty
 

Field Detail

COPY_RIGHT

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

addMember

void addMember(ILogicalResource newMember)
               throws OperationFailedException
Adds a logical resource to this container. This only modifies the logical resource tree, and does not affect the physical file system.

This is useful for moving a logical resource to a different container.

Note that this method should only be invoked on an ILogicalContainer that does not represent an IPhysicalContainer (e.g. ILogicalSubProject), in order to avoid discrepancies with the physical file system. Note also that this method will be modified to throw an exception in the future.

Parameters:
newMember - the ILogicalResource to be added
Throws:
OperationFailedException
See Also:
ILogicalResourceFactory.getLogicalResource(ILogicalContainer, com.ibm.ftt.resources.core.physical.IPhysicalResource)

removeMember

void removeMember(ILogicalResource member)
                  throws OperationFailedException
Removes a logical resource from this container. This only modifies the logical resource tree, and does not affect the physical file system.

Note that this method should only be invoked on an ILogicalContainer that does not represent an IPhysicalContainer (e.g. ILogicalSubProject), in order to avoid discrepancies with the physical file system. Note also that this method will be modified to throw an exception in the future.

Parameters:
member - the ILogicalResource to be removed
Throws:
OperationFailedException