com.ibm.ftt.properties.zos
Class ZOSPropertyGroupContainer

java.lang.Object
  extended by com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
      extended by com.ibm.ftt.properties.zos.ZOSPropertyGroupContainer
All Implemented Interfaces:
IPropertyGroupContainer, com.ibm.ftt.properties.zos.IResourceInfoContainerHolder

public class ZOSPropertyGroupContainer
extends com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
implements IPropertyGroupContainer, com.ibm.ftt.properties.zos.IResourceInfoContainerHolder

Implements property group containers for the z/OS property group manager. Do not create instances of this class--the ZOSPropertyGroupManager creates a container when a host connection is created and deletes a container when a host connection is deleted.

The getSystem() method returns the name of the ZOSSystemImage for this container.


Field Summary
static String COPY_RIGHT
           
 
Method Summary
 void addPropertyGroup(IPropertyGroup group)
          
 void deleteOverridesInSubprojects()
           
 void deletePropertyGroup(IPropertyGroup propertyGroup)
          Removes the given property group from the container.
 void exportAllPropertyGroups(OutputStream output)
          Exports all of the property groups from this container into a file.
 void exportPropertyGroups(List<IPropertyGroup> propertyGroups, OutputStream output)
          Exports the given property groups from this container to the given file.
 List<IPropertyGroup> getPropertyGroups()
          Returns the property groups in the container.
 String getSystem()
          Returns the system for the container.
 void importPropertyGroups(InputStream input)
          Imports property groups from the given input stream into this container.
 void load()
          Loads all of the property groups in the container from a persistent store.
 void save()
          Saves all of the property groups in the container to a persistent store.
 String toString()
          Returns the system for the container.
 
Methods inherited from interface com.ibm.ftt.properties.IPropertyGroupContainer
createPropertyGroup, getPropertyGroupManager
 

Field Detail

COPY_RIGHT

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

deletePropertyGroup

public void deletePropertyGroup(IPropertyGroup propertyGroup)
Removes the given property group from the container.

Specified by:
deletePropertyGroup in interface IPropertyGroupContainer
Overrides:
deletePropertyGroup in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
Parameters:
propertyGroup - The property group to delete

exportAllPropertyGroups

public void exportAllPropertyGroups(OutputStream output)
                             throws IOException
Exports all of the property groups from this container into a file.

Specified by:
exportAllPropertyGroups in interface IPropertyGroupContainer
Overrides:
exportAllPropertyGroups in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
Parameters:
output - The output stream to write the property groups to. The output stream must be open and ready to be written to.

Throws:
IOException - If there is a error writing to the output stream.

exportPropertyGroups

public void exportPropertyGroups(List<IPropertyGroup> propertyGroups,
                                 OutputStream output)
                          throws IOException
Exports the given property groups from this container to the given file.

Specified by:
exportPropertyGroups in interface IPropertyGroupContainer
Specified by:
exportPropertyGroups in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
Parameters:
propertyGroups - A list of property groups from this container to export.
output - An output stream to write the property groups to. The output stream must be open and ready to be written to.

Throws:
IOException - If there is an error writing to the output stream.

getPropertyGroups

public List<IPropertyGroup> getPropertyGroups()
Returns the property groups in the container.

Specified by:
getPropertyGroups in interface IPropertyGroupContainer
Overrides:
getPropertyGroups in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
Returns:
The property groups in the container. The list is an unmodifiable list.

importPropertyGroups

public void importPropertyGroups(InputStream input)
                          throws DuplicatePropertyGroupException,
                                 IOException,
                                 UnregisteredCategoryException,
                                 UnregisteredPropertyException,
                                 DuplicateInstanceException
Imports property groups from the given input stream into this container.

Specified by:
importPropertyGroups in interface IPropertyGroupContainer
Specified by:
importPropertyGroups in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
Parameters:
input - The input stream to read. It must be open and ready to be read from.

Throws:
DuplicatePropertyGroupException - If there is a property group in the input stream with the same name as one in the container.
IOException - If there is an error reading from the input stream.
UnregisteredCategoryException - If there is a category instance that points to a category that has not been registered with the property group manager.
UnregisteredPropertyException - If there is a property in the file that has not been registered with the property group manager.
DuplicateInstanceException - If there is a category instance in the file that is a duplicate.

load

public void load()
Loads all of the property groups in the container from a persistent store. This is called when the workspace starts.

Specified by:
load in interface IPropertyGroupContainer
Specified by:
load in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer

save

public void save()
          throws IOException
Saves all of the property groups in the container to a persistent store. This is called when the workspace shuts down.

Specified by:
save in interface IPropertyGroupContainer
Specified by:
save in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer
Throws:
IOException - If an input output error occurs when saving.

getSystem

public String getSystem()
Returns the system for the container. The system is the alias name of an IHost.

Returns:
The system for the container.

toString

public String toString()
Returns the system for the container.

Overrides:
toString in class Object
Returns:
The system for the container.

addPropertyGroup

public void addPropertyGroup(IPropertyGroup group)

Overrides:
addPropertyGroup in class com.ibm.ftt.properties.impl.AbstractPropertyGroupContainer

deleteOverridesInSubprojects

public void deleteOverridesInSubprojects()