Class SubsystemGroupUpdater

  • All Implemented Interfaces:
    com.netscape.certsrv.property.IConfigTemplate, IProfileUpdater

    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$, $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.slf4j.Logger logger  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getConfig​(java.lang.String name)
      Retrieves configuration parameter by name.
      com.netscape.certsrv.property.IDescriptor getConfigDescriptor​(java.util.Locale locale, java.lang.String name)
      Returns the descriptors of configuration parameter.
      java.util.Enumeration<java.lang.String> 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​(Profile profile, IConfigStore config)
      Initializes this default policy.
      void setConfig​(java.lang.String name, java.lang.String value)
      Sets configuration parameter.
      void update​(com.netscape.certsrv.request.IRequest req, com.netscape.certsrv.request.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

      • logger

        public static org.slf4j.Logger logger
    • Constructor Detail

      • SubsystemGroupUpdater

        public SubsystemGroupUpdater()
    • Method Detail

      • init

        public void init​(Profile profile,
                         IConfigStore config)
                  throws com.netscape.certsrv.profile.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:
        com.netscape.certsrv.profile.EProfileException - failed to initialize
      • getConfigNames

        public java.util.Enumeration<java.lang.String> getConfigNames()
        Description copied from interface: com.netscape.certsrv.property.IConfigTemplate
        Returns a list of configuration parameter names.
        Specified by:
        getConfigNames in interface com.netscape.certsrv.property.IConfigTemplate
        Returns:
        parameter names
      • getConfigDescriptor

        public com.netscape.certsrv.property.IDescriptor getConfigDescriptor​(java.util.Locale locale,
                                                                             java.lang.String name)
        Description copied from interface: com.netscape.certsrv.property.IConfigTemplate
        Returns the descriptors of configuration parameter.
        Specified by:
        getConfigDescriptor in interface com.netscape.certsrv.property.IConfigTemplate
        Parameters:
        locale - user locale
        name - configuration parameter name
        Returns:
        descriptor
      • setConfig

        public void setConfig​(java.lang.String name,
                              java.lang.String value)
                       throws com.netscape.certsrv.property.EPropertyException
        Description copied from interface: com.netscape.certsrv.property.IConfigTemplate
        Sets configuration parameter.
        Specified by:
        setConfig in interface com.netscape.certsrv.property.IConfigTemplate
        Parameters:
        name - parameter name
        value - parameter value
        Throws:
        com.netscape.certsrv.property.EPropertyException - failed to set parameter
      • getConfig

        public java.lang.String getConfig​(java.lang.String name)
        Description copied from interface: com.netscape.certsrv.property.IConfigTemplate
        Retrieves configuration parameter by name.
        Specified by:
        getConfig in interface com.netscape.certsrv.property.IConfigTemplate
        Returns:
        parameter
      • update

        public void update​(com.netscape.certsrv.request.IRequest req,
                           com.netscape.certsrv.request.RequestStatus status)
                    throws com.netscape.certsrv.profile.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:
        com.netscape.certsrv.profile.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