Represents a Profile which is a subordinate to an organisation. This is when the profile has a group membership either directly related to the organisation or to a subordinate organisation This creates a link between the organisation and group membership which is subordinate to that org Note that the Subordinate record is created for every organisation that the profile is subordinate to, so queries do not need to do recursive lookups
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| groupMembership | GroupMembership | The group membership that puts the profile under the organisation. Never null, and loaded lazily. The profile itself is reached through the membership rather than being held on this record. |
| id | Long | Generated primary key of the subordination link. Null until the record has been saved. |
| withinOrg | Organisation | The organisation the member is subordinate to. Never null, and loaded lazily. A row exists for every organisation above the membership's own organisation as well, so checking whether a profile falls under an organisation is a single lookup. |
Methods
getId()
Returns: Long
Generated primary key of the subordination link. Null until the record has been saved.
getWithinOrg()
Returns: Organisation
The organisation the member is subordinate to. Never null, and loaded lazily. A row exists for every organisation above the membership's own organisation as well, so checking whether a profile falls under an organisation is a single lookup.
getGroupMembership()
Returns: GroupMembership
The group membership that puts the profile under the organisation. Never null, and loaded lazily. The profile itself is reached through the membership rather than being held on this record.