You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-scm@portals.apache.org by ed...@apache.org on 2008/11/19 01:05:28 UTC
svn commit: r718808 -
/portals/pluto/branches/pluto-1.1.x/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletSessionImpl.java
Author: edalquist
Date: Tue Nov 18 16:05:28 2008
New Revision: 718808
URL: http://svn.apache.org/viewvc?rev=718808&view=rev
Log:
PLUTO-503 Expose some constants and internal methods as protected to allow subclasses to change the default behavior
Modified:
portals/pluto/branches/pluto-1.1.x/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletSessionImpl.java
Modified: portals/pluto/branches/pluto-1.1.x/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletSessionImpl.java
URL: http://svn.apache.org/viewvc/portals/pluto/branches/pluto-1.1.x/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletSessionImpl.java?rev=718808&r1=718807&r2=718808&view=diff
==============================================================================
--- portals/pluto/branches/pluto-1.1.x/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletSessionImpl.java (original)
+++ portals/pluto/branches/pluto-1.1.x/pluto-container/src/main/java/org/apache/pluto/internal/impl/PortletSessionImpl.java Tue Nov 18 16:05:28 2008
@@ -41,13 +41,13 @@
private static final Log LOG = LogFactory.getLog(PortletSessionImpl.class);
/** The default scope (<code>PORTLET_SCOPE</code>) for storing objects. */
- private static final int DEFAULT_SCOPE = PortletSession.PORTLET_SCOPE;
+ protected static final int DEFAULT_SCOPE = PortletSession.PORTLET_SCOPE;
/** The portlet scope namespace as defined in PLT. 15.3. */
- private static final String PORTLET_SCOPE_NAMESPACE = "javax.portlet.p.";
+ protected static final String PORTLET_SCOPE_NAMESPACE = "javax.portlet.p.";
/** The portlet window ID / attribute name separator as defined in PLT. 15.3. */
- private static final char ID_NAME_SEPARATOR = '?';
+ protected static final char ID_NAME_SEPARATOR = '?';
// Private Member Variables ------------------------------------------------
@@ -211,7 +211,7 @@
* @param name the attribute name.
* @return portlet-scoped ID for the attribute name.
*/
- private String createPortletScopedId(String name) {
+ protected String createPortletScopedId(String name) {
StringBuffer buffer = new StringBuffer();
buffer.append(PORTLET_SCOPE_NAMESPACE);
buffer.append(internalPortletWindow.getId().getStringId());
@@ -227,7 +227,7 @@
* @return true if the attribute name is in the current portlet scope.
* @see #createPortletScopedId(String)
*/
- private boolean isInCurrentPortletScope(String name) {
+ protected boolean isInCurrentPortletScope(String name) {
// Portlet-scoped attribute names MUST start with "javax.portlet.p.",
// and contain the ID-name separator '?'.
if (name.startsWith(PORTLET_SCOPE_NAMESPACE)