Bonfire.Data.Identity.Caretaker (Bonfire v0.9.12-social-beta.67)

View Source

The entity responsible for something. In practice, it means that something is deleted when its caretaker is deleted.

You can think of it as being like the creator, except: a) You can give it away. b) Objects can take care of arbitrary objects, such as e.g. custom ACLs created to permit people mentioned special permissions

Summary

Types

t()

@type t() :: %Bonfire.Data.Identity.Caretaker{
  __meta__: Ecto.Schema.Metadata.t(),
  caretaker: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  caretaker_id: Needle.UID.t() | nil,
  character: term(),
  id: Needle.UID.t() | nil,
  pointer: Ecto.Schema.belongs_to(Needle.Pointer.t()) | nil,
  profile: term(),
  user: term()
}

Functions

changeset(ct \\ %Caretaker{}, params, opts \\ [])

delete(struct, key)

get(struct, key, default \\ nil)

put(struct, key, val)