Subversion Repositories XServices

Rev

Rev 158 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 158 Rev 177
Line 59... Line 59...
59
import org.apache.axiom.om.OMXMLBuilderFactory;
59
import org.apache.axiom.om.OMXMLBuilderFactory;
60
import org.apache.axiom.om.xpath.AXIOMXPath;
60
import org.apache.axiom.om.xpath.AXIOMXPath;
61
import org.apache.log4j.Logger;
61
import org.apache.log4j.Logger;
62
import org.apache.shiro.SecurityUtils;
62
import org.apache.shiro.SecurityUtils;
63
import org.apache.shiro.authz.UnauthorizedException;
63
import org.apache.shiro.authz.UnauthorizedException;
-
 
64
import org.apache.shiro.authz.annotation.RequiresPermissions;
64
import org.jaxen.JaxenException;
65
import org.jaxen.JaxenException;
65
import org.jaxen.SimpleNamespaceContext;
66
import org.jaxen.SimpleNamespaceContext;
Line 66... Line 67...
66
 
67
 
67
/**
68
/**
Line 192... Line 193...
192
		} catch (UnsupportedEncodingException e) {
193
		} catch (UnsupportedEncodingException e) {
193
			throw new XServicesFault(e);
194
			throw new XServicesFault(e);
194
		}
195
		}
195
	}
196
	}
Line -... Line 197...
-
 
197
	
196
	
198
	@RequiresPermissions("insertNodes")
197
	public String insertNodes(String source, String encoding, NamespaceListType nsList, String xpath, String xmlFragment) throws XServicesFault {
199
	public String insertNodes(String source, String encoding, NamespaceListType nsList, String xpath, String xmlFragment) throws XServicesFault {
198
		encoding = validateEncoding(encoding);
200
		encoding = validateEncoding(encoding);
199
		try {
201
		try {
200
			AXIOMXPath axp = new AXIOMXPath(xpath);
202
			AXIOMXPath axp = new AXIOMXPath(xpath);