Hi,

in the claims example application the class

org.apache.isis.example.claims.dom.claim.Claim

is using the interfaces

org.apache.isis.example.claims.dom.claim.Claimant
org.apache.isis.example.claims.dom.claim.Approver

both implemented by

org.apache.isis.example.claims.dom.employee.Employee

The problem is now that my javascript application does not know about
the polymorphic relationship between the Employee class and the two
interfaces, so in this case I have no way of enforcing type safety in
the UI when invoking actions or updating properties.

One way of solving this would be to specify all implemented interfaces
and superclasses for a given domain type in chapter 20 (Domain Type
Resource) of the restful objects spec (v0.50). For example,

http://~/domainTypes/org.apache.isis.example.claims.dom.employee.Employee

should list all other domain types it can act as.

Or is there an other solution I am not aware of?

Johan.

Reply via email to