Class ModuleCategoryConditionValve

java.lang.Object
com.easydesk.pipeline.BranchPointValve
com.easydesk.pipeline.ConditionalValve
com.easydesk.workflow.pipeline.user.ModuleCategoryConditionValve
All Implemented Interfaces:
Valve

public class ModuleCategoryConditionValve extends ConditionalValve
GrantUser.xml 에서 사용자에게 역할을 부여하는 Module 의 Category ( bank, studygroup, usergroup ) 가 value 와 일치하면 sub pipeline 을 선택한다.

주의 : (old) Module.isItemBank() / isCategory() / isUserGroup() 이 현재 Module 에 없어서 지금은 항상 일치하지 않는다 ( null 을 돌려준다 ). Module 의 Category 판단 기준이 정해지면 matches(Module) 를 구현하면 된다.

(old) shouldInvoke(Pouch) -> (new) ConditionalValve.select(PipelineData)
Author:
Youngho Cho
  • Constructor Details

    • ModuleCategoryConditionValve

      public ModuleCategoryConditionValve()
  • Method Details

    • select

      protected Pipeline select(PipelineData pipelineData)
      Description copied from class: ConditionalValve
      Determine whether the contained valves should be run. Subclasses should implement this method.
      Specified by:
      select in class ConditionalValve
      Parameters:
      pipelineData - DOCUMENT ME!
      Returns:
      선택된 sub pipeline, 일치하지 않으면 null
    • matches

      protected boolean matches(Module module)
      Parameters:
      module -
      Returns:
      value 와 일치하는지