Interface IPolicyConstraint

    • Method Detail

      • getConfigStore

        IConfigStore getConfigStore()
        Returns the corresponding configuration store of this constraint policy.
        Returns:
        config store of this constraint
      • validate

        void validate​(IRequest request)
               throws ERejectException
        Validates the request. The request is not modified during the validation.
        Parameters:
        request - request to be validated
        Throws:
        ERejectException - reject the given request
      • getText

        java.lang.String getText​(java.util.Locale locale)
        Returns localized description of this constraint.
        Parameters:
        locale - locale of the end-user
        Returns:
        localized description of this constraint
      • getName

        java.lang.String getName​(java.util.Locale locale)
        Returns localized name of this constraint.
        Parameters:
        locale - locale of the end-user
        Returns:
        localized name of this constraint
      • isApplicable

        boolean isApplicable​(IPolicyDefault def)
        Checks if this constraint is applicable to the given default policy.
        Parameters:
        def - default policy to be checked
        Returns:
        true if this constraint can be applied to the given default policy