Class NoDefault

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

    public class NoDefault
    extends PolicyDefault
    This class implements no default policy.
    Version:
    $Revision$, $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IConfigStore mConfig  
      protected java.util.Vector<java.lang.String> mNames  
      protected java.util.Vector<java.lang.String> mValues  
      static java.lang.String PROP_NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      NoDefault()  
    • 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 the configuration store of this default.
      java.lang.String getDefaultConfig​(java.lang.String name)  
      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.
      java.lang.String getValue​(java.lang.String name, java.util.Locale locale, com.netscape.certsrv.request.IRequest request)
      Retrieves the value of the given value property by name.
      com.netscape.certsrv.property.IDescriptor getValueDescriptor​(java.util.Locale locale, java.lang.String name)
      Retrieves the descriptor of the given property by name.
      java.util.Enumeration<java.lang.String> getValueNames()
      Retrieves a list of names of the property.
      void init​(IConfigStore config)
      Initializes this default policy.
      void populate​(com.netscape.certsrv.request.IRequest request)
      Populates the request with this policy default.
      void setConfig​(java.lang.String name, java.lang.String value)
      Sets configuration parameter.
      void setValue​(java.lang.String name, java.util.Locale locale, com.netscape.certsrv.request.IRequest request, java.lang.String value)
      Sets the value of the given value property by name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mValues

        protected java.util.Vector<java.lang.String> mValues
      • mNames

        protected java.util.Vector<java.lang.String> mNames
    • Constructor Detail

      • NoDefault

        public NoDefault()
    • Method Detail

      • 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.
        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.
        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.
        Parameters:
        name - parameter name
        value - parameter value
        Throws:
        com.netscape.certsrv.property.EPropertyException - failed to set parameter
      • getDefaultConfig

        public java.lang.String getDefaultConfig​(java.lang.String name)
      • getConfig

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

        public void init​(IConfigStore config)
                  throws com.netscape.certsrv.profile.EProfileException
        Description copied from class: PolicyDefault
        Initializes this default policy.
        Specified by:
        init in class PolicyDefault
        Parameters:
        config - configuration store for this default
        Throws:
        com.netscape.certsrv.profile.EProfileException - failed to initialize
      • populate

        public void populate​(com.netscape.certsrv.request.IRequest request)
                      throws com.netscape.certsrv.profile.EProfileException
        Populates the request with this policy default.
        Specified by:
        populate in class PolicyDefault
        Parameters:
        request - request to be populated
        Throws:
        com.netscape.certsrv.profile.EProfileException - failed to populate
      • getValueNames

        public java.util.Enumeration<java.lang.String> getValueNames()
        Description copied from class: PolicyDefault
        Retrieves a list of names of the property.
        Specified by:
        getValueNames in class PolicyDefault
        Returns:
        a list of property names. The values are of type java.lang.String
      • getValueDescriptor

        public com.netscape.certsrv.property.IDescriptor getValueDescriptor​(java.util.Locale locale,
                                                                            java.lang.String name)
        Description copied from class: PolicyDefault
        Retrieves the descriptor of the given property by name. The descriptor contains syntax information.
        Specified by:
        getValueDescriptor in class PolicyDefault
        Parameters:
        locale - locale of the end user
        name - name of property
        Returns:
        descriptor of the property
      • setValue

        public void setValue​(java.lang.String name,
                             java.util.Locale locale,
                             com.netscape.certsrv.request.IRequest request,
                             java.lang.String value)
                      throws com.netscape.certsrv.property.EPropertyException
        Description copied from class: PolicyDefault
        Sets the value of the given value property by name.
        Specified by:
        setValue in class PolicyDefault
        Parameters:
        name - name of property
        locale - locale of the end user
        request - request
        value - value to be set in the given request
        Throws:
        com.netscape.certsrv.property.EPropertyException - failed to set property
      • getValue

        public java.lang.String getValue​(java.lang.String name,
                                         java.util.Locale locale,
                                         com.netscape.certsrv.request.IRequest request)
        Description copied from class: PolicyDefault
        Retrieves the value of the given value property by name.
        Specified by:
        getValue in class PolicyDefault
        Parameters:
        name - name of property
        locale - locale of the end user
        request - request
      • getText

        public java.lang.String getText​(java.util.Locale locale)
        Description copied from class: PolicyDefault
        Retrieves the localizable description of this policy.
        Specified by:
        getText in class PolicyDefault
        Parameters:
        locale - locale of the end user
        Returns:
        localized description of this default policy
      • getName

        public java.lang.String getName​(java.util.Locale locale)
        Description copied from class: PolicyDefault
        Retrieves the localizable name of this policy.
        Specified by:
        getName in class PolicyDefault
        Parameters:
        locale - locale of the end user
        Returns:
        localized name of this default policy