annacl v0.5.0 Annacl.Behaviour.RoleAndPermission behaviour

Link to this section Summary

Link to this section Callbacks

Link to this callback

assign_role_to_permission(arg1, arg2)

Specs

Link to this callback

create_performer()

Specs

create_performer() ::
  {:ok, Annacl.Performers.Performer.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

create_permission(binary)

Specs

create_permission(binary()) ::
  {:ok, Annacl.Permissions.Permission.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

create_role(binary)

Specs

create_role(binary()) ::
  {:ok, Annacl.Roles.Role.t()} | {:error, Ecto.Changeset.t()}
Link to this callback

get_permission!(binary)

Specs

get_permission!(binary()) :: Annacl.Permissions.Permission.t()
Link to this callback

get_role!(binary)

Specs

get_role!(binary()) :: Annacl.Roles.Role.t()
Link to this callback

grant_permission_to_role(arg1, arg2)

Specs

Link to this callback

remove_role_from_permission(arg1, arg2)

Specs

Link to this callback

revoke_permission_from_role(arg1, arg2)

Specs

Link to this callback

role_can?(arg1, arg2)

Specs

Link to this callback

update_role(arg1, binary)

Specs

update_role(Annacl.Roles.Role.t(), binary()) ::
  {:ok, Annacl.Roles.Role.t()} | {:error, Ecto.Changeset.t()}