Class BaseGrantUserValve

java.lang.Object
com.easydesk.pipeline.AbstractDefaultValve
com.easydesk.workflow.pipeline.user.BaseGrantUserValve
All Implemented Interfaces:
Valve
Direct Known Subclasses:
GlobalGrantUserValve, GrantUserValve

public abstract class BaseGrantUserValve extends AbstractDefaultValve
사용자를 Module 에 Grant 할 때 처리
Version:
$Id: BaseGrantUserValve.java,v 1.18 2008/12/17 09:02:45 youngho Exp $
Author:
조 영 호
  • Field Details

  • Constructor Details

    • BaseGrantUserValve

      public BaseGrantUserValve()
  • Method Details

    • execute

      protected abstract void execute(PipelineData pipelineData) throws Exception
      DOCUMENT ME!
      Specified by:
      execute in class AbstractDefaultValve
      Parameters:
      pipelineData - DOCUMENT ME!
      Throws:
      Exception - DOCUMENT ME!
    • prepareUserItem

      protected Item prepareUserItem(EasyDeskUser user, Module module, ActivitySet activitySet, AttributeOption option) throws Exception
      UserItem 을 준비한다.
      Parameters:
      user - generated item user
      module -
      activitySet -
      option - role option
      Returns:
      UserType Item
      Throws:
      Exception
    • getRoles

      protected List<Role> getRoles(EasyDeskUser user, Module module) throws TorqueException
      사용자의 Module 에서의 역할을 database 에서 구한다.
      Parameters:
      user -
      module -
      Returns:
      roles list
      Throws:
      TorqueException
    • updateRoles

      protected List<Role> updateRoles(EasyDeskUser user, Module module, Role grantRole) throws TorqueException
      EASYDESK-5730 현재 가지고 있는 Role 과 추가되는 Role 을 포함한 List 를 만든다. 이때 한 RoleSet 에는 unique 한 Role 을 보장한다. 즉 Guest/Member/Staff/Owner, HelpDesk,Supervisor,Root 인 경우 Member, HelpDesk 2개의 Role 은 가질 수 있으나 Member, Staff 은 허용하지 않는다. 즉 이 Method 는 이러한 동작을 보장한다.
      Parameters:
      user -
      module -
      grantRole -
      Throws:
      TorqueException
    • grantUser

      public void grantUser(EasyDeskUser user, Module module, Role role, ActivitySet activitySet) throws Exception
      사용자에게 Module 의 역할을 부여한다. inviteUser 등 다른 Process 에서 사용자를 grant 할 때 적용된다.
      Parameters:
      user - 대상자
      module -
      role -
      activitySet -
      Throws:
      Exception