Class NoConstraint

  • All Implemented Interfaces:
    IConfigTemplate

    public class NoConstraint
    extends PolicyConstraint
    This class implements no constraint.
    Version:
    $Revision$, $Date$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CONFIG_NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      NoConstraint()  
    • 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.
      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()
      Returns the corresponding configuration store of this constraint policy.
      java.lang.String getDefaultConfig​(java.lang.String name)  
      java.lang.String getName​(java.util.Locale locale)
      Returns localized name of this constraint.
      java.lang.String getText​(java.util.Locale locale)
      Returns localized description of this constraint.
      void init​(IConfigStore config)
      Initializes this constraint policy.
      boolean isApplicable​(PolicyDefault def)
      Checks if this constraint is applicable to the given default policy.
      void setConfig​(java.lang.String name, java.lang.String value)
      Sets configuration parameter.
      void validate​(IRequest request)
      Validates the request.
      • Methods inherited from class java.lang.Object

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

      • NoConstraint

        public NoConstraint()
    • Method Detail

      • getConfigNames

        public java.util.Enumeration<java.lang.String> getConfigNames()
        Description copied from interface: IConfigTemplate
        Returns a list of configuration parameter names.
        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.
        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.
        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.
        Returns:
        parameter
      • getDefaultConfig

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

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

        public java.lang.String getName​(java.util.Locale locale)
        Description copied from class: PolicyConstraint
        Returns localized name of this constraint.
        Specified by:
        getName in class PolicyConstraint
        Parameters:
        locale - locale of the end-user
        Returns:
        localized name of this constraint
      • isApplicable

        public boolean isApplicable​(PolicyDefault def)
        Description copied from class: PolicyConstraint
        Checks if this constraint is applicable to the given default policy.
        Specified by:
        isApplicable in class PolicyConstraint
        Parameters:
        def - default policy to be checked
        Returns:
        true if this constraint can be applied to the given default policy