Remote Systems
v6.4.1

com.ibm.etools.systems.core
Class SystemResourceManager

java.lang.Object
  extended bycom.ibm.etools.systems.core.SystemResourceManager
All Implemented Interfaces:
SystemResourceConstants

public class SystemResourceManager
extends Object
implements SystemResourceConstants

Static methods that manage the workbench resource tree for the remote systems project. All code in the framework uses this to access the file system for save/restore purposes. By limiting all access to one place, we simply changes should we decide to change the underlying file system map.

Assumptions

The following maps the file system folders to the methods to retrieve them... FOLDER METHOD TO RETRIEVE HANDLE ============================ =================================================== -RemoteSystemsConnections - getRemoteSystemsProject() | - getProfileFolders() to get all subfolders | .--- TypeFilters (folder) - getTypeFiltersFolder() | | | .--- SubSystemFactoryID1 (folder) - getTypeFiltersFolder(SubSystemFactory) | | .--- typefilters.xmi (file) | .--- SubSystemFactoryID2 (folder) | .--- typefilters.xmi (file) | .--- Team (folder) - getProfileFolder(SystemProfile/"team") | | | |--- profile.xmi(file) | | | |--- Connections (folder) - getConnectionsFolder(SystemProfile/SystemConnectionPool/"team") | | | - deduceConnectionNames(SystemProfile/SystemConnectionPool/"team") to get list of subfolder names | | | or getConnectionFolders(SystemProfile/SystemConnectionPool/"team") to get list of subfolder objects | | |--- conn1 (folder) - getConnectionFolder(SystemProfile/SystemConnectionPool/"team", SystemConnection/"conn1") | | | |---connection.xmi (file) | | | | - getSubSystemsFolders(SystemConnection conn1) to get all subfolders | | | .---SubSystemFactoryID1 (folder) - getSubSystemsFolder(SystemConnection conn1, SubSystemFactory/"SubSystemFactoryID1") | | | - deduceSubSystemFileNames(SystemConnection conn1, SubSystemFactory) to get list of file names | | | |---subsystem1.xmi (file) | | | .---subsystem2.xmi (file) | | | .---SubSystemFactoryID2 (folder) - getSubSystemsFolder(SystemConnection conn2, SubSystemFactory/"SubSystemFactoryID2") | | | |---subsystem1.xmi (file) | | | .---subsystem2.xmi (file) | | .--- conn2 (folder) - getConnectionFolder(SystemProfile/SystemConnectionPool/"team", SystemConnection/"conn2") | | |---connection.xmi (file) | | .---SubSystemFactoryID1 (folder) - getSubSystemsFolder(SystemConnection conn1, SubSystemFactory/"SubSystemFactoryID1") | | |---subsystem1.xmi (file) | | .---subsystem2.xmi (file) | | .---SubSystemFactoryID2 (folder) - getSubSystemsFolder(SystemConnection conn2, SubSystemFactory/"SubSystemFactoryID2") | | |---subsystem1.xmi (file) | | .---subsystem2.xmi (file) | | | .--- Filters (folder) - getFiltersFolder(SystemProfile/"team") | | | - getFiltersFolders(SystemProfile/"team") to get all subfolders | | |--- SubSystemFactoryID1 (folder) - getFilterPoolsFolder(SystemProfile/"team", SubSystemFactory) | | | | - getFilterPoolsFolders(SystemProfile/"team", SubSystemFactory) to get all subfolders | | | |--- FilterPool1 (folder) - getFilterPoolFolder(SystemProfile/"team", SubSystemFactory, SystemFilterPool/"FilterPool1") | | | | |--- filter1.xmi (file) | | | | .--- filter2.xmi (file) | | | .--- FilterPool2 (folder) - getFilterPoolFolder(SystemProfile/"team", SubSystemFactory, SystemFilterPool/"FilterPool2") | | | |--- filter1.xmi (file) | | | .--- filter2.xmi (file) | | | | | .--- SubSystemFactoryID2 (folder) - getFilterPoolsFolder(SystemProfile/"team", SubSystemFactory) | | | - getFilterPoolsFolders(SystemProfile/"team", SubSystemFactory) to get all subfolders | | |--- FilterPool1 (folder) - getFilterPoolFolder(SystemProfile/"team", SubSystemFactory, SystemFilterPool/"FilterPool1") | | | |--- filter1.xmi (file) | | | .--- filter2.xmi (file) | | .--- FilterPool2 (folder) - getFilterPoolFolder(SystemProfile/"team", SubSystemFactory, SystemFilterPool/"FilterPool2") | | |--- filter1.xmi (file) | | .--- filter2.xmi (file) | | | .--- UserActions (folder) - getUserActionsFolder(SystemProfile/"team") | | | .--- SubSystemFactoryID1 (folder) - getUserActionsFolder(SystemProfile/"team", SubSystemFactory) | | .--- actions.xml (file) | .--- SubSystemFactoryID2 (folder) | .--- actions.xml (file) | .--- CompileCommands (folder) - getCompileCommandsFolder(SystemProfile/"team") | | | .--- SubSystemFactoryID1 (folder) - getCompileCommandsFolder(SystemProfile/"team", SubSystemFactory) | | .--- compileCommands.xml (file) | .--- SubSystemFactoryID2 (folder) | .--- compileCommands.xml (file) | | | .--- Private (folder) - getProfileFolder(SystemProfile/"private") | ...repeat... | | | |--- Connections (folder) - getConnectionsFolder(SystemProfile/SystemConnectionPool/"private") | | | .--- Filters (folder) - getFiltersFolder(SystemProfile/SystemFilterPoolManager/"private") | | - getFiltersFolders(SystemProfile/SystemFilterPoolManager/"private") to get all subfolders ...


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.systems.core.SystemResourceConstants
RESOURCE_COMPILECOMMANDS_FOLDER_NAME, RESOURCE_CONNECTIONS_FOLDER_NAME, RESOURCE_FILTERS_FOLDER_NAME, RESOURCE_PRIVATEPROFILE_NAME, RESOURCE_PROJECT_NAME, RESOURCE_TEAMPROFILE_NAME, RESOURCE_TEMPFILES_PROJECT_NAME, RESOURCE_TYPE_FILTERS_FOLDER_NAME, RESOURCE_USERACTIONS_FOLDER_NAME
 
