Is it possible to extend an adaptable?
I have an Article model that is more or less a com.day.cq.wcm.api.Page with a number of specific properties:
@Model(adaptables=Resource.class) public class Article { @Inject public String author; @Inject public String[] contacts; @Inject public Date dispDate; //... }This works fine by itself, but I'd also like the capabilities of a Page (onTime, offTime, etc). However, Page is an interface, so using `extends Page` won't quite work. Is this possible some other way, or am I barking up the wrong tree?
For further clarification, the bigger goal of this is to use this moddel from a number of components that call another UseClass with an ID parameter. That UseClass queries on the passed ID, gets the associated resource, and then adaptTo(Article.class), and associates that with a member object.