Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Create a Collection Entity

In order for an entity to be considered collection, it has to meet the following conditions:A collection entity is used by the following mechanisms:

  1. Conditional Security Restrictions Mechanism: Field restrictions regarding a collection cannot be applied unless the collection entity meets the conditions described in the following section.

    Ui expand
    titleConditional Security Restrictions - Restricted Fields

    Image Added

  2. Audit Trail Mechanism: cannot monitor changes regarding collection fields unless the collection entity meets the conditions described in the following section.

    Ui expand
    titleAudit Trail Monitored Fields

    Image Added

  3. Mandatory Fields Mechanism: The mandatory fields of a collection entity cannot be marked with an asterisk on screen or validated unless the entity meets the conditions described in the following section.

1. Data Object Class

The collection entity's DO class must:

  1. Implement ICRMDOCollectionEntity interface and its methods getMainEntity().

Code Block
languagejava
titleCUSTOMCRMDORentalCUSTOMCRMDORentalItem
collapsetrue
public class CUSTOMCRMDORentalItem extends CRMDO implements ICRMDOCollectionEntity{

	private CUSTOMCRMDORental rental;
	private CRMDOInstalledItem installedItem;
	
	private Set<CUSTOMCRMDORentalItemUsage> usagePeriods;
	
	public CUSTOMCRMDORental getRental() {
		return rental;
	}
	public void setRental(CUSTOMCRMDORental rental) {
		setChange("rental", this.rental, rental);
		this.rental = rental;
	}
	public CRMDOInstalledItem getInstalledItem() {
		return installedItem;
	}
	public void setInstalledItem(CRMDOInstalledItem installedItem) {
		setChange("installedItem", this.installedItem, installedItem);
		this.installedItem = installedItem;
	}
	public Set<CUSTOMCRMDORentalItemUsage> getUsagePeriods() {
		return usagePeriods;
	}
	public void setUsagePeriods(Set<CUSTOMCRMDORentalItemUsage> usagePeriods) {
		setChange("usagePeriods", this.usagePeriods, usagePeriods);
		this.usagePeriods = usagePeriods;
	}
	@Override
	public CRMDO getMainEntity() {
		return rental;
	}	
}