Class CalendarsTabClientSideElement

    • Method Detail

      • getWorkflowsInfo

        public Map<String,​ObjectgetWorkflowsInfo()
        Get info about each existing workflow.
        Returns:
        a list of map containing workflow info. For each entry, the key is the workflow name and the value is a map containing the necessary workflow data
      • _addWorkflowInfo

        protected void _addWorkflowInfo​(Map<String,​Object> result,
                                        com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
        Add workflow info to the result map
        Parameters:
        result - The result map to populate
        workflowDescriptor - the workflow descriptor
      • _addStepsInfo

        protected void _addStepsInfo​(Map<String,​Object> result,
                                     com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
        Add steps info to the result map
        Parameters:
        result - The result map to populate
        workflowDescriptor - the workflow descriptor
      • _addStepInfo

        protected void _addStepInfo​(Map<String,​Object> stepMap,
                                    com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor,
                                    com.opensymphony.workflow.loader.StepDescriptor step)
        Add step info to the map of steps
        Parameters:
        stepMap - The step map to populate
        workflowDescriptor - the workflow descriptor
        step - the step descriptor
      • _addActionsInfo

        protected void _addActionsInfo​(Map<String,​Object> result,
                                       com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor)
        Add actions info to the result map
        Parameters:
        result - The result map to populate
        workflowDescriptor - the workflow descriptor
      • _addActionInfo

        protected void _addActionInfo​(Map<String,​Object> actionMap,
                                      com.opensymphony.workflow.loader.WorkflowDescriptor workflowDescriptor,
                                      com.opensymphony.workflow.loader.ActionDescriptor action)
        Add action info to the map of actions
        Parameters:
        actionMap - The action map to populate
        workflowDescriptor - the workflow descriptor
        action - the action descriptor
      • getSubWorkflowNames

        public Set<StringgetSubWorkflowNames​(String calendarId)
        Retrieves the child workflow names for a given calendar
        Parameters:
        calendarId - The calendar identifier
        Returns:
        The child workflow names
      • getSubWorkflowNames

        public Set<StringgetSubWorkflowNames​(Calendar calendar)
        Retrieves the child workflow names for a given calendar
        Parameters:
        calendar - The calendar
        Returns:
        The child workflow names
      • getWorkflowState

        public Map<String,​ObjectgetWorkflowState​(String eventId,
                                                         String workflowName,
                                                         int workflowStepId,
                                                         List<Integer> workflowActionsIds)
        Get the workflow state of an event
        Parameters:
        eventId - The id of the event
        workflowName - The workflow name
        workflowStepId - The workflow step id
        workflowActionsIds - The list of action ids
        Returns:
        The workflow state