Liking cljdoc? Tell your friends :D

boundary.tenant.core.membership


accept-invitationclj

(accept-invitation membership now)

Transitions a membership from :invited to :active.

Args: membership - existing membership map now - java.time.Instant for timestamp fields

Returns: Updated membership map with :active status and accepted-at set.

Transitions a membership from :invited to :active.

Args:
  membership - existing membership map
  now        - java.time.Instant for timestamp fields

Returns:
  Updated membership map with :active status and accepted-at set.
sourceraw docstring

active-member?clj

(active-member? membership)

Returns true when the membership status is :active.

Returns true when the membership status is :active.
sourceraw docstring

has-role?clj

(has-role? membership allowed-roles)

Returns true when the membership role is in allowed-roles.

Args: membership - membership map allowed-roles - set (or collection) of allowed role keywords

Returns: Boolean.

Returns true when the membership role is in allowed-roles.

Args:
  membership    - membership map
  allowed-roles - set (or collection) of allowed role keywords

Returns:
  Boolean.
sourceraw docstring

prepare-active-membership*clj

(prepare-active-membership* membership-id user-id tenant-id role now)

Creates a new membership map directly in :active status using explicit runtime inputs.

Intended for initial tenant bootstrap flows where the first member should become active immediately after account verification.

Args: membership-id - UUID generated by the imperative shell user-id - UUID of the user tenant-id - UUID of the tenant role - one of :admin :member :viewer :contractor now - java.time.Instant for timestamp fields

Returns: New active membership map ready for persistence.

Creates a new membership map directly in :active status using explicit runtime inputs.

Intended for initial tenant bootstrap flows where the first member
should become active immediately after account verification.

Args:
  membership-id - UUID generated by the imperative shell
  user-id       - UUID of the user
  tenant-id     - UUID of the tenant
  role          - one of :admin :member :viewer :contractor
  now           - java.time.Instant for timestamp fields

Returns:
  New active membership map ready for persistence.
sourceraw docstring

prepare-invitation*clj

(prepare-invitation* membership-id user-id tenant-id role now)

Creates a new membership map in :invited status using explicit runtime inputs.

Args: membership-id - UUID generated by the imperative shell user-id - UUID of the user being invited tenant-id - UUID of the tenant role - one of :admin :member :viewer :contractor now - java.time.Instant for timestamp fields

Returns: New membership map ready for persistence.

Creates a new membership map in :invited status using explicit runtime inputs.

Args:
  membership-id - UUID generated by the imperative shell
  user-id       - UUID of the user being invited
  tenant-id     - UUID of the tenant
  role          - one of :admin :member :viewer :contractor
  now           - java.time.Instant for timestamp fields

Returns:
  New membership map ready for persistence.
sourceraw docstring

revoke-membershipclj

(revoke-membership membership now)

Transitions a membership to :revoked status.

Args: membership - existing membership map now - java.time.Instant for timestamp fields

Returns: Updated membership map with :revoked status.

Transitions a membership to :revoked status.

Args:
  membership - existing membership map
  now        - java.time.Instant for timestamp fields

Returns:
  Updated membership map with :revoked status.
sourceraw docstring

suspend-membershipclj

(suspend-membership membership now)

Transitions a membership to :suspended status.

Args: membership - existing membership map now - java.time.Instant for timestamp fields

Returns: Updated membership map with :suspended status.

Transitions a membership to :suspended status.

Args:
  membership - existing membership map
  now        - java.time.Instant for timestamp fields

Returns:
  Updated membership map with :suspended status.
sourceraw docstring

update-roleclj

(update-role membership role now)

Updates the role on a membership.

Args: membership - existing membership map role - new role keyword now - java.time.Instant for timestamp fields

Returns: Updated membership map with new role.

Updates the role on a membership.

Args:
  membership - existing membership map
  role       - new role keyword
  now        - java.time.Instant for timestamp fields

Returns:
  Updated membership map with new role.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close