I'm planning to put $subject as an optimisation for API calls when adding
artifacts. When adding artifacts that belong to an RXT with this attribute
is "false" (or not present - for backward compatibility), will processed
faster bypassing the check. Otherwise there will be a recursive iterator
going through the RXT searching for fields with validation regex and doing
regex matching, for each addArtifact operation.

The only problem I have at the moment is the line 55:

OMElement head =
uigen.getUIConfiguration(client.getArtifactUIConfiguration(request.getParameter("key")),request,config,session);

in

platform/branches/4.0.0/components/governance/org.wso2.carbon.governance.generic.ui/4.0.5/src/main/resources/web/generic/add_edit.jsp

And similarly edit_ajaxprocessor.jsp too.

Here getArtifactUIConfiguration() only extracts the <content> element of
the .rxt.

One solution is to put this optional "doValidation" attribute to <content>
element as at BE OMElement for <content> is anyway created. Is this viable?
I don't see any attribute in this element yet too.

Another solution for this is to add a new method
to ManageGenericArtifactService.java which is in
org.wso2.carbon.governance.generic. This will extract the content of the
actual .rxt resource.

Thanks
-- 
Chethiya Abeysinghe
Software Engineer; WSO2, Inc.;  http://wso2.com/
email: [email protected]
blog: chethiya3000.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to