Enum WikiEventEmitter

    • Method Detail

      • values

        public static WikiEventEmitter[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (WikiEventEmitter c : WikiEventEmitter.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static WikiEventEmitter valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fireWorkflowEvent

        public static WorkflowEvent fireWorkflowEvent​(java.lang.Object src,
                                                      int type)
        Fires a Workflow Event from provided source and workflow type.
        Parameters:
        src - the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.
        type - the type of event
        Returns:
        fired WorkflowEvent or null if the WikiEventEmitter instance hasn't listeners attached.
      • fireWorkflowEvent

        public static WorkflowEvent fireWorkflowEvent​(java.lang.Object src,
                                                      int type,
                                                      java.lang.Object... args)
        Fires a Workflow Event from provided source and workflow type.
        Parameters:
        src - the source of the event, which can be any object: a wiki page, group or authentication/authentication/group manager.
        type - the type of event
        Returns:
        fired WorkflowEvent or null if the WikiEventEmitter instance hasn't listeners attached.