com.netscape.cms.profile.updater
Class SubsystemGroupUpdater

java.lang.Object
  extended by com.netscape.cms.profile.updater.SubsystemGroupUpdater
All Implemented Interfaces:
IProfileUpdater, IConfigTemplate

public class SubsystemGroupUpdater
extends java.lang.Object
implements IProfileUpdater

This updater class will create the new user to the subsystem group and then add the subsystem certificate to the user.

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $

Field Summary
 IConfigStore mConfig
           
 java.util.Vector mConfigNames
           
 EnrollProfile mEnrollProfile
           
 IProfile mProfile
           
 ILogger mSignedAuditLogger
           
 java.util.Vector mValueNames
           
 
Constructor Summary
SubsystemGroupUpdater()
           
 
Method Summary
 java.lang.String getConfig(java.lang.String name)
          Retrieves configuration parameter by name.
 IDescriptor getConfigDescriptor(java.util.Locale locale, java.lang.String name)
          Returns the descriptors of configuration parameter.
 java.util.Enumeration getConfigNames()
          Returns a list of configuration parameter names.
 IConfigStore getConfigStore()
          Retrieves configuration store.
 java.lang.String getName(java.util.Locale locale)
          Retrieves the localizable name of this policy.
 java.lang.String getText(java.util.Locale locale)
          Retrieves the localizable description of this policy.
 void init(IProfile profile, IConfigStore config)
          Initializes this default policy.
 void setConfig(java.lang.String name, java.lang.String value)
          Sets configuration parameter.
 void update(IRequest req, RequestStatus status)
          Notifies of state change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mProfile

public IProfile mProfile

mEnrollProfile

public EnrollProfile mEnrollProfile

mConfig

public IConfigStore mConfig

mSignedAuditLogger

public ILogger mSignedAuditLogger

mConfigNames

public java.util.Vector mConfigNames

mValueNames

public java.util.Vector mValueNames
Constructor Detail

SubsystemGroupUpdater

public SubsystemGroupUpdater()
Method Detail

init

public void init(IProfile profile,
                 IConfigStore config)
          throws EProfileException
Description copied from interface: IProfileUpdater
Initializes this default policy.

Specified by:
init in interface IProfileUpdater
Parameters:
profile - owner of this policy
config - configuration store
Throws:
EProfileException - failed to initialize

getConfigNames

public java.util.Enumeration getConfigNames()
Description copied from interface: IConfigTemplate
Returns a list of configuration parameter names.

Specified by:
getConfigNames in interface IConfigTemplate
Returns:
parameter names

getConfigDescriptor

public IDescriptor getConfigDescriptor(java.util.Locale locale,
                                       java.lang.String name)
Description copied from interface: IConfigTemplate
Returns the descriptors of configuration parameter.

Specified by:
getConfigDescriptor in interface IConfigTemplate
Parameters:
locale - user locale
name - configuration parameter name
Returns:
descriptor

setConfig

public void setConfig(java.lang.String name,
                      java.lang.String value)
               throws EPropertyException
Description copied from interface: IConfigTemplate
Sets configuration parameter.

Specified by:
setConfig in interface IConfigTemplate
Parameters:
name - parameter name
value - parameter value
Throws:
EPropertyException - failed to set parameter

getConfig

public java.lang.String getConfig(java.lang.String name)
Description copied from interface: IConfigTemplate
Retrieves configuration parameter by name.

Specified by:
getConfig in interface IConfigTemplate
Returns:
parameter

getConfigStore

public IConfigStore getConfigStore()
Description copied from interface: IProfileUpdater
Retrieves configuration store.

Specified by:
getConfigStore in interface IProfileUpdater
Returns:
configuration store

update

public void update(IRequest req,
                   RequestStatus status)
            throws EProfileException
Description copied from interface: IProfileUpdater
Notifies of state change.

Specified by:
update in interface IProfileUpdater
Parameters:
req - request
status - The status to check for.
Throws:
EProfileException - failed to populate

getName

public java.lang.String getName(java.util.Locale locale)
Description copied from interface: IProfileUpdater
Retrieves the localizable name of this policy.

Specified by:
getName in interface IProfileUpdater
Parameters:
locale - user locale
Returns:
output policy name

getText

public java.lang.String getText(java.util.Locale locale)
Description copied from interface: IProfileUpdater
Retrieves the localizable description of this policy.

Specified by:
getText in interface IProfileUpdater
Parameters:
locale - user locale
Returns:
output policy description