Class RuleContext


  • public class RuleContext
    extends Object
    Contains all of the information needed by a rule executor, including the rule-specific configuration, current and updated content, and any other meta-data needed.
    Author:
    Ales Justin
    • Constructor Detail

      • RuleContext

        public RuleContext​(String groupId,
                           String artifactId,
                           ArtifactType artifactType,
                           String configuration,
                           ContentHandle currentContent,
                           ContentHandle updatedContent)
        Constructor.
        Parameters:
        groupId -
        artifactId -
        artifactType -
        configuration -
        currentContent -
        updatedContent -
    • Method Detail

      • getGroupId

        public String getGroupId()
        Returns:
        the groupId
      • getArtifactId

        public String getArtifactId()
        Returns:
        the artifactId
      • getArtifactType

        public ArtifactType getArtifactType()
        Returns:
        the artifactType
      • getConfiguration

        public String getConfiguration()
        Returns:
        the configuration
      • getCurrentContent

        public ContentHandle getCurrentContent()
        Returns:
        the currentContent
      • getUpdatedContent

        public ContentHandle getUpdatedContent()
        Returns:
        the updatedContent