Class Result

  • Direct Known Subclasses:
    ExecutionResult

    @Deprecated
    public class Result
    extends java.lang.Object
    Deprecated.
    Represents result of a plugin method invocation
    • Constructor Summary

      Constructors 
      Constructor Description
      Result()
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getMessages()
      Deprecated.
      Gets error messages associated with result
      java.lang.String getMessagesForDisplay()
      Deprecated.
      Formats the messages in the result to a suitable form so that it can be used in user interface.
      boolean isSuccessful()
      Deprecated.
      Checks if result is successful
      Result withErrorMessages​(java.lang.String... errors)
      Deprecated.
      Creates instance of result with specified errors
      Result withErrorMessages​(java.util.List<java.lang.String> errorList)
      Deprecated.
      Creates instance of result with specified errors
      Result withSuccessMessages​(java.lang.String... successMessages)
      Deprecated.
      Creates instance of result with specified success messages
      Result withSuccessMessages​(java.util.List<java.lang.String> successMessages)
      Deprecated.
      Creates instance of result with specified success messages
      • Methods inherited from class java.lang.Object

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

      • Result

        public Result()
        Deprecated.
    • Method Detail

      • isSuccessful

        public boolean isSuccessful()
        Deprecated.
        Checks if result is successful
        Returns:
        true if result successful
      • getMessages

        public java.util.List<java.lang.String> getMessages()
        Deprecated.
        Gets error messages associated with result
        Returns:
        error messages associated with result
      • withErrorMessages

        public Result withErrorMessages​(java.lang.String... errors)
        Deprecated.
        Creates instance of result with specified errors
        Parameters:
        errors - the errors with which instance should be created
        Returns:
        created instance
      • withErrorMessages

        public Result withErrorMessages​(java.util.List<java.lang.String> errorList)
        Deprecated.
        Creates instance of result with specified errors
        Parameters:
        errorList - the errors with which instance should be created
        Returns:
        created instance
      • withSuccessMessages

        public Result withSuccessMessages​(java.lang.String... successMessages)
        Deprecated.
        Creates instance of result with specified success messages
        Parameters:
        successMessages - the success messages with which instance should be created
        Returns:
        created instance
      • withSuccessMessages

        public Result withSuccessMessages​(java.util.List<java.lang.String> successMessages)
        Deprecated.
        Creates instance of result with specified success messages
        Parameters:
        successMessages - the success messages with which instance should be created
        Returns:
        created instance
      • getMessagesForDisplay

        public java.lang.String getMessagesForDisplay()
        Deprecated.
        Formats the messages in the result to a suitable form so that it can be used in user interface.
        Returns:
        a string containing the formatted message.