Skip navigation links
oracle.ldap.util
Class ProfileMapfile
java.lang.Object
oracle.ldap.util.ProfileMapfile
-
public class ProfileMapfile
- extends java.lang.Object
Utility class to create map file based on master file by replacing the macro string pattern in the master map file with replacement strings.
Constructor Summary |
ProfileMapfile(java.lang.String directoryRootPath, java.lang.String masterMapfileRelativePath, java.lang.String masterMapfileName, java.lang.String mapfileToCreateRelativePath, java.lang.String mapfileNameToCreate, java.util.Hashtable replaceMapping, java.util.logging.Logger lgr)
Creates a mapfile in the $ORACLE_HOME/ldap/log directory by replacing the Macro String(s) in the master map file, mapfileTemplate, located in $ORACLE_HOME/ldap/odi/conf. |
Method Summary |
void |
CreateMapfileBasedOnTemplate()
Creates the map file based on a master template file. |
java.lang.String |
getMapfileCreated()
Returns the full path of the map file created by a given ProfileMapfile instance. |
void |
ProfileMapfile(java.lang.String directoryRootPath, java.lang.String masterMapfileRelativePath, java.lang.String masterMapfileName, java.lang.String mapfileToCreateRelativePath, java.lang.String mapfileNameToCreate, java.util.Hashtable replaceMapping)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_mapfileTemplate
protected java.lang.String m_mapfileTemplate
m_mapfileToCreate
protected java.lang.String m_mapfileToCreate
m_replaceMapping
protected java.util.Hashtable m_replaceMapping
ProfileMapfile
public ProfileMapfile(java.lang.String directoryRootPath,
java.lang.String masterMapfileRelativePath,
java.lang.String masterMapfileName,
java.lang.String mapfileToCreateRelativePath,
java.lang.String mapfileNameToCreate,
java.util.Hashtable replaceMapping,
java.util.logging.Logger lgr)
- Creates a mapfile in the $ORACLE_HOME/ldap/log directory by replacing the Macro String(s) in the master map file, mapfileTemplate, located in $ORACLE_HOME/ldap/odi/conf. The caller can specify multiple mappings.
- Parameters:
oracle_home:
- The orlace_home path that's usually set in environment variable The caller can use it for any home directory.
masterMapfileRelativePath:
- Where the master file is located. Must end with '/'.
masterMapfileName:
- The master map file, such as activeexp.map.master
mapfileToCreateRelativePath:
- where map file is created. Must end with '/'.
mapfileNameToCreate:
- The map file to be created, for example, activeexp.map
replaceMapping:
- hashtable with the key being the Macro String in the master map file, for instance, %OIDBASE%, %USERBASE%. The corresponding value is the replacement value.
ProfileMapfile
public void ProfileMapfile(java.lang.String directoryRootPath,
java.lang.String masterMapfileRelativePath,
java.lang.String masterMapfileName,
java.lang.String mapfileToCreateRelativePath,
java.lang.String mapfileNameToCreate,
java.util.Hashtable replaceMapping)
getMapfileCreated
public java.lang.String getMapfileCreated()
- Returns the full path of the map file created by a given ProfileMapfile instance. If CreateMapfileBasedOnTemplate() has not been called, return null.
CreateMapfileBasedOnTemplate
public void CreateMapfileBasedOnTemplate()
throws java.io.IOException,
java.io.FileNotFoundException,
ParameterException
- Creates the map file based on a master template file. Returns FileNotFoundException if master file is missing Returns IOException for all other file errors.
-
- Throws:
java.io.IOException
java.io.FileNotFoundException
ParameterException
Skip navigation links
Copyright © 1999, 2009 Oracle. All Rights Reserved.