The ro.sync.ecss.extensions.api.AuthorDocumentFilter
Posted: Wed Apr 02, 2014 7:28 pm
Hello,
we do use the Oxygen Author Eclipse version 15.2.
I got two questions concerning the AuthorDocumentFilter:
Is it somehow possible to attach a default AuthorDocumentFilter to the ro.sync.ecss.extensions.api.AuthorDocumentControllers of a certain framework?
Currently I am using an IPartListener in order to get access to the AuthorDocumentControllers and then set a certain AuthorDocumentFilter to those AuthorDocumentControllers.
But now we have the case that we want to add a framework specific AuthorDocumentFilter and I wonder, if it is possible to set the AuthorDocumentFilter via framework Extension.
Otherwise I would have to create an extra plugin just for attaching a certain AuthorDocumentFilter and only build this plugin, when I use that certain kind of framework.
Second Question: Could you consider to hold a Collection of AuthorDocumentFilter in the AuthorDocumentControllers instead of only setting just one AuthorDocumentFilter?
For now I also would have a workaround by using the Decorator Pattern and then combine the functionality of more than one AuthorDocumentFilter.
But the Decorator Pattern approach has one drawback, because a third party plugin which we may use in the future could also set their own custom AuthorDocumentFilter and override our AuthorDocumentFilter.
Therefore an addDocumentFilter() method would be better than the current setDocumentFilter() method.
Looking forward to your answers
Best regards,
Simon
we do use the Oxygen Author Eclipse version 15.2.
I got two questions concerning the AuthorDocumentFilter:
Is it somehow possible to attach a default AuthorDocumentFilter to the ro.sync.ecss.extensions.api.AuthorDocumentControllers of a certain framework?
Currently I am using an IPartListener in order to get access to the AuthorDocumentControllers and then set a certain AuthorDocumentFilter to those AuthorDocumentControllers.
But now we have the case that we want to add a framework specific AuthorDocumentFilter and I wonder, if it is possible to set the AuthorDocumentFilter via framework Extension.
Otherwise I would have to create an extra plugin just for attaching a certain AuthorDocumentFilter and only build this plugin, when I use that certain kind of framework.
Second Question: Could you consider to hold a Collection of AuthorDocumentFilter in the AuthorDocumentControllers instead of only setting just one AuthorDocumentFilter?
For now I also would have a workaround by using the Decorator Pattern and then combine the functionality of more than one AuthorDocumentFilter.
But the Decorator Pattern approach has one drawback, because a third party plugin which we may use in the future could also set their own custom AuthorDocumentFilter and override our AuthorDocumentFilter.
Therefore an addDocumentFilter() method would be better than the current setDocumentFilter() method.
Looking forward to your answers
Best regards,
Simon