com.infoengine.ieinstall
Class IePropertiesAction

java.lang.Object
  extended bycom.ptc.windchill.structconf.PropagationAction
      extended bycom.infoengine.ieinstall.IePropertiesAction

public class IePropertiesAction
extends PropagationAction

A custom xconf file generator class. The class is called by the xconf routines during xconf propagation. It writes a correctly formatted ie.properties file based on the properties received from the site.xconf file.


Nested Class Summary
private  class IePropertiesAction.MyTextDerivedFile
          Inner class to handle writing the destination file.
 
Field Summary
private  IePropertiesAction.MyTextDerivedFile destinationFile
           
private static String ldapHostname
           
private static String managerDn
           
private static String managerPw
           
private static String propertyBaseDn
           
private static String rmiHostname
           
private static String serverPort
           
private static String serviceName
           
private  String[] specialProps
           
private  String thisName
           
 
Constructor Summary
IePropertiesAction()
          Construct a new PropagationAction
 
Method Summary
private  void addXconfComments(IePropertiesAction.MyTextDerivedFile file)
          Add comments to beginning of ie.properties file.
(package private)  Vector domain2Vector(String name)
          Parses a fully qualified DNS name into components.
 void evaluate(CollectedProperties collected_properties)
          Evaluate the custom propagation action.
private  PropertyInfo get(String property_name, CollectedProperties collected_properties)
          Retrieve the named property.
 DerivedFile[] getDerivedFiles()
          Return the set of DerivedFile objects that will be updated if this custom propagation action is evaluated.
(package private)  String reverseDomain(String name)
          Reverses the components of a fully qualified host or domain name.
private  String safeGet(String property_name, CollectedProperties collected_properties)
          Retrieve the named property.
 
Methods inherited from class com.ptc.windchill.structconf.PropagationAction
newPropagationActionException, newPropgationActionException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

destinationFile

private IePropertiesAction.MyTextDerivedFile destinationFile

thisName

private String thisName

rmiHostname

private static String rmiHostname

serviceName

private static String serviceName

ldapHostname

private static String ldapHostname

serverPort

private static String serverPort

managerDn

private static String managerDn

managerPw

private static String managerPw

propertyBaseDn

private static String propertyBaseDn

specialProps

private String[] specialProps
Constructor Detail

IePropertiesAction

public IePropertiesAction()
                   throws PropagationActionException
Construct a new PropagationAction

Throws:
PropagationActionException - If an error occurs
Method Detail

getDerivedFiles

public DerivedFile[] getDerivedFiles()
Return the set of DerivedFile objects that will be updated if this custom propagation action is evaluated.

Specified by:
getDerivedFiles in class PropagationAction
Returns:
The derived file list.

evaluate

public void evaluate(CollectedProperties collected_properties)
              throws PropagationActionException
Evaluate the custom propagation action.

Specified by:
evaluate in class PropagationAction
Parameters:
collected_properties - Properties from site.xconf
Throws:
PropagationActionException - if there are problems evaluating the action and updating derived file instances

get

private PropertyInfo get(String property_name,
                         CollectedProperties collected_properties)
Retrieve the named property.

Parameters:
property_name - String name of the property.
collected_properties - The set of properties.
Returns:
The selected property.

safeGet

private String safeGet(String property_name,
                       CollectedProperties collected_properties)
                throws PropagationActionException
Retrieve the named property.

Parameters:
property_name - String name of the property.
collected_properties - The set of properties.
Returns:
The selected property.
Throws:
PropagationActionException

reverseDomain

String reverseDomain(String name)
Reverses the components of a fully qualified host or domain name.

Parameters:
name - A fully qualified DNS name such as myMachine.myCompany.com.
Returns:
The reversed name, com.myCompany.myMachine.

domain2Vector

Vector domain2Vector(String name)
Parses a fully qualified DNS name into components.

Parameters:
name - A fully qualified DNS name such as myMachine.myCompany.com.
Returns:
A vector containing the name components.

addXconfComments

private void addXconfComments(IePropertiesAction.MyTextDerivedFile file)
Add comments to beginning of ie.properties file.

Parameters:
file - File to add comments to.