wt.sysadm
Class PropFiles

java.lang.Object
  extended bywt.sysadm.PropFiles

public class PropFiles
extends Object

The PropFiles is the entry point of the property editing portion of our program for the user.

It generates the main page for property file editing. The admin user can, from this page, choose to ADD, DELETE, or CHANGE a property contained in the named properties file.


Field Summary
 int advMaxLen
           
 int basMaxLen
           
 Vector cp
           
protected static String doc_base
           
private static String RESOURCE
           
protected static boolean VERBOSE
           
 
Constructor Summary
PropFiles()
           
 
Method Summary
 void callPropagator()
           
private  String cleanPropertyValue(String oldValue)
           
private static void copyFile(String filename)
           
private  String getDescription(Properties propMap, String propertyName)
          Returns description text
 Vector getProperties(String current_file, String select)
          Get the properties from the selected file, containing a given pattern
private  String getReference(String propertyName)
          Insert the Reference text
private static String quote(String str)
           
private  String replacePropertyValue(String tmpStr)
           
 void setProperties(String s1, String s2, String s3, String s4, String s5, String s6)
           
private static String[] SortProps(Properties prop)
           
 boolean updateProps(Properties props_to_update, String aUser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

protected static final boolean VERBOSE

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

doc_base

protected static final String doc_base

cp

public Vector cp

advMaxLen

public int advMaxLen

basMaxLen

public int basMaxLen
Constructor Detail

PropFiles

public PropFiles()
Method Detail

getReference

private String getReference(String propertyName)
Insert the Reference text


getDescription

private String getDescription(Properties propMap,
                              String propertyName)
Returns description text

Parameters:
propertyName - Name key for the property whose value will be returned

getProperties

public Vector getProperties(String current_file,
                            String select)
                     throws WTException,
                            IOException
Get the properties from the selected file, containing a given pattern

Throws:
WTException
IOException

updateProps

public boolean updateProps(Properties props_to_update,
                           String aUser)
                    throws IOException,
                           WTException,
                           StructConfManagerException
Throws:
IOException
WTException
StructConfManagerException

copyFile

private static void copyFile(String filename)

SortProps

private static String[] SortProps(Properties prop)

quote

private static String quote(String str)

setProperties

public void setProperties(String s1,
                          String s2,
                          String s3,
                          String s4,
                          String s5,
                          String s6)

cleanPropertyValue

private String cleanPropertyValue(String oldValue)

replacePropertyValue

private String replacePropertyValue(String tmpStr)

callPropagator

public void callPropagator()
                    throws WTException,
                           IOException,
                           StructConfManagerException
Throws:
WTException
IOException
StructConfManagerException