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)
      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)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record 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