-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathNOTES
27 lines (16 loc) · 973 Bytes
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Paths to Methods
TYPICAL DISPATCH ROUTE: /entity-type/identifier/subsystem/method
This, rather than including the entity type and identifier as arguments because
we want the subsystem implementation to look like a Role::Subsystem. This will
make the interface more natural in Perl land, where constantly doing:
EntityManager::Subsystem->method($entity, $arg)
would be weird. It also lets us use the tried and true method of changing the
subsystem implementation on a per-account/list/whatever basis.
So, we'll end up with something like:
my $entity = EntityClass->find($identifier, $context);
The context will allow us to throw a Permission error as soon as possible.
## Core Method Publication
Some early experimenting suggests that we'll want some public methods on
nonsubsytems. I suggest we do one of these things:
1. /entity-type/identifier/method -- the lack of "subsystem" means it's core
2. reserve a subsystem name globally for "core" methods