Portal: Code formatiert, Dokumentation hinzugefügt.
git-svn-id: https://svn.libreccm.org/ccm/trunk@333 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
c71e62572e
commit
7f12ad96d0
|
|
@ -20,8 +20,12 @@ import com.arsdigita.london.portal.ui.portlet.ApplicationDirectoryPortletRendere
|
||||||
import com.arsdigita.persistence.DataObject;
|
import com.arsdigita.persistence.DataObject;
|
||||||
import com.arsdigita.portal.Portlet;
|
import com.arsdigita.portal.Portlet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ApplicationDirectoryPortlet
|
||||||
|
*
|
||||||
|
* @version $Id: ApplicationDirectoryPortlet.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
|
*/
|
||||||
public class ApplicationDirectoryPortlet extends Portlet {
|
public class ApplicationDirectoryPortlet extends Portlet {
|
||||||
public static final String versionId = "$Id: ApplicationDirectoryPortlet.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2003/08/08 05:59:54 $";
|
|
||||||
|
|
||||||
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.ApplicationDirectoryPortlet";
|
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.ApplicationDirectoryPortlet";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,12 @@ import com.arsdigita.london.portal.ui.portlet.FreeformHTMLPortletRenderer;
|
||||||
import com.arsdigita.persistence.DataObject;
|
import com.arsdigita.persistence.DataObject;
|
||||||
import com.arsdigita.portal.Portlet;
|
import com.arsdigita.portal.Portlet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FreeformHTMLPortlet.
|
||||||
|
*
|
||||||
|
* @version $Id: FreeformHTMLPortlet.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
|
*/
|
||||||
public class FreeformHTMLPortlet extends Portlet {
|
public class FreeformHTMLPortlet extends Portlet {
|
||||||
public static final String versionId = "$Id: FreeformHTMLPortlet.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2003/08/08 05:59:54 $";
|
|
||||||
|
|
||||||
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.FreeformHTMLPortlet";
|
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.FreeformHTMLPortlet";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,20 +20,39 @@ import com.arsdigita.london.portal.ui.portlet.LoginPortletRenderer;
|
||||||
import com.arsdigita.persistence.DataObject;
|
import com.arsdigita.persistence.DataObject;
|
||||||
import com.arsdigita.portal.Portlet;
|
import com.arsdigita.portal.Portlet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @version $Id: LoginPortlet.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
|
*/
|
||||||
public class LoginPortlet extends Portlet {
|
public class LoginPortlet extends Portlet {
|
||||||
public static final String versionId = "$Id: LoginPortlet.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2003/08/08 05:59:54 $";
|
|
||||||
|
|
||||||
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.LoginPortlet";
|
public static final String BASE_DATA_OBJECT_TYPE =
|
||||||
|
"com.arsdigita.london.portal.portlet.LoginPortlet";
|
||||||
|
|
||||||
public LoginPortlet(DataObject dataObject) {
|
|
||||||
super(dataObject);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected String getBaseDataObjectType() {
|
/**
|
||||||
return BASE_DATA_OBJECT_TYPE;
|
* Constructor
|
||||||
}
|
*
|
||||||
|
* @param dataObject
|
||||||
|
*/
|
||||||
|
public LoginPortlet(DataObject dataObject) {
|
||||||
|
super(dataObject);
|
||||||
|
}
|
||||||
|
|
||||||
protected AbstractPortletRenderer doGetPortletRenderer() {
|
/**
|
||||||
return new LoginPortletRenderer(this);
|
* Retrieve Base Data Object Type
|
||||||
}
|
*
|
||||||
|
* @return String BaseDataObjectType
|
||||||
|
*/
|
||||||
|
protected String getBaseDataObjectType() {
|
||||||
|
return BASE_DATA_OBJECT_TYPE;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
protected AbstractPortletRenderer doGetPortletRenderer() {
|
||||||
|
return new LoginPortletRenderer(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,12 @@ import com.arsdigita.london.portal.ui.portlet.RSSFeedPortletRenderer;
|
||||||
import com.arsdigita.persistence.DataObject;
|
import com.arsdigita.persistence.DataObject;
|
||||||
import com.arsdigita.portal.Portlet;
|
import com.arsdigita.portal.Portlet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* RSSFeedPortlet
|
||||||
|
*
|
||||||
|
* @version $Id: RSSFeedPortlet.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
|
*/
|
||||||
public class RSSFeedPortlet extends Portlet {
|
public class RSSFeedPortlet extends Portlet {
|
||||||
public static final String versionId = "$Id: RSSFeedPortlet.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2003/08/08 05:59:54 $";
|
|
||||||
|
|
||||||
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.RSSFeedPortlet";
|
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.RSSFeedPortlet";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,8 +20,12 @@ import com.arsdigita.london.portal.ui.portlet.TimeOfDayPortletRenderer;
|
||||||
import com.arsdigita.persistence.DataObject;
|
import com.arsdigita.persistence.DataObject;
|
||||||
import com.arsdigita.portal.Portlet;
|
import com.arsdigita.portal.Portlet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* TimeOfDayPortlet.
|
||||||
|
*
|
||||||
|
* @version $Id: TimeOfDayPortlet.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
|
*/
|
||||||
public class TimeOfDayPortlet extends Portlet {
|
public class TimeOfDayPortlet extends Portlet {
|
||||||
public static final String versionId = "$Id: TimeOfDayPortlet.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2003/08/08 05:59:54 $";
|
|
||||||
|
|
||||||
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.TimeOfDayPortlet";
|
public static final String BASE_DATA_OBJECT_TYPE = "com.arsdigita.london.portal.portlet.TimeOfDayPortlet";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,9 +29,14 @@ import com.arsdigita.portal.apportlet.AppPortlet;
|
||||||
import com.arsdigita.web.Application;
|
import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.xml.Element;
|
import com.arsdigita.xml.Element;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WorkspaceNavigatorPortlet.
|
||||||
|
*
|
||||||
|
* @author dennis (2003/08/15)
|
||||||
|
* @version $Id: //portalserver/dev/src/com/arsdigita/portalserver/WorkspaceNavigatorPortlet.java $
|
||||||
|
*/
|
||||||
public class WorkspaceNavigatorPortlet extends AppPortlet {
|
public class WorkspaceNavigatorPortlet extends AppPortlet {
|
||||||
|
|
||||||
public static final String versionId = "$Id: //portalserver/dev/src/com/arsdigita/portalserver/WorkspaceNavigatorPortlet.java#7 $ by $Author: dennis $, $DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
public static final String BASE_DATA_OBJECT_TYPE =
|
public static final String BASE_DATA_OBJECT_TYPE =
|
||||||
"com.arsdigita.london.portal.portlet.WorkspaceNavigatorPortlet";
|
"com.arsdigita.london.portal.portlet.WorkspaceNavigatorPortlet";
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,15 @@ import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.web.URL;
|
import com.arsdigita.web.URL;
|
||||||
import com.arsdigita.xml.Element;
|
import com.arsdigita.xml.Element;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WorkspaceSummaryPortlet
|
||||||
|
*
|
||||||
|
*
|
||||||
|
* @author dennis (2003/08/15)
|
||||||
|
* @version $Id: //portalserver/dev/src/com/arsdigita/portalserver/WorkspaceSummaryPortlet.java $
|
||||||
|
*/
|
||||||
public class WorkspaceSummaryPortlet extends AppPortlet {
|
public class WorkspaceSummaryPortlet extends AppPortlet {
|
||||||
|
|
||||||
public static final String versionId = "$Id: //portalserver/dev/src/com/arsdigita/portalserver/WorkspaceSummaryPortlet.java#7 $ by $Author: dennis $, $DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
public static final String BASE_DATA_OBJECT_TYPE =
|
public static final String BASE_DATA_OBJECT_TYPE =
|
||||||
"com.arsdigita.london.portal.portlet.WorkspaceSummaryPortlet";
|
"com.arsdigita.london.portal.portlet.WorkspaceSummaryPortlet";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,12 +49,12 @@ import com.arsdigita.util.UncheckedWrapperException;
|
||||||
* <p>
|
* <p>
|
||||||
* <strong>Experimental</strong>
|
* <strong>Experimental</strong>
|
||||||
* </p>
|
* </p>
|
||||||
|
*
|
||||||
|
* @version $Id: LayoutForm.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
*/
|
*/
|
||||||
public class LayoutForm extends Form implements FormProcessListener,
|
public class LayoutForm extends Form implements FormProcessListener,
|
||||||
FormInitListener {
|
FormInitListener {
|
||||||
|
|
||||||
public static final String versionId = "$Id: LayoutForm.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2004/03/02 06:33:42 $";
|
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionModel m_workspace;
|
||||||
|
|
||||||
private PortalSelectionModel m_portal;
|
private PortalSelectionModel m_portal;
|
||||||
|
|
|
||||||
|
|
@ -45,13 +45,14 @@ import java.util.Iterator;
|
||||||
|
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ParticipantBrowsePane.
|
||||||
|
*
|
||||||
|
* @author ashah (2003/08/15)
|
||||||
|
* @version $Id: //portalserver/src/com/arsdigita/portalserver/ui/ParticipantBrowsePane.java#7 $
|
||||||
|
+/
|
||||||
public class ParticipantBrowsePane {
|
public class ParticipantBrowsePane {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/ParticipantBrowsePane.java#7 $" +
|
|
||||||
"$Author: ashah $" +
|
|
||||||
"$DateTime: 2003/08/15 15:50:10 $";
|
|
||||||
|
|
||||||
private static Category s_log = Category.getInstance
|
private static Category s_log = Category.getInstance
|
||||||
(ParticipantBrowsePane.class.getName());
|
(ParticipantBrowsePane.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,13 +27,13 @@ import com.arsdigita.london.portal.Workspace;
|
||||||
|
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ParticipantDisplay.
|
||||||
|
*
|
||||||
|
* @author dennis (2003/08/15)
|
||||||
|
* @version $Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/PortalParticipants.java#3 $
|
||||||
public class ParticipantDisplay extends CompoundComponent {
|
public class ParticipantDisplay extends CompoundComponent {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/PortalParticipants.java#3 $" +
|
|
||||||
"$Author: dennis $" +
|
|
||||||
"$DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
private static Category s_log = Category.getInstance
|
private static Category s_log = Category.getInstance
|
||||||
(ParticipantDisplay.class.getName());
|
(ParticipantDisplay.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,17 +38,14 @@ import java.util.Iterator;
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* ParticipantEdit.
|
||||||
*
|
*
|
||||||
*
|
* @author ashah (2003/08/15)
|
||||||
* @author Justin Ross <<a href="mailto:jross@redhat.com">jross@redhat.com</a>>
|
* @author Justin Ross <<a href="mailto:jross@redhat.com">jross@redhat.com</a>>
|
||||||
|
* @version $Id: com/arsdigita/portalserver/ui/ParticipantEdit.java $
|
||||||
*/
|
*/
|
||||||
public class ParticipantEdit extends CompoundComponent {
|
public class ParticipantEdit extends CompoundComponent {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/ParticipantEdit.java#5 $" +
|
|
||||||
"$Author: ashah $" +
|
|
||||||
"$DateTime: 2003/08/15 15:50:10 $";
|
|
||||||
|
|
||||||
private static Category s_log = Category.getInstance
|
private static Category s_log = Category.getInstance
|
||||||
(ParticipantEdit.class.getName());
|
(ParticipantEdit.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,13 +27,13 @@ import com.arsdigita.london.portal.Workspace;
|
||||||
|
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ParticipantListModel
|
||||||
|
*
|
||||||
|
* @author dennis (2003/08/15)
|
||||||
|
* @version $Id: com/arsdigita/portalserver/ui/PortalParticipants.java $
|
||||||
public class ParticipantListModel implements ListModel {
|
public class ParticipantListModel implements ListModel {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/PortalParticipants.java#3 $" +
|
|
||||||
"$Author: dennis $" +
|
|
||||||
"$DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
private static Category s_log = Category.getInstance
|
private static Category s_log = Category.getInstance
|
||||||
(ParticipantListModel.class.getName());
|
(ParticipantListModel.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,13 +28,14 @@ import com.arsdigita.globalization.GlobalizedMessage;
|
||||||
|
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ParticipantModel.
|
||||||
|
*
|
||||||
|
* Reimplementation using original arsdigita portalserver code.
|
||||||
|
* @author dennis (2003/08/15)
|
||||||
|
* @version $Id: com/arsdigita/portalserver/ui/PortalParticipants.java $
|
||||||
public class ParticipantModel implements PropertySheetModel {
|
public class ParticipantModel implements PropertySheetModel {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/PortalParticipants.java#3 $" +
|
|
||||||
"$Author: dennis $" +
|
|
||||||
"$DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
private static Category s_log = Category.getInstance
|
private static Category s_log = Category.getInstance
|
||||||
(ParticipantModel.class.getName());
|
(ParticipantModel.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,7 @@ import org.apache.log4j.Logger;
|
||||||
|
|
||||||
// XXX this class is disgusting
|
// XXX this class is disgusting
|
||||||
/**
|
/**
|
||||||
* PersitentPortals are able to have more than one column, and the constructor
|
* PersistentPortals are able to have more than one column, and the constructor
|
||||||
* for PersitentPortal takes in an integer argument for number of columns.
|
* for PersitentPortal takes in an integer argument for number of columns.
|
||||||
*
|
*
|
||||||
* HomepagePortals defined on the jsp page each construct instances of this
|
* HomepagePortals defined on the jsp page each construct instances of this
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,5 @@
|
||||||
package com.arsdigita.london.portal.ui;
|
package com.arsdigita.london.portal.ui;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
|
||||||
import com.arsdigita.bebop.Page;
|
import com.arsdigita.bebop.Page;
|
||||||
import com.arsdigita.bebop.event.RequestEvent;
|
import com.arsdigita.bebop.event.RequestEvent;
|
||||||
import com.arsdigita.bebop.event.RequestListener;
|
import com.arsdigita.bebop.event.RequestListener;
|
||||||
|
|
@ -15,92 +14,103 @@ import com.arsdigita.london.portal.Workspace;
|
||||||
import com.arsdigita.london.portal.util.GlobalizationUtil;
|
import com.arsdigita.london.portal.util.GlobalizationUtil;
|
||||||
import com.arsdigita.web.Application;
|
import com.arsdigita.web.Application;
|
||||||
|
|
||||||
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author
|
||||||
|
*/
|
||||||
public class PersonalPortalPage extends Page {
|
public class PersonalPortalPage extends Page {
|
||||||
|
|
||||||
private static final Logger s_log = Logger
|
private static final Logger s_log = Logger
|
||||||
.getLogger(PersonalPortalPage.class);
|
.getLogger(PersonalPortalPage.class);
|
||||||
|
|
||||||
private final static String URL = (String) GlobalizationUtil.globalize(
|
private final static String URL = (String) GlobalizationUtil.globalize(
|
||||||
"portal.ui.base_personal_portal_path").localize();
|
"portal.ui.base_personal_portal_path").localize();
|
||||||
|
|
||||||
private final static String TITLE = (String) GlobalizationUtil.globalize(
|
private final static String TITLE = (String) GlobalizationUtil.globalize(
|
||||||
"portal.ui.base_personal_portal_title").localize();
|
"portal.ui.base_personal_portal_title").localize();
|
||||||
|
|
||||||
private final static String SLASH = "/";
|
private final static String SLASH = "/";
|
||||||
|
|
||||||
public final static String PERSONAL_PORTAL_PATH = SLASH + URL + SLASH;
|
public final static String PERSONAL_PORTAL_PATH = SLASH + URL + SLASH;
|
||||||
|
|
||||||
// constructor
|
/**
|
||||||
public PersonalPortalPage() {
|
* Constructor
|
||||||
addRequestListener(new PersonalPortalPageRequestListener());
|
*/
|
||||||
lock();
|
public PersonalPortalPage() {
|
||||||
}
|
addRequestListener(new PersonalPortalPageRequestListener());
|
||||||
|
lock();
|
||||||
|
}
|
||||||
|
|
||||||
private class PersonalPortalPageRequestListener implements RequestListener {
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
private class PersonalPortalPageRequestListener implements RequestListener {
|
||||||
|
|
||||||
public void pageRequested(RequestEvent e) {
|
public void pageRequested(RequestEvent e) {
|
||||||
|
|
||||||
User user;
|
User user;
|
||||||
String sUrl = "";
|
String sUrl = "";
|
||||||
Party party = Kernel.getContext().getParty();
|
Party party = Kernel.getContext().getParty();
|
||||||
|
|
||||||
if (party == null) {
|
if (party == null) {
|
||||||
sUrl = Initializer.getURL(Initializer.LOGIN_PAGE_KEY);
|
sUrl = Initializer.getURL(Initializer.LOGIN_PAGE_KEY);
|
||||||
|
} else {
|
||||||
|
try {
|
||||||
|
user = User.retrieve(party.getOID());
|
||||||
|
|
||||||
} else {
|
// try to get the user's workspace first
|
||||||
try {
|
s_log.debug("Attempting to retrieve the personal Workspace " +
|
||||||
user = User.retrieve(party.getOID());
|
"for User" + user);
|
||||||
|
Workspace personalWorkspace = Workspace
|
||||||
|
.retrievePersonalWorkspace(user);
|
||||||
|
|
||||||
// try to get the user's workspace first
|
// if it's not there we have to create it
|
||||||
s_log.debug("Attempting to retrieve the personal Workspace for User"
|
if (personalWorkspace == null) {
|
||||||
+ user);
|
s_log.debug("None found.");
|
||||||
Workspace personalWorkspace = Workspace
|
|
||||||
.retrievePersonalWorkspace(user);
|
|
||||||
|
|
||||||
// if it's not there we have to create it
|
// check if there is a base personal portal application
|
||||||
if (personalWorkspace == null) {
|
s_log.debug("Attempting to retrieve the existing personal-portal");
|
||||||
s_log.debug("None found.");
|
final Workspace personalPortalWorkspace = (Workspace) Application
|
||||||
|
.retrieveApplicationForPath(PERSONAL_PORTAL_PATH);
|
||||||
|
|
||||||
// check if there is a base personal portal application
|
if (personalPortalWorkspace == null) {
|
||||||
s_log.debug("Attempting to retrieve the existing personal-portal");
|
s_log.debug("None found. Setting up the parent ie personal-portal");
|
||||||
final Workspace personalPortalWorkspace = (Workspace) Application
|
new KernelExcursion() {
|
||||||
.retrieveApplicationForPath(PERSONAL_PORTAL_PATH);
|
public void excurse() {
|
||||||
|
setEffectiveParty(Kernel.getSystemParty());
|
||||||
|
Workspace createdPersonalPortal = Workspace
|
||||||
|
.createWorkspace(URL, TITLE, null,
|
||||||
|
true);
|
||||||
|
}
|
||||||
|
}.run();
|
||||||
|
}
|
||||||
|
|
||||||
if (personalPortalWorkspace == null) {
|
s_log.debug("Setting up the user's personal-portal/"
|
||||||
s_log.debug("None found. Setting up the parent ie personal-portal");
|
|
||||||
new KernelExcursion() {
|
|
||||||
public void excurse() {
|
|
||||||
setEffectiveParty(Kernel.getSystemParty());
|
|
||||||
Workspace createdPersonalPortal = Workspace
|
|
||||||
.createWorkspace(URL, TITLE, null,
|
|
||||||
true);
|
|
||||||
}
|
|
||||||
}.run();
|
|
||||||
}
|
|
||||||
|
|
||||||
s_log.debug("Setting up the user's personal-portal/"
|
|
||||||
+ user.getID());
|
+ user.getID());
|
||||||
personalWorkspace = Workspace
|
personalWorkspace = Workspace
|
||||||
.createPersonalWorkspace(user);
|
.createPersonalWorkspace(user);
|
||||||
}
|
}
|
||||||
|
|
||||||
sUrl = personalWorkspace.getPath();
|
sUrl = personalWorkspace.getPath();
|
||||||
|
|
||||||
} catch (DataObjectNotFoundException donfe) {
|
} catch (DataObjectNotFoundException donfe) {
|
||||||
sUrl = Initializer.getURL(Initializer.LOGIN_PAGE_KEY);
|
sUrl = Initializer.getURL(Initializer.LOGIN_PAGE_KEY);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Redirect to the user's portal (or login)
|
// Redirect to the user's portal (or login)
|
||||||
try {
|
try {
|
||||||
DispatcherHelper.sendRedirect(e.getPageState().getRequest(), e
|
DispatcherHelper.sendRedirect(e.getPageState().getRequest(),
|
||||||
.getPageState().getResponse(), sUrl);
|
e.getPageState().getResponse(), sUrl);
|
||||||
} catch (java.io.IOException ioe) {
|
} catch (java.io.IOException ioe) {
|
||||||
// this method can't throw an exception in this Interface, so
|
// this method can't throw an exception in this Interface, so
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ package com.arsdigita.london.portal.ui;
|
||||||
* @version $Id: PortalConstants.java 1174 2006-06-14 14:14:15Z fabrice $
|
* @version $Id: PortalConstants.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
*/
|
*/
|
||||||
public class PortalConstants {
|
public class PortalConstants {
|
||||||
public static final String versionId = "$Id: PortalConstants.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2002/10/23 08:48:40 $";
|
|
||||||
|
|
||||||
public static final String PORTAL_XML_NS = "http://www.uk.arsdigita.com/portal/1.0";
|
public static final String PORTAL_XML_NS = "http://www.uk.arsdigita.com/portal/1.0";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -34,15 +34,16 @@ import com.arsdigita.london.portal.WorkspacePage;
|
||||||
import com.arsdigita.util.Assert;
|
import com.arsdigita.util.Assert;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* PortalEditForm.
|
||||||
* <p>
|
* <p>
|
||||||
* <strong>Experimental</strong>
|
* <strong>Experimental</strong>
|
||||||
* </p>
|
* </p>
|
||||||
|
*
|
||||||
|
* @version $Id: PortalEditForm.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
*/
|
*/
|
||||||
public class PortalEditForm extends Form implements FormProcessListener,
|
public class PortalEditForm extends Form implements FormProcessListener,
|
||||||
FormInitListener {
|
FormInitListener {
|
||||||
|
|
||||||
public static final String versionId = "$Id: PortalEditForm.java 1174 2006-06-14 14:14:15Z fabrice $ by $Author: fabrice $, $DateTime: 2004/03/02 06:33:42 $";
|
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionModel m_workspace;
|
||||||
|
|
||||||
private PortalSelectionModel m_portal;
|
private PortalSelectionModel m_portal;
|
||||||
|
|
|
||||||
|
|
@ -42,8 +42,12 @@ import com.arsdigita.util.LockableImpl;
|
||||||
import com.arsdigita.web.Application;
|
import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.web.Web;
|
import com.arsdigita.web.Web;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CategoryComponent.
|
||||||
|
*
|
||||||
|
* @version $Id: CategoryComponent.java 1174 2006-06-14 14:14:15Z fabrice $
|
||||||
|
*/
|
||||||
public class CategoryComponent extends SimpleContainer {
|
public class CategoryComponent extends SimpleContainer {
|
||||||
public static final String versionId = "$Id: CategoryComponent.java 1174 2006-06-14 14:14:15Z fabrice $ $Author: fabrice $, $DateTime: 2004/02/27 11:39:08 $";
|
|
||||||
|
|
||||||
private static final Logger s_log = Logger
|
private static final Logger s_log = Logger
|
||||||
.getLogger(CategoryComponent.class);
|
.getLogger(CategoryComponent.class);
|
||||||
|
|
|
||||||
|
|
@ -25,11 +25,13 @@ import com.arsdigita.kernel.permissions.PrivilegeDescriptor;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Grant.
|
||||||
|
*
|
||||||
|
* Reimplementation using Ardigita portal server code.
|
||||||
|
* @version $Id: //portalserver/dev/src/com/arsdigita/portalserver/permissions/Grant.java#3 $
|
||||||
|
*/
|
||||||
class Grant {
|
class Grant {
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/permissions/Grant.java#3 $" +
|
|
||||||
"$Author: dennis $" +
|
|
||||||
"$DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
private static Logger s_log = Logger.getLogger(Grant.class.getName());
|
private static Logger s_log = Logger.getLogger(Grant.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,14 @@ import java.util.Iterator;
|
||||||
|
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* GrantsTable.
|
||||||
|
*
|
||||||
|
* @author dennis (2003/08/15)
|
||||||
|
* @version $Id: //portalserver/dev/src/com/arsdigita/portalserver/permissions/GrantsTable.java#2 $
|
||||||
|
*/
|
||||||
abstract class GrantsTable extends Table {
|
abstract class GrantsTable extends Table {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/permissions/GrantsTable.java#2 $" +
|
|
||||||
"$Author: dennis $" +
|
|
||||||
"$DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
private static Category s_log = Category.getInstance
|
private static Category s_log = Category.getInstance
|
||||||
(GrantsTable.class.getName());
|
(GrantsTable.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -31,13 +31,14 @@ import java.util.List;
|
||||||
|
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PartyPermissionEdit.
|
||||||
|
*
|
||||||
|
* @author dennis (2003/08/15)
|
||||||
|
* @version $Id: //portalserver/dev/src/com/arsdigita/portalserver/permissions/PartyPermissionEdit.java#2 $
|
||||||
|
*/
|
||||||
public class PartyPermissionEdit extends CompoundComponent {
|
public class PartyPermissionEdit extends CompoundComponent {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/permissions/PartyPermissionEdit.java#2 $" +
|
|
||||||
"$Author: dennis $" +
|
|
||||||
"$DateTime: 2003/08/15 13:46:34 $";
|
|
||||||
|
|
||||||
private static Category s_log = Category.getInstance
|
private static Category s_log = Category.getInstance
|
||||||
(PartyPermissionEdit.class.getName());
|
(PartyPermissionEdit.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -77,13 +77,14 @@ import java.util.ArrayList;
|
||||||
|
|
||||||
import org.apache.log4j.Category;
|
import org.apache.log4j.Category;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PeoplePane.
|
||||||
|
*
|
||||||
|
* @author ashah (2003/08/15)
|
||||||
|
* @version $Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/admin/PeoplePane.java $
|
||||||
|
*/
|
||||||
public class PeoplePane extends SimpleContainer {
|
public class PeoplePane extends SimpleContainer {
|
||||||
|
|
||||||
public static final String versionId =
|
|
||||||
"$Id: //portalserver/dev/src/com/arsdigita/portalserver/ui/admin/PeoplePane.java#7 $" +
|
|
||||||
"$Author: ashah $" +
|
|
||||||
"$DateTime: 2003/08/15 15:50:10 $";
|
|
||||||
|
|
||||||
private static final Category s_log = Category.getInstance
|
private static final Category s_log = Category.getInstance
|
||||||
(PeoplePane.class.getName());
|
(PeoplePane.class.getName());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue