brainstormed

This commit is contained in:
Kevin Frantz 2019-02-24 20:53:25 +01:00
parent 327818295a
commit 4385e84cc7
2 changed files with 59 additions and 1 deletions

57
BRAINSTORMING.md Normal file
View File

@ -0,0 +1,57 @@
# Brainstorming
This document is work in process and just contains some brainstorming ideas.
## Interfaces
### Offered Interfaces
- REST ___(JSON, HTML, XML)___
- GUI ___(HTML)___
- CLI
### Offered Methods
| Entity\Action | Create | Read | Update | Delete | Execute | Log | Schema |
|-------------------|--------|------|--------|--------|---------|-----|--------|
| Source | x | x | x | x | x | x | x |
| Right | x | x | x | x | | x | x |
| Law | | x | x | | | x | x |
| Member Relation | | x | x | | | x | x |
| Heredity Relation | | x | x | | | x | x |
| Parent Relation | | x | | | | x | x |
### Method Description
#### Create
Creates an entity
#### Read
Reads an entity
#### Update
Updates an entity
#### Delete
Deletes an entity
#### Execute
Executes an entity
#### Log
Logs of an entity
##### Data
- timestamp
- client entity
- requested entity
- requested action
#### Schema
Schema of an entity
## Entities
### Source
A source is executable data.
### Law
A law contains rules, how to handle the rights
### Right
A right defines, which client source is allowed to commit an action to a layer of a requested source.
### Relations
#### Member Relation
The member relation describes which sources are members of which other sources.
#### Parent Relation
Describes which sources had been involved in the creation of sources.
#### Heredity Relation
Describes from which sources child sources inhere rights.

View File

@ -12,10 +12,11 @@ use Infinito\DBAL\Types\Meta\Right\CRUDType;
final class ActionType extends CRUDType
{
/**
* @var string this action executes an entity
* @var string this action executes a source
*/
const EXECUTE = 'execute';
/**
* @var array
*/