Hi,
We have a local requirement here at Rutgers to resolve different URL for
the CWebproxy's "cw_xml" paramenter based on a person's attribute. We
need to extend the CWebproxy class, however, there are some minor
changes to this class needed to make the subclassing possible, such as
scope changes, 2 new methods. I'm attaching the patch file here for
more details. Please let me know if this change is reasonable to be
included in the next version of uP3?
Thanks,
Tuy.
--
You are currently subscribed to [email protected] as: [EMAIL
PROTECTED]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/uportal-dev
Index:
uportal-impl/src/main/java/org/jasig/portal/channels/webproxy/CWebProxy.java
===================================================================
---
uportal-impl/src/main/java/org/jasig/portal/channels/webproxy/CWebProxy.java
(revision 43733)
+++
uportal-impl/src/main/java/org/jasig/portal/channels/webproxy/CWebProxy.java
(working copy)
@@ -237,7 +237,7 @@
static final String
systemCacheId="org.jasig.portal.channels.webproxy.CWebProxy";
static PrintWriter devNull;
- ChannelState chanState;
+ protected ChannelState chanState;
// the content cache shared by ALL users
private static Map<Serializable, Object> contentCache;
@@ -265,7 +265,7 @@
* properties are only accessed via getter and setter methods that would
* need to be added.
*/
- private class ChannelState
+ protected class ChannelState
{
private String publishId;
private IPerson iperson;
@@ -395,6 +395,14 @@
// if uriArg was null do nothing.
}
+
+ /**
+ * Sets the xmlUri channel state property without applying URI acceptance
+ * logic.
+ */
+ public void setXmlUriNotRestricted(String uri) {
+ this.xmlUri = uri;
+ }
/**
* Storing cache data is straigt-forward. We rely on the cache
implementation
@@ -420,6 +428,10 @@
public synchronized long getCacheContentLoaded() {
return (cacheContentLoaded);
}
+
+ public IPerson getIPerson() {
+ return this.iperson;
+ }
}