Constructor Summary
SystemResourceManager()
           
 
Method Summary
static String addPathTerminator(String path)
          Ensure given path ends with path separator.
static void addResourceChangeListener(IResourceChangeListener l)
          Register a listener for resource change events on objects in our remote system project.
protected static IProject createRemoteSystemsProjectInternal(IProject proj)
          Create a remote systems project, plus the core subfolders required.
static String[] deduceConnectionNames(String profileName)
          Return a guess at the names of all connections given a profile name.
static String[] deduceConnectionNames(SystemConnectionPool pool)
          Return a guess at the names of all connections given a connnection pool.
static String[] deduceConnectionNames(SystemProfile profile)
          Return a guess at the names of all connections given a profile.
static String[] deduceProfileNames()
          Guess the profile names by itemizing all the root folders, and assuming any such folder that has a file in it named "profile.xmi" is indeed a profile whose name equals the folder name.
static String[] deduceSubSystemsNames(SystemConnection conn, SubSystemFactory ssFactory)
          Return the names of the files in the folder for a particular subsystem factory for a particular connection.
static void deleteFile(IFolder folder, String fileName)
          Delete a file
static void deleteFolder(IFolder folder)
          Delete a folder
static void endResourceEventListening()
          End event listening.
static void ensureOnResourceEventListening()
          Ensure event listening is on.
protected static IFolder getCompileCommandsFolder(String profileName)
          Get compile commands root folder given a system profile name
static IFolder getCompileCommandsFolder(String profileName, String factoryId)
          Get compile commands root folder given a system profile name and subsystem factory Id.
static IFolder getCompileCommandsFolder(String profileName, SubSystemFactory ssFactory)
          Get compile commands root folder given a system profile name and subsystem factory
static IFolder getCompileCommandsFolder(SystemProfile profile, SubSystemFactory ssFactory)
          Get compile commands root folder given a system profile object and subsystem factory
static IFolder getConnectionFolder(String profileName, String connectionName)
          Get connection folder for a given profile name for a given connection name
static IFolder getConnectionFolder(SystemConnectionPool pool, String connectionName)
          Get connection folder for a given connection pool for a given connection name
static IFolder getConnectionFolder(SystemConnectionPool pool, SystemConnection connection)
          Get connection folder for a given connection pool for a given connection object
static IFolder getConnectionFolder(SystemProfile profile, String connectionName)
          Get connection folder for a given profile for a given connection name
static IFolder getConnectionFolder(SystemProfile profile, SystemConnection connection)
          Get connection folder for a given profile for a given connection object
