Versions in this module Expand all Collapse all v0 v0.0.2 Jan 3, 2024 v0.0.1 Dec 19, 2023 Changes in this version + const TIMEOUT + var ResourcesEffectedByUserDelete_BATCH_SIZE = 1000 + type Controller struct + func New(config config.Config, db database.Database, security Security, ...) (ctrl *Controller, err error) + func (this *Controller) DeleteProcess(id string) error + func (this *Controller) GetProcessModelName(bpmn string) (name string, err error) + func (this *Controller) HandleUserDelete(userId string) error + func (this *Controller) PublishProcessCreate(token auth.Token, process model.Process) (result model.Process, err error, code int) + func (this *Controller) PublishProcessDelete(token auth.Token, id string) (error, int) + func (this *Controller) PublishProcessPublicUpdate(token auth.Token, id string, publicCommand model.PublicCommand) (result model.Process, err error, code int) + func (this *Controller) PublishProcessUpdate(token auth.Token, id string, process model.Process) (result model.Process, err error, code int) + func (this *Controller) ReadAllPublicProcess() (result []model.Process, err error, code int) + func (this *Controller) ReadProcess(token auth.Token, id string, action model.AuthAction) (result model.Process, err error, errCode int) + func (this *Controller) ResourcesEffectedByUserDelete(token auth.Token, resource string) (deleteResourceIds []string, deleteUserFromResourceIds []string, err error) + func (this *Controller) SetProcess(process model.Process) error + type PermSearchElement struct + Creator string + Id string + Name string + PermissionHolders PermissionHolders + Shared bool + type PermissionHolders struct + AdminUsers []string + ExecuteUsers []string + ReadUsers []string + WriteUsers []string + type Producer interface + PublishDeleteUserRights func(resource string, id string, userId string) error + PublishProcessDelete func(id string, userId string) error + PublishProcessPut func(id string, userId string, process model.Process) error + type Security interface + CheckBool func(token auth.Token, kind string, id string, action model.AuthAction) (allowed bool, err error)