Create a Privacy Level Assignment Rule Entity
This section describes how a privacy level assignment rule entity can be created
What does this section cover?
Create a Privacy Level Assignment Rule Entity
In order for an entity to be available to Privacy Level Assignment Rule Mechanism, it has to meet the following conditions:
1. Data Object Class
The entity's DO class must implement:
- ICRMDOExplicitAccessibleEntity interface and its methods:
- setOwnedByGroup(CRMDOUnitGroup unitGroup)
- getOwnedByGroup()
- setPrivacyLevel(CRMDOPrivacyLevel privacyLevel)
- getPrivacyLevel()
- getType()
- Optionally one of ICRMDOAccountBasedEntity and ICRMDOCustomerBasedEntity interfaces:
- If the entity is related to an accounts receivable object it must implement ICRMDOAccountBasedEntity interface and its methods:
- setAccountReceivable(CRMDOAccountReceivable accountReceivable)
- getAccountReceivable()
- If the entity is related to a contact information object it must implement ICRMDOCustomerBasedEntity interface and its methods:
- setContactInformation(CRMDOContactInformation contactInformation)
- getContactInformation()
- If the entity is related to an accounts receivable object it must implement ICRMDOAccountBasedEntity interface and its methods:
2. Entities Metadata File
- <plarexcluded> tag's value must be set to false. Keep in mind that <plarexcluded> default value is false, so in such cases, it can be omitted.
- <masterentityid> tag must be defined whenever a master entity exists (CONTACTINFORMATION/ACCOUNTSRECEIVABLE).
- <typeentityid> tag must be defined whenever a type entity exists.