You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by gg...@apache.org on 2002/09/27 19:02:33 UTC
cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/util AutoProfile.java
ggolden 2002/09/27 10:02:33
Modified: src/java/org/apache/jetspeed/util AutoProfile.java
Log:
The customizers, including the Portlet customizer, now work on a clone of the
current Profile / PSMLDocument rather than on the current ones. This is to
assure that if, due to new account creation and caching, there are two different
Profiles that use the same PSMLDocument, only the one being edited will be
modified. Also, as someone is modifying a Profile, other users won't see the
results until the modification is saved. If the modification is cancled, nothing
changes.
Some support was added to the JetspeedRunData and the Customize.java for this.
The JetspeedPortletInstance was changed to be aware of the clone used in customization, and to make a clone if needed before modifying the current psml.
Revision Changes Path
1.7 +6 -4 jakarta-jetspeed/src/java/org/apache/jetspeed/util/AutoProfile.java
Index: AutoProfile.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/util/AutoProfile.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- AutoProfile.java 26 Jul 2002 01:47:21 -0000 1.6
+++ AutoProfile.java 27 Sep 2002 17:02:33 -0000 1.7
@@ -27,6 +27,7 @@
* last modified: 10/31/01
* Andreas Kempf, Siemens ICM S CP PE, Munich
*/
+ /*
public static Profile loadProfile (RunData rundata, String mediaType) throws Exception
{
if ((mediaType != null) && (mediaType.equalsIgnoreCase("wml")))
@@ -71,7 +72,7 @@
return ((JetspeedRunData)rundata).getProfile();
}
-
+*/
/**
* Load a profile - the mediatype is depending on rundata settings
@@ -81,6 +82,7 @@
* last modified: 10/31/01
* Andreas Kempf, Siemens ICM S CP PE, Munich
*/
+ /*
public static Profile doIt (RunData rundata, boolean notForce) throws Exception
{
// retrieve current customization mediatype (stored in the user session object)
@@ -135,7 +137,7 @@
}
return ((JetspeedRunData)rundata).getProfile();
}
-
+ */
// Create a list of all used portlets!
// last modified: 10/31/01
@@ -143,7 +145,7 @@
// ---------------------------------------------------------------------
public static List getPortletList (RunData rundata)
{
- Profile profile = ((JetspeedRunData)rundata).getProfile();
+ Profile profile = ((JetspeedRunData)rundata).getCustomizedProfile();
Portlets allPortlets = profile.getDocument().getPortletsById(((PortletSet)((JetspeedRunData)rundata).getCustomized()).getID());
@@ -163,4 +165,4 @@
return installed;
}
-}
\ No newline at end of file
+}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>