protected static IFolder[] getConnectionFolders(IFolder parentFolder)
          Each root folder of the profile folder is assumed to be a connection, if it has a file named connection.xmi
static IFolder getConnectionsFolder(String profileName)
          Get connections folder for a given profile name
static IFolder getConnectionsFolder(SystemConnectionPool pool)
          Get connections folder for a given connection pool
static IFolder getConnectionsFolder(SystemProfile profile)
          Get connections folder for a given profile
static IFolder getFilterPoolFolder(String profileName, SubSystemFactory ssFactory, String poolFolderName)
          Get a folder pool folder that holds filter pools, given a profile name and a subsystem factory and filter pool's folder name
static IFolder getFilterPoolFolder(String profileName, SubSystemFactory ssFactory, SystemFilterPool pool)
          Get a folder pool folder that holds filter pools, given a profile name and a subsystem factory and filter pool
static IFolder getFilterPoolFolder(SystemProfile profile, SubSystemFactory ssFactory, String poolFolderName)
          Get a folder pool folder that holds filter pools, given a profile and a subsystem factory and filter pool's folder name
static IFolder getFilterPoolFolder(SystemProfile profile, SubSystemFactory ssFactory, SystemFilterPool pool)
          Get a filter pool folder that holds filters, given a profile and a subsystem factory and filter pool
static IFolder getFilterPoolsFolder(String profileName, SubSystemFactory ssFactory)
          Get filter pools folder for a given profile name and factory
static IFolder getFilterPoolsFolder(SystemProfile profile, SubSystemFactory ssFactory)
          Get filter pools folder for a given profile and factory
static IFolder[] getFilterPoolsFolders(String profileName, SubSystemFactory ssFactory)
          Get all subfolders of the filters folder for a given profile name and subsystem factory.
static IFolder[] getFilterPoolsFolders(SystemProfile profile, SubSystemFactory ssFactory)
          Get all subfolders in a filters folder for a given profile and subsystem factory Each folder represents a filter pool.
static IFolder getFiltersFolder(String profileName)
          Get filters folder for a given profile name
static IFolder getFiltersFolder(SystemProfile profile)
          Get filters folder for a given profile
static IFolder[] getFiltersFolders(String profileName)
          Get all subfolders of the filters folder for a given profile name.
static IFolder[] getFiltersFolders(SystemProfile profile)
          Get all subfolders of the filters folder for a given profile.
static String getFolderName(SubSystemFactory ssFactory)
          Map a subsystem factory object to a folder name
static String getFolderName(SystemConnection conn)
          Map a system connection object to a folder name
static String getFolderName(SystemFilterPool pool)
          Map a filter pool name to a folder name Current algorith is that pool name equals folder name, but we use this method to allow flexibility in the future.
static String getFolderPath(IFolder folder)
          Given any folder, return its path as a string.
static String getFolderPathWithTerminator(IFolder folder)
          Given any folder, return its path as a string, and an ending '\'
static IFolder getProfileFolder(String profileName)
          Get profiles folder for a given profile name
static IFolder getProfileFolder(SystemProfile profile)
          Get profiles folder for a given profile
static IFolder[] getProfileFolders()
          Each root folder of the project is assumed to be a profile, if it has a file named profile.xmi
static String getProfileName(SystemConnectionPool pool)
          Map a connection pool name to a profile name.
static String getProfileName(SystemFilterPoolManager mgr)
          Map a filter pool manager name to a profile name Current algorith is that manager name equals profile name, but we use this method to allow flexibility in the future.
static IProject getRemoteSystemsProject()
          Get the default remote systems project.
static IProject getRemoteSystemsTempFilesProject()
          Get the default remote systems temp files project.
protected static SystemResourceHelpers getResourceHelpers()
          Return singleton of resource helpers object
static IFolder getSubSystemsFolder(SystemConnection conn, String factoryFolderName)
          Return the folder containing subsystem objects for a given connection and given subsystem factory folder name
static IFolder getSubSystemsFolder(SystemConnection conn, SubSystemFactory ssFactory)
          Return the folder containing subsystem objects for a given connection and given subsystem factory.
static IFolder[] getSubSystemsFolders(SystemConnection conn)
          Get the folders inside a connection object folder.
static IFolder getTypeFiltersFolder()
          Get the typeFilters root folder
static IFolder getTypeFiltersFolder(String ssFactoryId)
          Get the typeFilters sub-folder per subsystem factory id
static IFolder getTypeFiltersFolder(SubSystemFactory ssFactory)
          Get the typeFilters sub-folder per subsystem factory object
