Class AbstractSkillsStepObserver

All Implemented Interfaces:
Observer, LogEnabled, Prioritizable, Supporter<Event>, Contextualizable, Serviceable
Direct Known Subclasses:
AbstractContentSkillStep1Observer, DeleteContentSkillStep2Observer, UpdateContentSkillStep2Observer, UpdateProgramSkillStep1Observer, UpdateProgramSkillStep2Observer

public abstract class AbstractSkillsStepObserver extends AbstractSkillsObserver implements Contextualizable
Abstract observer to prepare skills step observer when a content is updated
  • Field Details

  • Constructor Details

  • Method Details

    • contextualize

      public void contextualize(Context context) throws ContextException
      Specified by:
      contextualize in interface Contextualizable
      Throws:
      ContextException
    • getSkillsToDelete

      protected ContentValue[] getSkillsToDelete(ContentValue[] previousSkills, ContentValue[] currentSkills)
      Get the skills to delete
      Parameters:
      previousSkills - The previous skills
      currentSkills - The current skills
      Returns:
      The skills to delete
    • _getRequestAttribute

      protected <T> T _getRequestAttribute(String attributeName, String contentId)
      Get request attribute for a content
      Type Parameters:
      T - The type of results
      Parameters:
      attributeName - The name of the attribute
      contentId - The content identifier
      Returns:
      The value found in request or default value
    • _setRequestAttribute

      protected <T> void _setRequestAttribute(String attributeName, String contentId, T value)
      Set a request attribute for a content
      Type Parameters:
      T - The type of the attribute
      Parameters:
      attributeName - The name of the attribute
      contentId - The content identifier
      value - The value