ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.access/AD Role
AD_Role
- Name:AD_Role
- Classname:ADRole
This table contains the following columns:
Name | Nullable | Data Type | Description
|
IsActive | No | CHAR (1) | There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions. |
IsAdvanced | No | CHAR (1) | Automatic (non manual) advanced roles are granted with features checked as advanced. |
AmtApproval | Yes | DECIMAL | The Approval Amount field indicates the amount limit this Role has for approval of documents. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
IS_Client_Admin | No | CHAR (1) | Defines the role as an administrator of the client it belongs to. |
CreatedBy | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
C_Currency_ID | Yes | VARCHAR (32) | Indicates the currency to be used when processing this document. |
Description | Yes | NVARCHAR (255) | A description is limited to 255 characters. |
IsPortal | No | CHAR (1) | If checked, this role will have a simplified (portal) interface, where it only has available the workspace widgets. |
IsWebServiceEnabled | No | CHAR (1) | If checked, web services will be able to obtain data for users with this role. It applies to both JSON REST and XML REST web services |
Isrestrictbackend | Yes | CHAR (1) | If checked, this role will not have access to the backend. It will however have access to other applications (such as the WebPOS) |
IsManual | Yes | CHAR (1) | The Manual check box indicates if the process will done manually. |
Name | No | NVARCHAR (60) | A more descriptive identifier (that does need to be unique) of a record/document that is used as a default search option along with the search key (that is unique and mostly shorter). It is up to 60 characters in length. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
IsPortalAdmin | No | CHAR (1) | If checked, the Portal Role will have Portal Administrator privileges |
AD_Tree_Menu_ID | Yes | VARCHAR (32) | Tree Menu |
Processing | Yes | CHAR (1) | When this field is set as 'Y' a process is being performed on this record. |
Recalculatepermissions | Yes | VARCHAR (1) | This process recalculates role permissions, based on the role inheritance defined. Depending on the role type the behavior varies:
- If the role is a template one, the permissions for the role will be recalculated and also propagated to every role which is currently inheriting from this template. - If the role is not marked as template, just the permissions for this role are recalculated. For details - http://wiki.openbravo.com/wiki/Role#Permissions_Inheritance |
AD_Role_ID | No | VARCHAR (32) | The Role determines security and access a user who has this Role will have in the System. |
IsTemplate | No | CHAR (1) | Template is checked when the element is used as a template. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
UpdatedBy | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
UserLevel | No | VARCHAR (60) | The User Level field determines if users of this Role will have access to System level data, Organization level data, Client level data or Client and Organization level data. |
Columns
Active
- Physical column name: IsActive
- Property Name: active
- Reference: YesNo
- Default value: Y
Advanced
- Physical column name: IsAdvanced
- Property Name: advanced
- Reference: YesNo
- Default value: N
Approval Amount
- Physical column name: AmtApproval
- Property Name: approvalAmount
- Reference: Amount
- Default value: 0
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
It has a validation "AD_Client Security validation", with the following code
AD_Client.AD_Client_ID in (@#User_Client@)
ClientAdmin
- Physical column name: IS_Client_Admin
- Property Name: clientAdmin
- Reference: YesNo
Created By
- Physical column name: CreatedBy
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Currency
- Physical column name: C_Currency_ID
- Property Name: currency
- Reference: TableDir
Foreign key column to C_Currency table, (column: C_Currency_ID)
Description
- Physical column name: Description
- Property Name: description
- Reference: String
For Portal Users
- Physical column name: IsPortal
- Property Name: forPortalUsers
- Reference: YesNo
- Default value: N
IsWebServiceEnabled
- Physical column name: IsWebServiceEnabled
- Property Name: isWebServiceEnabled
- Reference: YesNo
- Default value: N
Isrestrictbackend
- Physical column name: Isrestrictbackend
- Property Name: isrestrictbackend
- Reference: YesNo
- Default value: N
Manual
- Physical column name: IsManual
- Property Name: manual
- Reference: YesNo
- Default value: Y
Name
- Physical column name: Name
- Property Name: name
- Reference: String
- This column is part of the table's identifier
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Portal Admin
- Physical column name: IsPortalAdmin
- Property Name: portalAdmin
- Reference: YesNo
- Default value: N
Primary Tree Menu
- Physical column name: AD_Tree_Menu_ID
- Property Name: primaryTreeMenu
- Reference: Table
Foreign key column to AD_Tree table, (column: AD_Tree_ID)
It has a validation "AD_Tree Menu", with the following code
AD_Tree.TreeType='MM'
Process Now
- Physical column name: Processing
- Property Name: processNow
- Reference: Button
RecalculatePermissions
- Physical column name: Recalculatepermissions
- Property Name: recalculatePermissions
- Reference: Button
Role
- Physical column name: AD_Role_ID
- Property Name: id
- Reference: ID
Template
- Physical column name: IsTemplate
- Property Name: template
- Reference: YesNo
- Default value: N
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: UpdatedBy
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
User Level
- Physical column name: UserLevel
- Property Name: userLevel
- Reference: List
- Default value: O
List values: AD_Role User Level
The allowed values for this list are:
- S (System)
- C (Client)
- O (Organization)
- CO (Client+Organization)
Other Info
Check Constraints
These are the check constraints for this table:
- AD_ROLE_ADV_CHECK: ISADVANCED IN ('Y', 'N')
- AD_ROLE_ISACTIVE_CHECK: ISACTIVE IN ('Y', 'N')
- AD_ROLE_ISCLIENTADMIN_CHECK: IS_CLIENT_ADMIN IN ('Y', 'N')
- AD_ROLE_ISPORTAL_CHECK: ISPORTAL IN ('Y', 'N')
- AD_ROLE_ISPORTALADMIN_CHECK: ISPORTALADMIN IN ('Y', 'N')
- AD_ROLE_ISTEMPLATE_CHECK: ISTEMPLATE IN ('Y', 'N')
- AD_ROLE_ISWEBSERVICEENABLED: ISWEBSERVICEENABLED IN ('Y', 'N')
- AD_ROLE_MANUALTEMPLATE_CHECK: ISTEMPLATE = 'Y' AND ISMANUAL = 'Y' OR ISTEMPLATE <> 'Y'
- AD_ROLE_RESTRICTBACKEND: ISRESTRICTBACKEND IN ('Y', 'N')
![]() | Back to org.openbravo.model.ad.access |