protected static IFolder getUserActionsFolder(String profileName)
          Get user defined actions root folder given a system profile name
static IFolder getUserActionsFolder(String profileName, String factoryId)
          Get user defined actions root folder given a system profile name and subsystem factory Id.
static IFolder getUserActionsFolder(String profileName, SubSystemFactory ssFactory)
          Get user defined actions root folder given a system profile name and subsystem factory
static IFolder getUserActionsFolder(SystemProfile profile, SubSystemFactory ssFactory)
          Get user defined actions root folder given a system profile object and subsystem factory
static boolean isFirstTime()
          Return true if we just created the remote systems project for the first time.
static void removeResourceChangeListener(IResourceChangeListener l)
          Remove a listener for resource change events on an object in our remote system project.
static void renameFile(IFolder folder, String oldName, String newName)
          Rename a file
static void renameFolder(IFolder folder, String newName)
          Rename a folder
static void startResourceEventListening()
          Start event listening.
static boolean testIfResourceInUse(IResource resource)
          Test if a resource is in use, prior to attempting to rename or delete it.
static boolean testUserActionsFolder(String profileName, SubSystemFactory ssFactory)
          Test for existence of user defined actions root folder given a system profile name and subsystem factory
static void turnOffResourceEventListening()
          Turn off event listening.
static void turnOnResourceEventListening()
          Turn off event listening.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemResourceManager

public SystemResourceManager()
Method Detail

turnOffResourceEventListening

public static void turnOffResourceEventListening()
Turn off event listening. Please call this before do anything that modifies resources and turn it on again after.


turnOnResourceEventListening

public static void turnOnResourceEventListening()
Turn off event listening. Please call this after modifying resources.


ensureOnResourceEventListening

public static void ensureOnResourceEventListening()
Ensure event listening is on. Called at start of team synch action to be safe.


startResourceEventListening

public static void startResourceEventListening()
Start event listening. Requests to turn on and off are ignored until this is called, which is at the appropriate point in the startup sequence.


endResourceEventListening

public static void endResourceEventListening()
End event listening. Requests to turn on and off are ignored after this is called, which is at the appropriate point in the shutdown sequence.


addResourceChangeListener

public static void addResourceChangeListener(IResourceChangeListener l)
Register a listener for resource change events on objects in our remote system project. No attempt is made to filter the events, they are simply passed on and the listener can decide if the event applies to them or not.

However, the event will only be fired if a change is made to that resource outside of the normal activities of the Remote Systems Framework, and only for resources within the Remote Systems Connection project.


removeResourceChangeListener

public static void removeResourceChangeListener(IResourceChangeListener l)
Remove a listener for resource change events on an object in our remote system project.


getRemoteSystemsProject

public static IProject getRemoteSystemsProject()
Get the default remote systems project.

Returns:
IProject handle of the project. Use exists() to test existence.

getRemoteSystemsTempFilesProject

public static IProject getRemoteSystemsTempFilesProject()
Get the default remote systems temp files project.

Returns:
IProject handle of the project. Use exists() to test existence.

createRemoteSystemsProjectInternal

protected static IProject createRemoteSystemsProjectInternal(IProject proj)
Create a remote systems project, plus the core subfolders required.

Returns:
IProject handle of the project.

isFirstTime

public static boolean isFirstTime()
Return true if we just created the remote systems project for the first time. This call has the side effect of resetting the flag to false so it doesn't return true more than once, ever.


getProfileFolders

public static IFolder[] getProfileFolders()
Each root folder of the project is assumed to be a profile, if it has a file named profile.xmi


deduceProfileNames

public static String[] deduceProfileNames()
Guess the profile names by itemizing all the root folders, and assuming any such folder that has a file in it named "profile.xmi" is indeed a profile whose name equals the folder name.


getProfileFolder

public static IFolder getProfileFolder(SystemProfile profile)
Get profiles folder for a given profile


getProfileFolder

public static IFolder getProfileFolder(String profileName)
Get profiles folder for a given profile name


getConnectionsFolder

public static IFolder getConnectionsFolder(SystemProfile profile)
Get connections folder for a given profile


getConnectionsFolder

public static IFolder getConnectionsFolder(String profileName)
Get connections folder for a given profile name


getConnectionsFolder

public static IFolder getConnectionsFolder(SystemConnectionPool pool)
Get connections folder for a given connection pool


getConnectionFolder

public static IFolder getConnectionFolder(String profileName,
                                          String connectionName)
