Class EditContentByCopyFunction

    • Method Detail

      • execute

        public void execute​(Map transientVars,
                            Map args,
                            com.opensymphony.module.propertyset.PropertySet ps)
                     throws com.opensymphony.workflow.WorkflowException
        Specified by:
        execute in interface com.opensymphony.workflow.FunctionProvider
        Throws:
        com.opensymphony.workflow.WorkflowException
      • _duplicateMetadata

        protected void _duplicateMetadata​(Map transientVars,
                                          ModifiableContent content)
                                   throws com.opensymphony.workflow.WorkflowException
        Duplicate the currently edited content by copying the metadata of the source content.
        Parameters:
        transientVars - the transient variables.
        content - the destination content.
        Throws:
        com.opensymphony.workflow.WorkflowException - if an error occurs.
      • _updateCommonMetadata

        protected void _updateCommonMetadata​(ModifiableContent content,
                                             UserIdentity user)
                                      throws com.opensymphony.workflow.WorkflowException
        Updates common metadata (last contributor, last modification date, ...).
        Parameters:
        content - the content.
        user - the user.
        Throws:
        com.opensymphony.workflow.WorkflowException - if an error occurs.