Hello,

As I said earlier, we are going to use interceptors.

We want to create an interceptor enable users to create ObjectNodes that
are in a set of allowed contenttypes (mimetype).

In Domain.xml we will With the parameters we will set up a list of allowed
contenttypes:

<content-interceptors
class="com.nps.slide.interceptors.MimeTypeInterceptor">
<parameter name="allowed-mimetypes">text/xml</parameter>
</content-interceptors>

The following is unclear to me:
Reading org.apache.slide.content.ContentImpl.create(SlideToken token, String
strUri, boolean isVersioned), I fail to discover if the interceptors are
called. As far as I can tell, they are not. (The same seems to hold for some
of the retrieve methods. For the remove methods interceptors are called as I
would expect: called on all methods, either direct or indirect).

If this is indeed true, does this mean that a revision descriptor for the
ObjectNode is created?  If then somebody tries to add (non-allowed) content
to this node, this will be impossible because of my interceptor. Will this
leave the contentstore with created but otherwise unusable nodes?

How can I prevent that an objectnode that isn't allowed to exist, from being
created in the store?

With kind regards
Peter Paulus
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to