Get connection folder for a given profile name for a given connection name


getConnectionFolder

public static IFolder getConnectionFolder(SystemProfile profile,
                                          String connectionName)
Get connection folder for a given profile for a given connection name


getConnectionFolder

public static IFolder getConnectionFolder(SystemProfile profile,
                                          SystemConnection connection)
Get connection folder for a given profile for a given connection object


getConnectionFolder

public static IFolder getConnectionFolder(SystemConnectionPool pool,
                                          String connectionName)
Get connection folder for a given connection pool for a given connection name


getConnectionFolder

public static IFolder getConnectionFolder(SystemConnectionPool pool,
                                          SystemConnection connection)
Get connection folder for a given connection pool for a given connection object


getSubSystemsFolders

public static IFolder[] getSubSystemsFolders(SystemConnection conn)
Get the folders inside a connection object folder. There is one per subsystem factory, and they hold lists of subsystem objects for this connection.


getSubSystemsFolder

public static IFolder getSubSystemsFolder(SystemConnection conn,
                                          SubSystemFactory ssFactory)
Return the folder containing subsystem objects for a given connection and given subsystem factory.


getSubSystemsFolder

public static IFolder getSubSystemsFolder(SystemConnection conn,
                                          String factoryFolderName)
Return the folder containing subsystem objects for a given connection and given subsystem factory folder name


deduceSubSystemsNames

public static String[] deduceSubSystemsNames(SystemConnection conn,
                                             SubSystemFactory ssFactory)
Return the names of the files in the folder for a particular subsystem factory for a particular connection. These files are saved subsystem data.


deduceConnectionNames

public static String[] deduceConnectionNames(SystemProfile profile)
Return a guess at the names of all connections given a profile. Does this by examining names of all subfolders in the connections folder in the profile's folder.


deduceConnectionNames

public static String[] deduceConnectionNames(SystemConnectionPool pool)
Return a guess at the names of all connections given a connnection pool. Does this by examining names of all subfolders in the connections folder in the profile's folder.


deduceConnectionNames

public static String[] deduceConnectionNames(String profileName)
Return a guess at the names of all connections given a profile name. Does this by examining names of all subfolders in the connections folder in the profile's folder.


getConnectionFolders

protected static IFolder[] getConnectionFolders(IFolder parentFolder)
Each root folder of the profile folder is assumed to be a connection, if it has a file named connection.xmi


getFiltersFolder

public static IFolder getFiltersFolder(SystemProfile profile)
Get filters folder for a given profile


getFiltersFolder

public static IFolder getFiltersFolder(String profileName)
Get filters folder for a given profile name


getFiltersFolders

public static IFolder[] getFiltersFolders(SystemProfile profile)
Get all subfolders of the filters folder for a given profile. Eeach folder represents filter pool manager folder for a particular subsystem factory.


getFiltersFolders

public static IFolder[] getFiltersFolders(String profileName)
Get all subfolders of the filters folder for a given profile name. Eeach folder represents filter pool manager folder for a particular subsystem factory.


getFilterPoolsFolder

public static IFolder getFilterPoolsFolder(SystemProfile profile,
                                           SubSystemFactory ssFactory)
Get filter pools folder for a given profile and factory


getFilterPoolsFolder

public static IFolder getFilterPoolsFolder(String profileName,
                                           SubSystemFactory ssFactory)
Get filter pools folder for a given profile name and factory


getFilterPoolsFolders

public static IFolder[] getFilterPoolsFolders(SystemProfile profile,
                                              SubSystemFactory ssFactory)
Get all subfolders in a filters folder for a given profile and subsystem factory Each folder represents a filter pool.


getFilterPoolsFolders

public static IFolder[] getFilterPoolsFolders(String profileName,
                                              SubSystemFactory ssFactory)
Get all subfolders of the filters folder for a given profile name and subsystem factory. Each folder represents a filter pool.


getFilterPoolFolder

public static IFolder getFilterPoolFolder(SystemProfile profile,
                                          SubSystemFactory ssFactory,
                                          SystemFilterPool pool)
Get a filter pool folder that holds filters, given a profile and a subsystem factory and filter pool


getFilterPoolFolder

public static IFolder getFilterPoolFolder(String profileName,
                                          SubSystemFactory ssFactory,
                                          SystemFilterPool pool)
Get a folder pool folder that holds filter pools, given a profile name and a subsystem factory and filter pool


getFilterPoolFolder

