.properties ; with a value of a fully qualified
path and filename for said property file. An example of this
would be:
myTag1.myTag2.properties=d:/Windchill/codebase/myTag2.properties
In addition to performing their obvious actions, the "start" and
"restart" actions also cause the property file changes to take
effect. The "current" property file becomes the "previous"; and
the "next" becomes the "current".
This class is a static uninstantiable class whose methods are called
via reflection by SysAdmin. This is similar to the "business classes"
of the Windchill system proper.
Constructor Summary |
private |
SAHomePage()
Uninstantiable class. |
Method Summary |
static String |
buildSMTree(Properties prop,
Locale locale,
OutputStream os)
This method will build tree of the available Server Manager Methods
|
static void |
createBase(Properties prop,
Locale locale,
OutputStream os)
Get the base tag for the sysadm. |
static void |
createEmptyLink(Properties prop,
Locale locale,
OutputStream os)
|
static void |
createQBase(Properties prop,
Locale locale,
OutputStream os)
Get the base tag for the sysadm(put between quotes('). |
private static Properties |
findLogFiles(Properties properties)
|
private static Properties |
findPropFiles(Properties properties)
|
private static String |
findPropWT()
|
static void |
generateHomeLink(Properties prop,
Locale locale,
OutputStream os)
|
static void |
generateQueueManagerLink(Properties prop,
Locale locale,
OutputStream os)
|
static void |
generateSAHomeHREF(Properties prop,
Locale locale,
OutputStream os)
|
static void |
generateServerStatusLink(Properties prop,
Locale locale,
OutputStream os)
|
static String |
getBase()
|
static String |
getLocalLogEdit(Locale locale)
|
static String |
getLocalPropEdit(Locale locale)
|
static void |
getPopSABase(Properties prop,
Locale locale,
OutputStream os)
Get the URL to call popSM in the sysadm package. |
static void |
getRefreshRate(Properties prop,
Locale locale,
OutputStream os)
|
static void |
getServerRefreshTime(Properties prop,
Locale locale,
OutputStream os)
|
static String |
getServerStatus(Properties prop,
Locale locale)
|
static void |
getServStat(Properties prop,
Locale locale,
OutputStream os)
Get the Server status(localized string). |
static void |
insertBodyTags(Properties prop,
Locale locale,
OutputStream os)
Insert the body tags. |
static String |
insertHelp(Properties prop,
Locale locale,
OutputStream os)
This method will build URL for Help
|
static String |
insertHome(Properties prop,
Locale locale,
OutputStream os)
This method will build URL for Home entry in navigation bar
|
static String[][] |
insertLogs(Locale locale)
|
static String |
insertLogs(Properties prop,
Locale locale,
OutputStream os)
Insert the names of the log files. |
static void |
insertNodes(Properties prop,
Locale locale,
OutputStream os)
This method will build Navigation bar. |
static String[][] |
insertProperties(Locale locale)
|
static String |
insertProperties(Properties prop,
Locale locale,
OutputStream os)
Insert the names of the properties files. |
static String |
insertQueueMgr(Properties prop,
Locale locale,
OutputStream os)
Insert link to the Queue Manager
|
static void |
popSM(String action,
String user)
|
static void |
popSM(SysAdminRequest request,
SysAdminResponse response)
Public method to handle stop/start/restart calls. |
static void |
printSAHomePage(SysAdminRequest req,
SysAdminResponse resp)
Bring up the System Admin home page. |
protected static String |
replacePathSeparators(String s)
|
private static boolean |
restart_MS(String user)
|
private static boolean |
restart_SM(String user)
|
private static boolean |
saveChanges(String user)
|
private static String[] |
sortLogs(Properties prop)
|
private static String[] |
sortProps(Properties prop)
|
private static boolean |
start_MS(String user)
|
private static boolean |
start_SM(String user)
|
private static boolean |
stop_MS(String port,
String codebase)
|
private static boolean |
stop_SM()
|
private static boolean |
stop_SM(String port,
String codebase)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionID
private static final String versionID
- See Also:
- Constant Field Values
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
AUTH_RESOURCE
private static final String AUTH_RESOURCE
- See Also:
- Constant Field Values
wt_home
protected static final String wt_home
exec_base
protected static final String exec_base
codebase_location
protected static final String codebase_location
logs_dir
protected static final String logs_dir
thisClassName
private static final String thisClassName
view_mode
private static final int view_mode
help_url
private static final String help_url
propWT
protected static String propWT
refresh
private static int refresh
sysadm_names
private static final Vector sysadm_names
LINK_STYLE
private static String LINK_STYLE
STUB_REF
public static final String STUB_REF
- See Also:
- Constant Field Values
JSPLINK
private static String JSPLINK
SAHomePage
private SAHomePage()
- Uninstantiable class.
printSAHomePage
public static void printSAHomePage(SysAdminRequest req,
SysAdminResponse resp)
throws IOException,
WTException
Bring up the System Admin home page.
- Throws:
IOException
WTException
createBase
public static void createBase(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Get the base tag for the sysadm.
- Throws:
WTException
createQBase
public static void createQBase(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Get the base tag for the sysadm(put between quotes(').
- Throws:
WTException
getServStat
public static void getServStat(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Get the Server status(localized string).
- Throws:
WTException
getServerRefreshTime
public static void getServerRefreshTime(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
getServerStatus
public static String getServerStatus(Properties prop,
Locale locale)
throws WTException
- Throws:
WTException
insertBodyTags
public static void insertBodyTags(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Insert the body tags.
- Throws:
WTException
buildSMTree
public static String buildSMTree(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- This method will build tree of the available Server Manager Methods
- Throws:
WTException
getPopSABase
public static void getPopSABase(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Get the URL to call popSM in the sysadm package.
- Throws:
WTException
insertProperties
public static String insertProperties(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Insert the names of the properties files.
- Throws:
WTException
insertLogs
public static String insertLogs(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Insert the names of the log files.
- Throws:
WTException
insertQueueMgr
public static String insertQueueMgr(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Insert link to the Queue Manager
- Throws:
WTException
findPropFiles
private static Properties findPropFiles(Properties properties)
findLogFiles
private static Properties findLogFiles(Properties properties)
findPropWT
private static String findPropWT()
throws IOException
- Throws:
IOException
replacePathSeparators
protected static String replacePathSeparators(String s)
throws IOException
- Throws:
IOException
sortProps
private static String[] sortProps(Properties prop)
sortLogs
private static String[] sortLogs(Properties prop)
popSM
public static void popSM(SysAdminRequest request,
SysAdminResponse response)
throws IOException,
WTException
- Public method to handle stop/start/restart calls.
- Throws:
IOException
WTException
stop_SM
private static boolean stop_SM()
stop_SM
private static boolean stop_SM(String port,
String codebase)
start_SM
private static boolean start_SM(String user)
restart_SM
private static boolean restart_SM(String user)
stop_MS
private static boolean stop_MS(String port,
String codebase)
start_MS
private static boolean start_MS(String user)
restart_MS
private static boolean restart_MS(String user)
saveChanges
private static boolean saveChanges(String user)
throws IOException
- Throws:
IOException
insertHome
public static String insertHome(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- This method will build URL for Home entry in navigation bar
- Throws:
WTException
getRefreshRate
public static void getRefreshRate(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
generateServerStatusLink
public static void generateServerStatusLink(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
createEmptyLink
public static void createEmptyLink(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
generateSAHomeHREF
public static void generateSAHomeHREF(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
generateQueueManagerLink
public static void generateQueueManagerLink(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
generateHomeLink
public static void generateHomeLink(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- Throws:
WTException
insertHelp
public static String insertHelp(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- This method will build URL for Help
- Throws:
WTException
insertNodes
public static void insertNodes(Properties prop,
Locale locale,
OutputStream os)
throws WTException
- This method will build Navigation bar.
- Throws:
WTException
insertProperties
public static String[][] insertProperties(Locale locale)
throws WTException
- Throws:
WTException
getLocalPropEdit
public static String getLocalPropEdit(Locale locale)
insertLogs
public static String[][] insertLogs(Locale locale)
throws WTException
- Throws:
WTException
getLocalLogEdit
public static String getLocalLogEdit(Locale locale)
popSM
public static void popSM(String action,
String user)
throws IOException,
WTException
- Throws:
IOException
WTException
getBase
public static String getBase()