You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2009/05/26 15:03:51 UTC
svn commit: r778685 -
/lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java
Author: andreas
Date: Tue May 26 13:03:51 2009
New Revision: 778685
URL: http://svn.apache.org/viewvc?rev=778685&view=rev
Log:
Improve exception handling.
Modified:
lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java
Modified: lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java
URL: http://svn.apache.org/viewvc/lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java?rev=778685&r1=778684&r2=778685&view=diff
==============================================================================
--- lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java (original)
+++ lenya/branches/BRANCH_2_0_X/src/modules/sitetree/java/src/org/apache/lenya/cms/cocoon/transformation/AccessControlSitetreeTransformer.java Tue May 26 13:03:51 2009
@@ -172,7 +172,7 @@
super.startElement(uri, localName, raw, attributes);
}
- protected AccreditableManager getAccreditableManager() throws SAXException {
+ protected AccreditableManager getAccreditableManager() throws AccessControlException {
initAccessController();
return this.accreditableManager;
}
@@ -195,16 +195,12 @@
}
}
- protected void initAccessController() throws SAXException {
+ protected void initAccessController() throws AccessControlException {
if (this.accreditableManager == null) {
- try {
- AccessController accessController = this.acResolver.resolveAccessController("/"
- + this.pubId + "/");
- this.accreditableManager = accessController.getAccreditableManager();
- this.policyManager = accessController.getPolicyManager();
- } catch (AccessControlException e) {
- throw new SAXException(e);
- }
+ AccessController accessController = this.acResolver.resolveAccessController("/"
+ + this.pubId + "/");
+ this.accreditableManager = accessController.getAccreditableManager();
+ this.policyManager = accessController.getPolicyManager();
}
}
@@ -215,7 +211,7 @@
}
}
- protected PolicyManager getPolicyManager() throws SAXException {
+ protected PolicyManager getPolicyManager() throws AccessControlException {
initAccessController();
return this.policyManager;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org