Class MWFResponsible

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_WF_Responsible, I_Persistent, Evaluatee, ImmutablePOSupport

public class MWFResponsible extends X_AD_WF_Responsible implements ImmutablePOSupport
Extended Workflow Responsible model for AD_WF_Responsible
Version:
$Id: MWFResponsible.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MWFResponsible

      public MWFResponsible(Properties ctx, String AD_WF_Responsible_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      AD_WF_Responsible_UU - UUID key
      trxName - Transaction
    • MWFResponsible

      public MWFResponsible(Properties ctx, int AD_WF_Responsible_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_WF_Responsible_ID - id
      trxName - transaction
    • MWFResponsible

      public MWFResponsible(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MWFResponsible

      public MWFResponsible(MWFResponsible copy)
      Copy constructor
      Parameters:
      copy -
    • MWFResponsible

      public MWFResponsible(Properties ctx, MWFResponsible copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MWFResponsible

      public MWFResponsible(Properties ctx, MWFResponsible copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • get

      public static MWFResponsible get(int AD_WF_Responsible_ID)
      Get WF Responsible from Cache (immutable)
      Parameters:
      AD_WF_Responsible_ID - id
      Returns:
      MWFResponsible
    • get

      public static MWFResponsible get(Properties ctx, int AD_WF_Responsible_ID, PO po)
      Get WF Responsible from Cache (immutable)
      Parameters:
      ctx - context
      AD_WF_Responsible_ID - id
      Returns:
      MWFResponsible
    • getCopy

      public static MWFResponsible getCopy(Properties ctx, int AD_WF_Responsible_ID, String trxName)
      Get updateable copy of MWFResponsible from cache
      Parameters:
      ctx -
      AD_WF_Responsible_ID -
      trxName -
      Returns:
      MWFResponsible
    • isInvoker

      public boolean isInvoker()
      Invoker - return true if no user and no role
      Returns:
      true if invoker
    • isRole

      public boolean isRole()
      Is Role Responsible Type
      Returns:
      true if role
    • getRole

      public MRole getRole()
      Get reference role instance
      Returns:
      true if role
    • isHuman

      public boolean isHuman()
      Is Human Responsible Type
      Returns:
      true if human
    • isOrganization

      public boolean isOrganization()
      Is Org Responsible Type
      Returns:
      true if Org
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      true if can be saved
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_WF_Responsible
      Returns:
      info
    • isManual

      public boolean isManual()
      Is manual responsible type
      Returns:
      true if this is manual responsible type
    • markImmutable

      public MWFResponsible markImmutable()
      Description copied from interface: ImmutablePOSupport
      mark PO as immutable
      Specified by:
      markImmutable in interface ImmutablePOSupport
      Returns:
      PO
    • getAD_User_ID

      public int getAD_User_ID()
      devCoffee override getAD_User_ID para primeiro verificar o campo Script, executar a SQL e somente usar o campo AD_User_ID fixo se no conseguir executar / retornar valor do SQL
      Specified by:
      getAD_User_ID in interface I_AD_WF_Responsible
      Overrides:
      getAD_User_ID in class X_AD_WF_Responsible
      Returns:
      User within the system - Internal or Business Partner Contact
    • getAD_Role_ID

      public int getAD_Role_ID()
      devCoffee override getAD_Role_ID para primeiro verificar o campo Script, executar a SQL e somente usar o campo AD_Role_ID fixo se no conseguir executar / retornar valor do SQL
      Specified by:
      getAD_Role_ID in interface I_AD_WF_Responsible
      Overrides:
      getAD_Role_ID in class X_AD_WF_Responsible
      Returns:
      Responsibility Role
    • getPo

      public PO getPo()
      Returns:
      the po
    • setPo

      public void setPo(PO po)
      Parameters:
      po - the po to set