Class X_AD_Role

java.lang.Object
org.compiere.model.PO
org.compiere.model.X_AD_Role
All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_Role, I_Persistent, Evaluatee
Direct Known Subclasses:
MRole

public class X_AD_Role extends PO implements I_AD_Role, I_Persistent
Generated Model for AD_Role
Version:
Release 11 - $Id$
Author:
iDempiere (generated)
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • get_AccessLevel

      protected int get_AccessLevel()
      AccessLevel
      Specified by:
      get_AccessLevel in class PO
      Returns:
      6 - System - Client
    • initPO

      protected POInfo initPO(Properties ctx)
      Load Meta Data
      Specified by:
      initPO in class PO
      Parameters:
      ctx - context
      Returns:
      POInfo
    • toString

      public String toString()
      Description copied from class: PO
      String representation
      Overrides:
      toString in class PO
      Returns:
      String representation
    • setAD_Role_ID

      public void setAD_Role_ID(int AD_Role_ID)
      Set Role.
      Specified by:
      setAD_Role_ID in interface I_AD_Role
      Parameters:
      AD_Role_ID - Responsibility Role
    • getAD_Role_ID

      public int getAD_Role_ID()
      Get Role.
      Specified by:
      getAD_Role_ID in interface I_AD_Role
      Returns:
      Responsibility Role
    • setAD_Role_UU

      public void setAD_Role_UU(String AD_Role_UU)
      Set AD_Role_UU.
      Specified by:
      setAD_Role_UU in interface I_AD_Role
      Parameters:
      AD_Role_UU - AD_Role_UU
    • getAD_Role_UU

      public String getAD_Role_UU()
      Get AD_Role_UU.
      Specified by:
      getAD_Role_UU in interface I_AD_Role
      Returns:
      AD_Role_UU
    • getAD_Tree_Menu

      public I_AD_Tree getAD_Tree_Menu() throws RuntimeException
      Specified by:
      getAD_Tree_Menu in interface I_AD_Role
      Throws:
      RuntimeException
    • setAD_Tree_Menu_ID

      public void setAD_Tree_Menu_ID(int AD_Tree_Menu_ID)
      Set Menu Tree.
      Specified by:
      setAD_Tree_Menu_ID in interface I_AD_Role
      Parameters:
      AD_Tree_Menu_ID - Tree of the menu
    • getAD_Tree_Menu_ID

      public int getAD_Tree_Menu_ID()
      Get Menu Tree.
      Specified by:
      getAD_Tree_Menu_ID in interface I_AD_Role
      Returns:
      Tree of the menu
    • getAD_Tree_Org

      public I_AD_Tree getAD_Tree_Org() throws RuntimeException
      Specified by:
      getAD_Tree_Org in interface I_AD_Role
      Throws:
      RuntimeException
    • setAD_Tree_Org_ID

      public void setAD_Tree_Org_ID(int AD_Tree_Org_ID)
      Set Organization Tree.
      Specified by:
      setAD_Tree_Org_ID in interface I_AD_Role
      Parameters:
      AD_Tree_Org_ID - Trees are used for (financial) reporting and security access (via role)
    • getAD_Tree_Org_ID

      public int getAD_Tree_Org_ID()
      Get Organization Tree.
      Specified by:
      getAD_Tree_Org_ID in interface I_AD_Role
      Returns:
      Trees are used for (financial) reporting and security access (via role)
    • setAllow_Info_Account

      public void setAllow_Info_Account(boolean Allow_Info_Account)
      Set Allow Info Account.
      Specified by:
      setAllow_Info_Account in interface I_AD_Role
      Parameters:
      Allow_Info_Account - Allow Info Account
    • isAllow_Info_Account

      public boolean isAllow_Info_Account()
      Get Allow Info Account.
      Specified by:
      isAllow_Info_Account in interface I_AD_Role
      Returns:
      Allow Info Account
    • setAllow_Info_Asset

      public void setAllow_Info_Asset(boolean Allow_Info_Asset)
      Set Allow Info Asset.
      Specified by:
      setAllow_Info_Asset in interface I_AD_Role
      Parameters:
      Allow_Info_Asset - Allow Info Asset
    • isAllow_Info_Asset

      public boolean isAllow_Info_Asset()
      Get Allow Info Asset.
      Specified by:
      isAllow_Info_Asset in interface I_AD_Role
      Returns:
      Allow Info Asset
    • setAllow_Info_BPartner

      public void setAllow_Info_BPartner(boolean Allow_Info_BPartner)
      Set Allow Info BPartner.
      Specified by:
      setAllow_Info_BPartner in interface I_AD_Role
      Parameters:
      Allow_Info_BPartner - Allow Info BPartner
    • isAllow_Info_BPartner

      public boolean isAllow_Info_BPartner()
      Get Allow Info BPartner.
      Specified by:
      isAllow_Info_BPartner in interface I_AD_Role
      Returns:
      Allow Info BPartner
    • setAllow_Info_InOut

      public void setAllow_Info_InOut(boolean Allow_Info_InOut)
      Set Allow Info InOut.
      Specified by:
      setAllow_Info_InOut in interface I_AD_Role
      Parameters:
      Allow_Info_InOut - Allow Info InOut
    • isAllow_Info_InOut

      public boolean isAllow_Info_InOut()
      Get Allow Info InOut.
      Specified by:
      isAllow_Info_InOut in interface I_AD_Role
      Returns:
      Allow Info InOut
    • setAllow_Info_Invoice

      public void setAllow_Info_Invoice(boolean Allow_Info_Invoice)
      Set Allow Info Invoice.
      Specified by:
      setAllow_Info_Invoice in interface I_AD_Role
      Parameters:
      Allow_Info_Invoice - Allow Info Invoice
    • isAllow_Info_Invoice

      public boolean isAllow_Info_Invoice()
      Get Allow Info Invoice.
      Specified by:
      isAllow_Info_Invoice in interface I_AD_Role
      Returns:
      Allow Info Invoice
    • setAllow_Info_Order

      public void setAllow_Info_Order(boolean Allow_Info_Order)
      Set Allow Info Order.
      Specified by:
      setAllow_Info_Order in interface I_AD_Role
      Parameters:
      Allow_Info_Order - Allow Info Order
    • isAllow_Info_Order

      public boolean isAllow_Info_Order()
      Get Allow Info Order.
      Specified by:
      isAllow_Info_Order in interface I_AD_Role
      Returns:
      Allow Info Order
    • setAllow_Info_Payment

      public void setAllow_Info_Payment(boolean Allow_Info_Payment)
      Set Allow Info Payment.
      Specified by:
      setAllow_Info_Payment in interface I_AD_Role
      Parameters:
      Allow_Info_Payment - Allow Info Payment
    • isAllow_Info_Payment

      public boolean isAllow_Info_Payment()
      Get Allow Info Payment.
      Specified by:
      isAllow_Info_Payment in interface I_AD_Role
      Returns:
      Allow Info Payment
    • setAllow_Info_Product

      public void setAllow_Info_Product(boolean Allow_Info_Product)
      Set Allow Info Product.
      Specified by:
      setAllow_Info_Product in interface I_AD_Role
      Parameters:
      Allow_Info_Product - Allow Info Product
    • isAllow_Info_Product

      public boolean isAllow_Info_Product()
      Get Allow Info Product.
      Specified by:
      isAllow_Info_Product in interface I_AD_Role
      Returns:
      Allow Info Product
    • setAllow_Info_Resource

      public void setAllow_Info_Resource(boolean Allow_Info_Resource)
      Set Allow Info Resource.
      Specified by:
      setAllow_Info_Resource in interface I_AD_Role
      Parameters:
      Allow_Info_Resource - Allow Info Resource
    • isAllow_Info_Resource

      public boolean isAllow_Info_Resource()
      Get Allow Info Resource.
      Specified by:
      isAllow_Info_Resource in interface I_AD_Role
      Returns:
      Allow Info Resource
    • setAllow_Info_Schedule

      public void setAllow_Info_Schedule(boolean Allow_Info_Schedule)
      Set Allow Info Schedule.
      Specified by:
      setAllow_Info_Schedule in interface I_AD_Role
      Parameters:
      Allow_Info_Schedule - Allow Info Schedule
    • isAllow_Info_Schedule

      public boolean isAllow_Info_Schedule()
      Get Allow Info Schedule.
      Specified by:
      isAllow_Info_Schedule in interface I_AD_Role
      Returns:
      Allow Info Schedule
    • setAmtApproval

      public void setAmtApproval(BigDecimal AmtApproval)
      Set Approval Amount.
      Specified by:
      setAmtApproval in interface I_AD_Role
      Parameters:
      AmtApproval - The approval amount limit for this role
    • getAmtApproval

      public BigDecimal getAmtApproval()
      Get Approval Amount.
      Specified by:
      getAmtApproval in interface I_AD_Role
      Returns:
      The approval amount limit for this role
    • setAmtApprovalAccum

      public void setAmtApprovalAccum(BigDecimal AmtApprovalAccum)
      Set Approval Amount Accumulated.
      Specified by:
      setAmtApprovalAccum in interface I_AD_Role
      Parameters:
      AmtApprovalAccum - The approval amount limit for this role accumulated on a period
    • getAmtApprovalAccum

      public BigDecimal getAmtApprovalAccum()
      Get Approval Amount Accumulated.
      Specified by:
      getAmtApprovalAccum in interface I_AD_Role
      Returns:
      The approval amount limit for this role accumulated on a period
    • getC_Currency

      public I_C_Currency getC_Currency() throws RuntimeException
      Specified by:
      getC_Currency in interface I_AD_Role
      Throws:
      RuntimeException
    • setC_Currency_ID

      public void setC_Currency_ID(int C_Currency_ID)
      Set Currency.
      Specified by:
      setC_Currency_ID in interface I_AD_Role
      Parameters:
      C_Currency_ID - The Currency for this record
    • getC_Currency_ID

      public int getC_Currency_ID()
      Get Currency.
      Specified by:
      getC_Currency_ID in interface I_AD_Role
      Returns:
      The Currency for this record
    • setConfirmQueryRecords

      public void setConfirmQueryRecords(int ConfirmQueryRecords)
      Set Confirm Query Records.
      Specified by:
      setConfirmQueryRecords in interface I_AD_Role
      Parameters:
      ConfirmQueryRecords - Require Confirmation if more records will be returned by the query (If not defined 500)
    • getConfirmQueryRecords

      public int getConfirmQueryRecords()
      Get Confirm Query Records.
      Specified by:
      getConfirmQueryRecords in interface I_AD_Role
      Returns:
      Require Confirmation if more records will be returned by the query (If not defined 500)
    • setDaysApprovalAccum

      public void setDaysApprovalAccum(int DaysApprovalAccum)
      Set Days Approval Accumulated.
      Specified by:
      setDaysApprovalAccum in interface I_AD_Role
      Parameters:
      DaysApprovalAccum - The days approval indicates the days to take into account to verify the accumulated approval amount.
    • getDaysApprovalAccum

      public int getDaysApprovalAccum()
      Get Days Approval Accumulated.
      Specified by:
      getDaysApprovalAccum in interface I_AD_Role
      Returns:
      The days approval indicates the days to take into account to verify the accumulated approval amount.
    • setDescription

      public void setDescription(String Description)
      Set Description.
      Specified by:
      setDescription in interface I_AD_Role
      Parameters:
      Description - Optional short description of the record
    • getDescription

      public String getDescription()
      Get Description.
      Specified by:
      getDescription in interface I_AD_Role
      Returns:
      Optional short description of the record
    • setIsAccessAdvanced

      public void setIsAccessAdvanced(boolean IsAccessAdvanced)
      Set Access Advanced.
      Specified by:
      setIsAccessAdvanced in interface I_AD_Role
      Parameters:
      IsAccessAdvanced - Access Advanced
    • isAccessAdvanced

      public boolean isAccessAdvanced()
      Get Access Advanced.
      Specified by:
      isAccessAdvanced in interface I_AD_Role
      Returns:
      Access Advanced
    • setIsAccessAllOrgs

      public void setIsAccessAllOrgs(boolean IsAccessAllOrgs)
      Set Access all Orgs.
      Specified by:
      setIsAccessAllOrgs in interface I_AD_Role
      Parameters:
      IsAccessAllOrgs - Access all Organizations (no org access control) of the tenant
    • isAccessAllOrgs

      public boolean isAccessAllOrgs()
      Get Access all Orgs.
      Specified by:
      isAccessAllOrgs in interface I_AD_Role
      Returns:
      Access all Organizations (no org access control) of the tenant
    • setIsCanApproveOwnDoc

      public void setIsCanApproveOwnDoc(boolean IsCanApproveOwnDoc)
      Set Approve own Documents.
      Specified by:
      setIsCanApproveOwnDoc in interface I_AD_Role
      Parameters:
      IsCanApproveOwnDoc - Users with this role can approve their own documents
    • isCanApproveOwnDoc

      public boolean isCanApproveOwnDoc()
      Get Approve own Documents.
      Specified by:
      isCanApproveOwnDoc in interface I_AD_Role
      Returns:
      Users with this role can approve their own documents
    • setIsCanExport

      public void setIsCanExport(boolean IsCanExport)
      Set Can Export.
      Specified by:
      setIsCanExport in interface I_AD_Role
      Parameters:
      IsCanExport - Users with this role can export data
    • isCanExport

      public boolean isCanExport()
      Get Can Export.
      Specified by:
      isCanExport in interface I_AD_Role
      Returns:
      Users with this role can export data
    • setIsCanReport

      public void setIsCanReport(boolean IsCanReport)
      Set Can Report.
      Specified by:
      setIsCanReport in interface I_AD_Role
      Parameters:
      IsCanReport - Users with this role can create reports
    • isCanReport

      public boolean isCanReport()
      Get Can Report.
      Specified by:
      isCanReport in interface I_AD_Role
      Returns:
      Users with this role can create reports
    • setIsChangeLog

      public void setIsChangeLog(boolean IsChangeLog)
      Set Maintain Change Log.
      Specified by:
      setIsChangeLog in interface I_AD_Role
      Parameters:
      IsChangeLog - Maintain a log of changes
    • isChangeLog

      public boolean isChangeLog()
      Get Maintain Change Log.
      Specified by:
      isChangeLog in interface I_AD_Role
      Returns:
      Maintain a log of changes
    • setIsClientAdministrator

      public void setIsClientAdministrator(boolean IsClientAdministrator)
      Set Tenant Administrator.
      Specified by:
      setIsClientAdministrator in interface I_AD_Role
      Parameters:
      IsClientAdministrator - This role is a tenant administrator
    • isClientAdministrator

      public boolean isClientAdministrator()
      Get Tenant Administrator.
      Specified by:
      isClientAdministrator in interface I_AD_Role
      Returns:
      This role is a tenant administrator
    • setIsDiscountAllowedOnTotal

      public void setIsDiscountAllowedOnTotal(boolean IsDiscountAllowedOnTotal)
      Set Is Discount Allowed On Total.
      Specified by:
      setIsDiscountAllowedOnTotal in interface I_AD_Role
      Parameters:
      IsDiscountAllowedOnTotal - Is Discount Allowed On Total
    • isDiscountAllowedOnTotal

      public boolean isDiscountAllowedOnTotal()
      Get Is Discount Allowed On Total.
      Specified by:
      isDiscountAllowedOnTotal in interface I_AD_Role
      Returns:
      Is Discount Allowed On Total
    • setIsDiscountUptoLimitPrice

      public void setIsDiscountUptoLimitPrice(boolean IsDiscountUptoLimitPrice)
      Set Is Discount Up to Limit Price.
      Specified by:
      setIsDiscountUptoLimitPrice in interface I_AD_Role
      Parameters:
      IsDiscountUptoLimitPrice - Is Discount Up to Limit Price
    • isDiscountUptoLimitPrice

      public boolean isDiscountUptoLimitPrice()
      Get Is Discount Up to Limit Price.
      Specified by:
      isDiscountUptoLimitPrice in interface I_AD_Role
      Returns:
      Is Discount Up to Limit Price
    • setIsManual

      public void setIsManual(boolean IsManual)
      Set Manual.
      Specified by:
      setIsManual in interface I_AD_Role
      Parameters:
      IsManual - This is a manual process
    • isManual

      public boolean isManual()
      Get Manual.
      Specified by:
      isManual in interface I_AD_Role
      Returns:
      This is a manual process
    • setIsMasterRole

      public void setIsMasterRole(boolean IsMasterRole)
      Set Master Role.
      Specified by:
      setIsMasterRole in interface I_AD_Role
      Parameters:
      IsMasterRole - A master role cannot be assigned to users, it is intended to define access to menu option and documents and inherit to other roles
    • isMasterRole

      public boolean isMasterRole()
      Get Master Role.
      Specified by:
      isMasterRole in interface I_AD_Role
      Returns:
      A master role cannot be assigned to users, it is intended to define access to menu option and documents and inherit to other roles
    • setIsMenuAutoExpand

      public void setIsMenuAutoExpand(boolean IsMenuAutoExpand)
      Set Auto expand menu.
      Specified by:
      setIsMenuAutoExpand in interface I_AD_Role
      Parameters:
      IsMenuAutoExpand - If ticked, the menu is automatically expanded
    • isMenuAutoExpand

      public boolean isMenuAutoExpand()
      Get Auto expand menu.
      Specified by:
      isMenuAutoExpand in interface I_AD_Role
      Returns:
      If ticked, the menu is automatically expanded
    • setIsPersonalAccess

      public void setIsPersonalAccess(boolean IsPersonalAccess)
      Set Personal Access.
      Specified by:
      setIsPersonalAccess in interface I_AD_Role
      Parameters:
      IsPersonalAccess - Allow access to all personal records
    • isPersonalAccess

      public boolean isPersonalAccess()
      Get Personal Access.
      Specified by:
      isPersonalAccess in interface I_AD_Role
      Returns:
      Allow access to all personal records
    • setIsPersonalLock

      public void setIsPersonalLock(boolean IsPersonalLock)
      Set Personal Lock.
      Specified by:
      setIsPersonalLock in interface I_AD_Role
      Parameters:
      IsPersonalLock - Allow users with role to lock access to personal records
    • isPersonalLock

      public boolean isPersonalLock()
      Get Personal Lock.
      Specified by:
      isPersonalLock in interface I_AD_Role
      Returns:
      Allow users with role to lock access to personal records
    • setIsShowAcct

      public void setIsShowAcct(boolean IsShowAcct)
      Set Show Accounting.
      Specified by:
      setIsShowAcct in interface I_AD_Role
      Parameters:
      IsShowAcct - Users with this role can see accounting information
    • isShowAcct

      public boolean isShowAcct()
      Get Show Accounting.
      Specified by:
      isShowAcct in interface I_AD_Role
      Returns:
      Users with this role can see accounting information
    • setIsUseUserOrgAccess

      public void setIsUseUserOrgAccess(boolean IsUseUserOrgAccess)
      Set Use User Org Access.
      Specified by:
      setIsUseUserOrgAccess in interface I_AD_Role
      Parameters:
      IsUseUserOrgAccess - Use Org Access defined by user instead of Role Org Access
    • isUseUserOrgAccess

      public boolean isUseUserOrgAccess()
      Get Use User Org Access.
      Specified by:
      isUseUserOrgAccess in interface I_AD_Role
      Returns:
      Use Org Access defined by user instead of Role Org Access
    • setMaxQueryRecords

      public void setMaxQueryRecords(int MaxQueryRecords)
      Set Max Query Records.
      Specified by:
      setMaxQueryRecords in interface I_AD_Role
      Parameters:
      MaxQueryRecords - If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records
    • getMaxQueryRecords

      public int getMaxQueryRecords()
      Get Max Query Records.
      Specified by:
      getMaxQueryRecords in interface I_AD_Role
      Returns:
      If defined, you cannot query more records as defined - the query criteria needs to be changed to query less records
    • setName

      public void setName(String Name)
      Set Name.
      Specified by:
      setName in interface I_AD_Role
      Parameters:
      Name - Alphanumeric identifier of the entity
    • getName

      public String getName()
      Get Name.
      Specified by:
      getName in interface I_AD_Role
      Returns:
      Alphanumeric identifier of the entity
    • getKeyNamePair

      public KeyNamePair getKeyNamePair()
      Get Record ID/ColumnName
      Returns:
      ID/ColumnName pair
    • setOverwritePriceLimit

      public void setOverwritePriceLimit(boolean OverwritePriceLimit)
      Set Overwrite Price Limit.
      Specified by:
      setOverwritePriceLimit in interface I_AD_Role
      Parameters:
      OverwritePriceLimit - Overwrite Price Limit if the Price List enforces the Price Limit
    • isOverwritePriceLimit

      public boolean isOverwritePriceLimit()
      Get Overwrite Price Limit.
      Specified by:
      isOverwritePriceLimit in interface I_AD_Role
      Returns:
      Overwrite Price Limit if the Price List enforces the Price Limit
    • setPredefinedContextVariables

      public void setPredefinedContextVariables(String PredefinedContextVariables)
      Set Predefined Context Variables.
      Specified by:
      setPredefinedContextVariables in interface I_AD_Role
      Parameters:
      PredefinedContextVariables - Predefined context variables to inject when opening a menu entry or a window
    • getPredefinedContextVariables

      public String getPredefinedContextVariables()
      Get Predefined Context Variables.
      Specified by:
      getPredefinedContextVariables in interface I_AD_Role
      Returns:
      Predefined context variables to inject when opening a menu entry or a window
    • setPreferenceType

      public void setPreferenceType(String PreferenceType)
      Set Preference Level.
      Specified by:
      setPreferenceType in interface I_AD_Role
      Parameters:
      PreferenceType - Determines what preferences the user can set
    • getPreferenceType

      public String getPreferenceType()
      Get Preference Level.
      Specified by:
      getPreferenceType in interface I_AD_Role
      Returns:
      Determines what preferences the user can set
    • setRoleType

      public void setRoleType(String RoleType)
      Set Role Type.
      Specified by:
      setRoleType in interface I_AD_Role
      Parameters:
      RoleType - Role Type
    • getRoleType

      public String getRoleType()
      Get Role Type.
      Specified by:
      getRoleType in interface I_AD_Role
      Returns:
      Role Type
    • getSupervisor

      public I_AD_User getSupervisor() throws RuntimeException
      Specified by:
      getSupervisor in interface I_AD_Role
      Throws:
      RuntimeException
    • setSupervisor_ID

      public void setSupervisor_ID(int Supervisor_ID)
      Set Supervisor.
      Specified by:
      setSupervisor_ID in interface I_AD_Role
      Parameters:
      Supervisor_ID - Supervisor for this user/organization - used for escalation and approval
    • getSupervisor_ID

      public int getSupervisor_ID()
      Get Supervisor.
      Specified by:
      getSupervisor_ID in interface I_AD_Role
      Returns:
      Supervisor for this user/organization - used for escalation and approval
    • setUserDiscount

      public void setUserDiscount(BigDecimal UserDiscount)
      Set User Discount.
      Specified by:
      setUserDiscount in interface I_AD_Role
      Parameters:
      UserDiscount - User Discount
    • getUserDiscount

      public BigDecimal getUserDiscount()
      Get User Discount.
      Specified by:
      getUserDiscount in interface I_AD_Role
      Returns:
      User Discount
    • setUserLevel

      public void setUserLevel(String UserLevel)
      Set User Level.
      Specified by:
      setUserLevel in interface I_AD_Role
      Parameters:
      UserLevel - System Tenant Organization
    • getUserLevel

      public String getUserLevel()
      Get User Level.
      Specified by:
      getUserLevel in interface I_AD_Role
      Returns:
      System Tenant Organization