Class PWResetAdminLog
- java.lang.Object
-
- com.sun.identity.password.ui.model.PWResetAdminLog
-
- All Implemented Interfaces:
ConfigurationListener
public class PWResetAdminLog extends Object implements ConfigurationListener
PWResetAdminLog
defines the methods to log messages to password reset log file.
-
-
Field Summary
Fields Modifier and Type Field Description protected ResourceBundle
rb
Resource bundle object
-
Constructor Summary
Constructors Constructor Description PWResetAdminLog(SSOToken token)
Constructs a logger object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doLog(String msgString)
Writes a log record to the password reset log file.void
doLog(String key, String message)
Writes a log record to the password reset log file.void
doLogKey(String key)
Writes a log record to the password reset log file.boolean
isEnabled()
Returns true if logging is enabled.void
notifyChanges()
This method will be call if configuration changed.
-
-
-
Field Detail
-
rb
protected ResourceBundle rb
Resource bundle object
-
-
Constructor Detail
-
PWResetAdminLog
public PWResetAdminLog(SSOToken token)
Constructs a logger object- Parameters:
token
- a valid SSO Token object
-
-
Method Detail
-
doLogKey
public void doLogKey(String key)
Writes a log record to the password reset log file. The key to the message to be written is passed in and will be read from the password reset properties file.- Parameters:
key
- to look up in the properties file
-
doLog
public void doLog(String key, String message)
Writes a log record to the password reset log file. The message to be written is built from a key and a message The key is used to access the properties file.- Parameters:
key
- to look up in the properties filemessage
- to write with the key
-
doLog
public void doLog(String msgString)
Writes a log record to the password reset log file. The message text which will be written to the log file is passed in to this method and must be localized already.- Parameters:
msgString
- string which is to be written to the password reset log file
-
isEnabled
public boolean isEnabled()
Returns true if logging is enabled.- Returns:
- true if logging is enabled
-
notifyChanges
public void notifyChanges()
Description copied from interface:ConfigurationListener
This method will be call if configuration changed.- Specified by:
notifyChanges
in interfaceConfigurationListener
-
-