Replies: 2 comments
-
I assume the |
Beta Was this translation helpful? Give feedback.
-
Further small issue: 'Identifiable' is a defined term in the AAS world, similar to 'Asset'. Using this as a name of the interface will create a bit of confusion... At least we need to be aware of this fact and explain the differences. |
Beta Was this translation helpful? Give feedback.
-
Currently, an abstract class
Identifiable
exists in thepolicy-evaluator
module, and it's extended by all thePolicy
model classes (Policy
itself, andRule
, which is in turn extended byPermission
,Duty
andProhibition
.That
Identifiable
is not really used, there are no abstractions that requires only theIdentifiable
type instead of the concrete types, so it could be removed probably.However an
Identifiable
abstraction used also on other entities in the codebase (asTransferProcess
,ContractNegotiation
and so on) could help describe better interfaces, e.g. on theStore
side, permitting us to have anIdentifiable
store that offer thefindById
,save
anddeleteById
methods and to keep the (at that point) extending*Store
interfaces more succint.In this case, I would propose to rename
uid
toid
andgetUid
togetId
Beta Was this translation helpful? Give feedback.
All reactions