public static IFolder getFilterPoolFolder(SystemProfile profile,
                                          SubSystemFactory ssFactory,
                                          String poolFolderName)
Get a folder pool folder that holds filter pools, given a profile and a subsystem factory and filter pool's folder name


getFilterPoolFolder

public static IFolder getFilterPoolFolder(String profileName,
                                          SubSystemFactory ssFactory,
                                          String poolFolderName)
Get a folder pool folder that holds filter pools, given a profile name and a subsystem factory and filter pool's folder name


getTypeFiltersFolder

public static IFolder getTypeFiltersFolder()
Get the typeFilters root folder


getTypeFiltersFolder

public static IFolder getTypeFiltersFolder(SubSystemFactory ssFactory)
Get the typeFilters sub-folder per subsystem factory object


getTypeFiltersFolder

public static IFolder getTypeFiltersFolder(String ssFactoryId)
Get the typeFilters sub-folder per subsystem factory id


getUserActionsFolder

protected static IFolder getUserActionsFolder(String profileName)
Get user defined actions root folder given a system profile name


getUserActionsFolder

public static IFolder getUserActionsFolder(SystemProfile profile,
                                           SubSystemFactory ssFactory)
Get user defined actions root folder given a system profile object and subsystem factory


getUserActionsFolder

public static IFolder getUserActionsFolder(String profileName,
                                           SubSystemFactory ssFactory)
Get user defined actions root folder given a system profile name and subsystem factory


testUserActionsFolder

public static boolean testUserActionsFolder(String profileName,
                                            SubSystemFactory ssFactory)
Test for existence of user defined actions root folder given a system profile name and subsystem factory


getUserActionsFolder

public static IFolder getUserActionsFolder(String profileName,
                                           String factoryId)
Get user defined actions root folder given a system profile name and subsystem factory Id. This is a special-needs method provided for the Import action processing, when a subsystem instance is not available.


getCompileCommandsFolder

protected static IFolder getCompileCommandsFolder(String profileName)
Get compile commands root folder given a system profile name


getCompileCommandsFolder

public static IFolder getCompileCommandsFolder(SystemProfile profile,
                                               SubSystemFactory ssFactory)
Get compile commands root folder given a system profile object and subsystem factory


getCompileCommandsFolder

public static IFolder getCompileCommandsFolder(String profileName,
                                               SubSystemFactory ssFactory)
Get compile commands root folder given a system profile name and subsystem factory


getCompileCommandsFolder

public static IFolder getCompileCommandsFolder(String profileName,
                                               String factoryId)
Get compile commands root folder given a system profile name and subsystem factory Id. This is a special-needs method provided for the Import action processing, when a subsystem instance is not available.


renameFolder

public static void renameFolder(IFolder folder,
                                String newName)
Rename a folder


deleteFolder

public static void deleteFolder(IFolder folder)
Delete a folder


renameFile

public static void renameFile(IFolder folder,
                              String oldName,
                              String newName)
Rename a file


deleteFile

public static void deleteFile(IFolder folder,
                              String fileName)
Delete a file


getProfileName

public static String getProfileName(SystemConnectionPool pool)
Map a connection pool name to a profile name. Current algorith is that pool name equals profile name, but we use this method to allow flexibility in the future.


getProfileName

public static String getProfileName(SystemFilterPoolManager mgr)
Map a filter pool manager name to a profile name Current algorith is that manager name equals profile name, but we use this method to allow flexibility in the future.


getFolderName

public static String getFolderName(SystemFilterPool pool)
Map a filter pool name to a folder name Current algorith is that pool name equals folder name, but we use this method to allow flexibility in the future.


getFolderName

public static String getFolderName(SystemConnection conn)
Map a system connection object to a folder name


getFolderName

public static String getFolderName(SubSystemFactory ssFactory)
Map a subsystem factory object to a folder name


getFolderPath

public static String getFolderPath(IFolder folder)
Given any folder, return its path as a string.


getFolderPathWithTerminator

public static String getFolderPathWithTerminator(IFolder folder)
Given any folder, return its path as a string, and an ending '\'


getResourceHelpers

protected static SystemResourceHelpers getResourceHelpers()
Return singleton of resource helpers object


addPathTerminator

public static String addPathTerminator(String path)
Ensure given path ends with path separator.


testIfResourceInUse

public static boolean testIfResourceInUse(IResource resource)
Test if a resource is in use, prior to attempting to rename or delete it.

Returns:
true if it is in use or read only, false if it is not.

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.