Removed unused code, reorganized code, documentation added.
git-svn-id: https://svn.libreccm.org/ccm/trunk@2067 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
2a121e0aff
commit
a65452489f
|
|
@ -16,8 +16,9 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.jsp;
|
package com.arsdigita.portalworkspace.ui.personal;
|
||||||
|
|
||||||
|
import com.arsdigita.portalworkspace.ui.DefaultWorkspaceSelectionModel;
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.event.ActionEvent;
|
import com.arsdigita.bebop.event.ActionEvent;
|
||||||
import com.arsdigita.bebop.event.ActionListener;
|
import com.arsdigita.bebop.event.ActionListener;
|
||||||
|
|
@ -42,6 +43,18 @@ import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Intended usage undocumented, class actually not referenced by any code.
|
||||||
|
// Probably an experimental alternativ implementation to create a portal page
|
||||||
|
// based on / derived from WorkspaceComponent (which in turn derived from
|
||||||
|
// SimpleComponent).
|
||||||
|
// Altermnative to WorkspaceEditor / WorkspaceViewer, derived from
|
||||||
|
// class AbstractWorkspaceComponent (which in turn derived form SimpleComponent
|
||||||
|
// as well).
|
||||||
|
// Seems to use the same WorkspaceSelectionModel process to fetch the actual
|
||||||
|
// instance to serve.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Another specific entry point into a portal workspace page, here based
|
* Another specific entry point into a portal workspace page, here based
|
||||||
* upon WorkspaceComponent (as an alternative to be based on
|
* upon WorkspaceComponent (as an alternative to be based on
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.jsp;
|
package com.arsdigita.portalworkspace.ui.personal;
|
||||||
|
|
||||||
import com.arsdigita.bebop.Component;
|
import com.arsdigita.bebop.Component;
|
||||||
import com.arsdigita.bebop.Container;
|
import com.arsdigita.bebop.Container;
|
||||||
|
|
@ -34,12 +34,25 @@ import com.arsdigita.toolbox.ui.SecurityContainer;
|
||||||
import com.arsdigita.web.LoginSignal;
|
import com.arsdigita.web.LoginSignal;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Intended usage undocumented, class actually not referenced by any code.
|
||||||
|
// Probably an experimental alternativ implementation to create a portal page
|
||||||
|
// based on / derived from WorkspaceComponent (which in turn derived from
|
||||||
|
// SimpleComponent).
|
||||||
|
// Altermnative to WorkspaceEditor / WorkspaceViewer, derived from
|
||||||
|
// class AbstractWorkspaceComponent (which in turn derived form SimpleComponent
|
||||||
|
// as well).
|
||||||
|
// Seems to use the same WorkspaceSelectionModel process to fetch the actual
|
||||||
|
// instance to serve.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Another specific entry point into a portal workspace page, here based upon
|
* Another specific entry point into a portal workspace page, here based upon
|
||||||
* WorkspaceComponent (as an alternative to AbstractWorkspaceComponent.
|
* WorkspaceComponent (as an alternative to AbstractWorkspaceComponent.
|
||||||
*/
|
*/
|
||||||
// As of APLAWS 1.0.4 / CCM 6.6.x this class may never have been used and is
|
// As of APLAWS 1.0.4 / CCM 6.6.x this class may never have been used and is
|
||||||
// propably unfinished work or undinished port from ccm-portalserver module.
|
// propably unfinished work or unfinished port from ccm-portalserver module.
|
||||||
// As with WorkspaceViewer it should be invoked by a jsp. It is not directly
|
// As with WorkspaceViewer it should be invoked by a jsp. It is not directly
|
||||||
// used by any java code.
|
// used by any java code.
|
||||||
public class PackageWorkspace extends WorkspaceComponent {
|
public class PackageWorkspace extends WorkspaceComponent {
|
||||||
|
|
@ -47,7 +60,7 @@ public class PackageWorkspace extends WorkspaceComponent {
|
||||||
private RequestLocal m_isAdmin = new RequestLocal();
|
private RequestLocal m_isAdmin = new RequestLocal();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* Constructor.
|
||||||
*/
|
*/
|
||||||
public PackageWorkspace() {
|
public PackageWorkspace() {
|
||||||
super(new PackageWorkspaceSelectionModel());
|
super(new PackageWorkspaceSelectionModel());
|
||||||
|
|
@ -59,6 +72,7 @@ public class PackageWorkspace extends WorkspaceComponent {
|
||||||
* @param parent
|
* @param parent
|
||||||
* @param child
|
* @param child
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
protected void addCustomizeLinks(Container parent, Component child) {
|
protected void addCustomizeLinks(Container parent, Component child) {
|
||||||
Container secure = new WorkspaceSecurityContainer(child);
|
Container secure = new WorkspaceSecurityContainer(child);
|
||||||
super.addCustomizeLinks(parent, secure);
|
super.addCustomizeLinks(parent, secure);
|
||||||
|
|
@ -16,10 +16,24 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.personalws;
|
package com.arsdigita.portalworkspace.ui.personal;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.WorkspaceComponent;
|
import com.arsdigita.portalworkspace.ui.WorkspaceComponent;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Intended usage undocumented, class actually not referenced by any code.
|
||||||
|
// Probably an experimental alternativ implementation to create a portal page
|
||||||
|
// based on / derived from WorkspaceComponent (which in turn derived from
|
||||||
|
// SimpleComponent).
|
||||||
|
// Altermnative to WorkspaceEditor / WorkspaceViewer, derived from
|
||||||
|
// class AbstractWorkspaceComponent (which in turn derived form SimpleComponent
|
||||||
|
// as well).
|
||||||
|
// Seems to use the same WorkspaceSelectionModel process to fetch the actual
|
||||||
|
// instance to serve.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Another specific entry point into a portal workspace page, here based upon
|
* Another specific entry point into a portal workspace page, here based upon
|
||||||
* WorkspaceComponent (as an alternative to AbstractWorkspaceComponent.
|
* WorkspaceComponent (as an alternative to AbstractWorkspaceComponent.
|
||||||
|
|
@ -43,6 +43,15 @@ import com.arsdigita.web.RedirectSignal;
|
||||||
import com.arsdigita.web.URL;
|
import com.arsdigita.web.URL;
|
||||||
import com.arsdigita.xml.Element;
|
import com.arsdigita.xml.Element;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// Intended usage undocumented. Seems to be an experiomental alternativ to
|
||||||
|
// AbstractWorkspaceComponent (which is derived from SimpleContainer as well)
|
||||||
|
// as a parent class to classses which create protal pages.
|
||||||
|
// Nevertheless: Wild guess!
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Purpose?.
|
* Purpose?.
|
||||||
*
|
*
|
||||||
|
|
@ -34,7 +34,7 @@ import com.arsdigita.bebop.portal.PortalModelBuilder;
|
||||||
import com.arsdigita.bebop.portal.PortletRenderer;
|
import com.arsdigita.bebop.portal.PortletRenderer;
|
||||||
import com.arsdigita.portalworkspace.ui.PortalSelectionModel;
|
import com.arsdigita.portalworkspace.ui.PortalSelectionModel;
|
||||||
import com.arsdigita.portalworkspace.ui.PortletSelectionModel;
|
import com.arsdigita.portalworkspace.ui.PortletSelectionModel;
|
||||||
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionModel;
|
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionAbstractModel;
|
||||||
import com.arsdigita.persistence.DataQuery;
|
import com.arsdigita.persistence.DataQuery;
|
||||||
import com.arsdigita.persistence.SessionManager;
|
import com.arsdigita.persistence.SessionManager;
|
||||||
import com.arsdigita.portal.PortletType;
|
import com.arsdigita.portal.PortletType;
|
||||||
|
|
@ -58,7 +58,7 @@ public class StatefulPersistentPortal extends SimpleContainer {
|
||||||
private static final Logger s_log =
|
private static final Logger s_log =
|
||||||
Logger.getLogger(StatefulPersistentPortal.class);
|
Logger.getLogger(StatefulPersistentPortal.class);
|
||||||
|
|
||||||
// private WorkspaceSelectionModel m_workspace;
|
// private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
// private PortletSelectionModel m_portlet;
|
// private PortletSelectionModel m_portlet;
|
||||||
private PortalModelBuilder m_portalModelBuilder;
|
private PortalModelBuilder m_portalModelBuilder;
|
||||||
private PortalSelectionModel m_portal;
|
private PortalSelectionModel m_portal;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ import com.arsdigita.kernel.permissions.PermissionDescriptor;
|
||||||
import com.arsdigita.kernel.permissions.PermissionManager;
|
import com.arsdigita.kernel.permissions.PermissionManager;
|
||||||
import com.arsdigita.kernel.permissions.PermissionService;
|
import com.arsdigita.kernel.permissions.PermissionService;
|
||||||
import com.arsdigita.kernel.permissions.PrivilegeDescriptor;
|
import com.arsdigita.kernel.permissions.PrivilegeDescriptor;
|
||||||
import com.arsdigita.portalworkspace.ui.personalws.PersonalPortalPage;
|
import com.arsdigita.portalworkspace.ui.personal.PersonalPortalPage;
|
||||||
import com.arsdigita.persistence.DataAssociation;
|
import com.arsdigita.persistence.DataAssociation;
|
||||||
import com.arsdigita.persistence.DataAssociationCursor;
|
import com.arsdigita.persistence.DataAssociationCursor;
|
||||||
import com.arsdigita.persistence.DataCollection;
|
import com.arsdigita.persistence.DataCollection;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
*/
|
*/
|
||||||
public abstract class AbstractWorkspaceComponent extends SimpleContainer {
|
public abstract class AbstractWorkspaceComponent extends SimpleContainer {
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
|
|
||||||
private DefaultPortalSelectionModel m_portal;
|
private DefaultPortalSelectionModel m_portal;
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@ public abstract class AbstractWorkspaceComponent extends SimpleContainer {
|
||||||
*
|
*
|
||||||
* @param workspace
|
* @param workspace
|
||||||
*/
|
*/
|
||||||
public AbstractWorkspaceComponent(WorkspaceSelectionModel workspace) {
|
public AbstractWorkspaceComponent(WorkspaceSelectionAbstractModel workspace) {
|
||||||
|
|
||||||
/* Creates a WorkspaceComponent (SimpleContainer) that will wrap its
|
/* Creates a WorkspaceComponent (SimpleContainer) that will wrap its
|
||||||
* children in the specified tag. */
|
* children in the specified tag. */
|
||||||
|
|
@ -75,7 +75,7 @@ public abstract class AbstractWorkspaceComponent extends SimpleContainer {
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public void setWorkspaceModel(WorkspaceSelectionModel workspace) {
|
public void setWorkspaceModel(WorkspaceSelectionAbstractModel workspace) {
|
||||||
m_workspace = workspace;
|
m_workspace = workspace;
|
||||||
m_details.setWorkspaceModel(workspace);
|
m_details.setWorkspaceModel(workspace);
|
||||||
m_portalList.setWorkspaceModel(workspace);
|
m_portalList.setWorkspaceModel(workspace);
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ import com.arsdigita.util.Assert;
|
||||||
* the inclusion of a portal workspace as a leaf page into a navigation tree.
|
* the inclusion of a portal workspace as a leaf page into a navigation tree.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class CategoryPortalSelectionModel extends WorkspaceSelectionModel {
|
public class CategoryPortalSelectionModel extends WorkspaceSelectionAbstractModel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ import java.math.BigDecimal;
|
||||||
public class DefaultPortalSelectionModel extends ACSObjectSelectionModel
|
public class DefaultPortalSelectionModel extends ACSObjectSelectionModel
|
||||||
implements PortalSelectionModel {
|
implements PortalSelectionModel {
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -46,7 +46,7 @@ public class DefaultPortalSelectionModel extends ACSObjectSelectionModel
|
||||||
this(null, param);
|
this(null, param);
|
||||||
}
|
}
|
||||||
|
|
||||||
public DefaultPortalSelectionModel(WorkspaceSelectionModel workspace,
|
public DefaultPortalSelectionModel(WorkspaceSelectionAbstractModel workspace,
|
||||||
BigDecimalParameter param) {
|
BigDecimalParameter param) {
|
||||||
super(WorkspacePage.class.getName(),
|
super(WorkspacePage.class.getName(),
|
||||||
WorkspacePage.BASE_DATA_OBJECT_TYPE, param);
|
WorkspacePage.BASE_DATA_OBJECT_TYPE, param);
|
||||||
|
|
@ -58,7 +58,7 @@ public class DefaultPortalSelectionModel extends ACSObjectSelectionModel
|
||||||
*
|
*
|
||||||
* @param workspace
|
* @param workspace
|
||||||
*/
|
*/
|
||||||
public void setWorkspaceModel(WorkspaceSelectionModel workspace) {
|
public void setWorkspaceModel(WorkspaceSelectionAbstractModel workspace) {
|
||||||
m_workspace = workspace;
|
m_workspace = workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ import com.arsdigita.util.UncheckedWrapperException;
|
||||||
public class LayoutForm extends Form implements FormProcessListener,
|
public class LayoutForm extends Form implements FormProcessListener,
|
||||||
FormInitListener {
|
FormInitListener {
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
|
|
||||||
private PortalSelectionModel m_portal;
|
private PortalSelectionModel m_portal;
|
||||||
|
|
||||||
|
|
@ -67,7 +67,7 @@ public class LayoutForm extends Form implements FormProcessListener,
|
||||||
this(null, portal);
|
this(null, portal);
|
||||||
}
|
}
|
||||||
|
|
||||||
public LayoutForm(WorkspaceSelectionModel workspace,
|
public LayoutForm(WorkspaceSelectionAbstractModel workspace,
|
||||||
PortalSelectionModel portal) {
|
PortalSelectionModel portal) {
|
||||||
super("editLayout", new SimpleContainer("portal:editLayout",
|
super("editLayout", new SimpleContainer("portal:editLayout",
|
||||||
WorkspacePage.PORTAL_XML_NS));
|
WorkspacePage.PORTAL_XML_NS));
|
||||||
|
|
@ -104,7 +104,7 @@ public class LayoutForm extends Form implements FormProcessListener,
|
||||||
addInitListener(this);
|
addInitListener(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWorkspaceModel(WorkspaceSelectionModel workspace) {
|
public void setWorkspaceModel(WorkspaceSelectionAbstractModel workspace) {
|
||||||
m_workspace = workspace;
|
m_workspace = workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -94,7 +94,7 @@ public class PersistentPortal extends SimpleContainer {
|
||||||
|
|
||||||
public static final String ACTION_DELETE = "delete";
|
public static final String ACTION_DELETE = "delete";
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
private PortalSelectionModel m_portal;
|
private PortalSelectionModel m_portal;
|
||||||
private PortletTypeSelectionModel m_portletType;
|
private PortletTypeSelectionModel m_portletType;
|
||||||
private PortletSelectionModel m_portlet;
|
private PortletSelectionModel m_portlet;
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ import com.arsdigita.util.Assert;
|
||||||
public class PortalEditForm extends Form implements FormProcessListener,
|
public class PortalEditForm extends Form implements FormProcessListener,
|
||||||
FormInitListener {
|
FormInitListener {
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
private PortalSelectionModel m_portal;
|
private PortalSelectionModel m_portal;
|
||||||
private TextField m_title;
|
private TextField m_title;
|
||||||
private Submit m_save;
|
private Submit m_save;
|
||||||
|
|
@ -67,7 +67,7 @@ public class PortalEditForm extends Form implements FormProcessListener,
|
||||||
* @param workspace
|
* @param workspace
|
||||||
* @param portal
|
* @param portal
|
||||||
*/
|
*/
|
||||||
public PortalEditForm(WorkspaceSelectionModel workspace,
|
public PortalEditForm(WorkspaceSelectionAbstractModel workspace,
|
||||||
PortalSelectionModel portal) {
|
PortalSelectionModel portal) {
|
||||||
|
|
||||||
super("editPortal", new SimpleContainer("portal:editPortal",
|
super("editPortal", new SimpleContainer("portal:editPortal",
|
||||||
|
|
@ -93,7 +93,7 @@ public class PortalEditForm extends Form implements FormProcessListener,
|
||||||
*
|
*
|
||||||
* @param workspace
|
* @param workspace
|
||||||
*/
|
*/
|
||||||
public void setWorkspaceModel(WorkspaceSelectionModel workspace) {
|
public void setWorkspaceModel(WorkspaceSelectionAbstractModel workspace) {
|
||||||
m_workspace = workspace;
|
m_workspace = workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ import com.arsdigita.xml.XML;
|
||||||
*/
|
*/
|
||||||
public abstract class PortalList extends SimpleContainer {
|
public abstract class PortalList extends SimpleContainer {
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
private PortalSelectionModel m_portal;
|
private PortalSelectionModel m_portal;
|
||||||
|
|
||||||
private Map m_actions = new HashMap();
|
private Map m_actions = new HashMap();
|
||||||
|
|
@ -61,7 +61,7 @@ public abstract class PortalList extends SimpleContainer {
|
||||||
* @param workspace
|
* @param workspace
|
||||||
* @param portal
|
* @param portal
|
||||||
*/
|
*/
|
||||||
public PortalList(WorkspaceSelectionModel workspace,
|
public PortalList(WorkspaceSelectionAbstractModel workspace,
|
||||||
PortalSelectionModel portal) {
|
PortalSelectionModel portal) {
|
||||||
super("portal:portalList", WorkspacePage.PORTAL_XML_NS);
|
super("portal:portalList", WorkspacePage.PORTAL_XML_NS);
|
||||||
|
|
||||||
|
|
@ -69,7 +69,7 @@ public abstract class PortalList extends SimpleContainer {
|
||||||
m_portal = portal;
|
m_portal = portal;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWorkspaceModel(WorkspaceSelectionModel workspace) {
|
public void setWorkspaceModel(WorkspaceSelectionAbstractModel workspace) {
|
||||||
m_workspace = workspace;
|
m_workspace = workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ public class PortalListEditor extends PortalListViewer {
|
||||||
this(null, portal);
|
this(null, portal);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PortalListEditor(WorkspaceSelectionModel workspace,
|
public PortalListEditor(WorkspaceSelectionAbstractModel workspace,
|
||||||
PortalSelectionModel portal) {
|
PortalSelectionModel portal) {
|
||||||
super(workspace, portal);
|
super(workspace, portal);
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ public class PortalListEditor extends PortalListViewer {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWorkspaceModel(WorkspaceSelectionModel workspace) {
|
public void setWorkspaceModel(WorkspaceSelectionAbstractModel workspace) {
|
||||||
super.setWorkspaceModel(workspace);
|
super.setWorkspaceModel(workspace);
|
||||||
m_edit.setWorkspaceModel(workspace);
|
m_edit.setWorkspaceModel(workspace);
|
||||||
m_layout.setWorkspaceModel(workspace);
|
m_layout.setWorkspaceModel(workspace);
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public class PortalListViewer extends PortalList {
|
||||||
this(null, portal);
|
this(null, portal);
|
||||||
}
|
}
|
||||||
|
|
||||||
public PortalListViewer(WorkspaceSelectionModel workspace,
|
public PortalListViewer(WorkspaceSelectionAbstractModel workspace,
|
||||||
PortalSelectionModel portal) {
|
PortalSelectionModel portal) {
|
||||||
|
|
||||||
super(workspace, portal);
|
super(workspace, portal);
|
||||||
|
|
|
||||||
|
|
@ -37,13 +37,13 @@ import com.arsdigita.xml.XML;
|
||||||
*/
|
*/
|
||||||
public class WorkspaceDetails extends SimpleComponent {
|
public class WorkspaceDetails extends SimpleComponent {
|
||||||
|
|
||||||
private WorkspaceSelectionModel m_workspace;
|
private WorkspaceSelectionAbstractModel m_workspace;
|
||||||
|
|
||||||
public WorkspaceDetails(WorkspaceSelectionModel workspace) {
|
public WorkspaceDetails(WorkspaceSelectionAbstractModel workspace) {
|
||||||
m_workspace = workspace;
|
m_workspace = workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setWorkspaceModel(WorkspaceSelectionModel workspace) {
|
public void setWorkspaceModel(WorkspaceSelectionAbstractModel workspace) {
|
||||||
m_workspace = workspace;
|
m_workspace = workspace;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -16,9 +16,8 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.jsp;
|
package com.arsdigita.portalworkspace.ui;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionModel;
|
|
||||||
import com.arsdigita.bebop.ActionLink;
|
import com.arsdigita.bebop.ActionLink;
|
||||||
import com.arsdigita.bebop.Form;
|
import com.arsdigita.bebop.Form;
|
||||||
import com.arsdigita.bebop.FormProcessException;
|
import com.arsdigita.bebop.FormProcessException;
|
||||||
|
|
@ -39,21 +38,15 @@ import com.arsdigita.kernel.Kernel;
|
||||||
import com.arsdigita.kernel.Party;
|
import com.arsdigita.kernel.Party;
|
||||||
import com.arsdigita.portalworkspace.Workspace;
|
import com.arsdigita.portalworkspace.Workspace;
|
||||||
import com.arsdigita.portalworkspace.WorkspacePage;
|
import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
import com.arsdigita.portalworkspace.ui.AbstractWorkspaceComponent;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PersistentPortal;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PortalHelper;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PortalList;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PortalListEditor;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PortalSelectionModel;
|
|
||||||
import com.arsdigita.portalworkspace.util.GlobalizationUtil;
|
import com.arsdigita.portalworkspace.util.GlobalizationUtil;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Another entry point into a standard portal workspace page where the
|
* Entry point into a standard (public or access restricted) portal workspace
|
||||||
* page is constructed in "edit" mode to allow configuration and
|
* page where the page is constructed in "edit" mode to allow configuration
|
||||||
* modification by an authorized participant.
|
* and modification by an authorized participant.
|
||||||
*
|
*
|
||||||
* It is used via a jsp page which is invoked at the applications url.
|
* It is used via a jsp page which is invoked at the applications url.
|
||||||
*
|
*
|
||||||
|
|
@ -95,7 +88,7 @@ public class WorkspaceEditor extends AbstractWorkspaceComponent {
|
||||||
*
|
*
|
||||||
* @param workspace
|
* @param workspace
|
||||||
*/
|
*/
|
||||||
public WorkspaceEditor(WorkspaceSelectionModel workspace) {
|
public WorkspaceEditor(WorkspaceSelectionAbstractModel workspace) {
|
||||||
|
|
||||||
super(workspace);
|
super(workspace);
|
||||||
s_log.debug("WorkspaceEditor constructed");
|
s_log.debug("WorkspaceEditor constructed");
|
||||||
|
|
@ -24,10 +24,15 @@ import com.arsdigita.bebop.RequestLocal;
|
||||||
import com.arsdigita.portalworkspace.Workspace;
|
import com.arsdigita.portalworkspace.Workspace;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Basic methods to select a workspace (portal application type instance)
|
||||||
|
* to either display in view mode (eg using WorkspaceViewer class) or in
|
||||||
|
* edit mode (eg using WorkspaceEdit class).
|
||||||
*
|
*
|
||||||
*
|
* Child classes are specifically required to overwrite the abstract method
|
||||||
|
* getDefaultWorkspace and adapt the selection procedure to specific
|
||||||
|
* application / usage requirements.
|
||||||
*/
|
*/
|
||||||
public abstract class WorkspaceSelectionModel {
|
public abstract class WorkspaceSelectionAbstractModel {
|
||||||
|
|
||||||
/** Workspace. Bound to the current HTTP request. */
|
/** Workspace. Bound to the current HTTP request. */
|
||||||
private RequestLocal m_workspace;
|
private RequestLocal m_workspace;
|
||||||
|
|
@ -35,7 +40,7 @@ public abstract class WorkspaceSelectionModel {
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*/
|
*/
|
||||||
public WorkspaceSelectionModel() {
|
public WorkspaceSelectionAbstractModel() {
|
||||||
m_workspace = new RequestLocal() {
|
m_workspace = new RequestLocal() {
|
||||||
@Override
|
@Override
|
||||||
public Object initialValue(PageState state) {
|
public Object initialValue(PageState state) {
|
||||||
|
|
@ -16,9 +16,8 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.jsp;
|
package com.arsdigita.portalworkspace.ui;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionModel;
|
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.domain.DataObjectNotFoundException;
|
import com.arsdigita.domain.DataObjectNotFoundException;
|
||||||
import com.arsdigita.kernel.Kernel;
|
import com.arsdigita.kernel.Kernel;
|
||||||
|
|
@ -26,11 +25,19 @@ import com.arsdigita.kernel.Party;
|
||||||
import com.arsdigita.portalworkspace.Workspace;
|
import com.arsdigita.portalworkspace.Workspace;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Default Implementation of abstract class WorkspaceSelectionAbstractModel which
|
||||||
|
* provides a default implementation of the (abstract) getDefaultWorkspace
|
||||||
|
* method.
|
||||||
|
*
|
||||||
|
* This Implementation checks whether a user workspace has to be served and
|
||||||
|
* otherwise returns a default workspace.
|
||||||
|
*
|
||||||
|
* Used by the the portal workspace JSP's (access path specified in web.xml)
|
||||||
|
* used to construct a workspace in either view (index.jsp) or edit (edit.jsp)
|
||||||
|
* mode
|
||||||
*
|
*
|
||||||
* Used by the jsp, specified in web.xml and used to construct a personal
|
|
||||||
* homepage for an loggedIn user
|
|
||||||
*/
|
*/
|
||||||
public class DefaultWorkspaceSelectionModel extends WorkspaceSelectionModel {
|
public class WorkspaceSelectionDefaultModel extends WorkspaceSelectionAbstractModel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -16,18 +16,33 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
package com.arsdigita.portalworkspace.ui.jsp;
|
package com.arsdigita.portalworkspace.ui;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionModel;
|
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionAbstractModel;
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.kernel.Kernel;
|
import com.arsdigita.kernel.Kernel;
|
||||||
import com.arsdigita.portalworkspace.Workspace;
|
import com.arsdigita.portalworkspace.Workspace;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Intended usage undocumented.
|
||||||
*
|
*
|
||||||
|
* Seems to provides a lighter version if WorkspaceSelectionDefaultModel
|
||||||
|
* which takes not into account whether to jump to a personal workspace
|
||||||
|
* or not.
|
||||||
|
*
|
||||||
|
* In order to makle use of it the portalworkspace JSP must be modified,
|
||||||
|
* selecting this WorkspaceSelectionModel, eg.
|
||||||
|
*
|
||||||
|
* instead of:
|
||||||
|
* ((AbstractWorkspaceComponent)edit).setWorkspaceModel(
|
||||||
|
* new WorkspaceSelectionDefaultModel());
|
||||||
|
* use
|
||||||
|
* ((AbstractWorkspaceComponent)edit).setWorkspaceModel(
|
||||||
|
* new WorkspaceSelectionPackageModel());
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class PackageWorkspaceSelectionModel extends WorkspaceSelectionModel {
|
public class WorkspaceSelectionPackageModel extends WorkspaceSelectionAbstractModel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
|
@ -13,9 +13,9 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.personalws;
|
package com.arsdigita.portalworkspace.ui;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionModel;
|
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionAbstractModel;
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.domain.DataObjectNotFoundException;
|
import com.arsdigita.domain.DataObjectNotFoundException;
|
||||||
import com.arsdigita.kernel.Kernel;
|
import com.arsdigita.kernel.Kernel;
|
||||||
|
|
@ -24,10 +24,29 @@ import com.arsdigita.portalworkspace.Workspace;
|
||||||
import com.arsdigita.util.UncheckedWrapperException;
|
import com.arsdigita.util.UncheckedWrapperException;
|
||||||
import com.arsdigita.web.LoginSignal;
|
import com.arsdigita.web.LoginSignal;
|
||||||
|
|
||||||
public class UserWorkspaceSelectionModel extends WorkspaceSelectionModel {
|
|
||||||
|
/**
|
||||||
|
* Intended usage undocumented.
|
||||||
|
*
|
||||||
|
* Seems to provides a lighter version if WorkspaceSelectionDefaultModel
|
||||||
|
* which requires a user logged-in and a user specific workspace.
|
||||||
|
* Probably useful for non-public sites.
|
||||||
|
*
|
||||||
|
* In order to makle use of it the portalworkspace JSP must be modified,
|
||||||
|
* selecting this WorkspaceSelectionModel, eg.
|
||||||
|
*
|
||||||
|
* instead of:
|
||||||
|
* ((AbstractWorkspaceComponent)edit).setWorkspaceModel(
|
||||||
|
* new WorkspaceSelectionDefaultModel());
|
||||||
|
* use
|
||||||
|
* ((AbstractWorkspaceComponent)edit).setWorkspaceModel(
|
||||||
|
* new WorkspaceSelectionUserModel());
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class WorkspaceSelectionUserModel extends WorkspaceSelectionAbstractModel {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @param state
|
* @param state
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -16,19 +16,15 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.jsp;
|
package com.arsdigita.portalworkspace.ui;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.WorkspacePage;
|
import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
import com.arsdigita.portalworkspace.ui.WorkspaceSelectionModel;
|
|
||||||
import com.arsdigita.portalworkspace.ui.AbstractWorkspaceComponent;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PersistentPortal;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PortalList;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PortalListViewer;
|
|
||||||
import com.arsdigita.portalworkspace.ui.PortalSelectionModel;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Main (default) entry point into a standard portal workspace page where the
|
* Main (default) entry point into a standard (public or access restricted)
|
||||||
* page is constructed in "view" mode to present information to a visitor.
|
* portal workspace page where the page is constructed in "view" mode to
|
||||||
|
* present information to a visitor.
|
||||||
*
|
*
|
||||||
* It is used via a jsp page which is invoked at the applications url.
|
* It is used via a jsp page which is invoked at the applications url.
|
||||||
*
|
*
|
||||||
|
|
@ -57,11 +53,11 @@ public class WorkspaceViewer extends AbstractWorkspaceComponent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor instantiates a WorkspaceViewer for a specific workspace
|
* Constructor instantiates a WorkspaceViewer for a specific workspace
|
||||||
* object and sets the xml tags accordingly.
|
* object (instance) and sets the xml tags accordingly.
|
||||||
*
|
*
|
||||||
* @param workspace
|
* @param workspace
|
||||||
*/
|
*/
|
||||||
public WorkspaceViewer(WorkspaceSelectionModel workspace) {
|
public WorkspaceViewer(WorkspaceSelectionAbstractModel workspace) {
|
||||||
super(workspace);
|
super(workspace);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ import com.arsdigita.bebop.SimpleContainer;
|
||||||
import com.arsdigita.kernel.Group;
|
import com.arsdigita.kernel.Group;
|
||||||
import com.arsdigita.kernel.Kernel;
|
import com.arsdigita.kernel.Kernel;
|
||||||
import com.arsdigita.kernel.Role;
|
import com.arsdigita.kernel.Role;
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
import com.arsdigita.portalworkspace.ui.sitemap.ApplicationSelectionModel;
|
||||||
import com.arsdigita.portalworkspace.Workspace;
|
import com.arsdigita.portalworkspace.Workspace;
|
||||||
import com.arsdigita.portalworkspace.WorkspacePage;
|
import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.admin;
|
package com.arsdigita.portalworkspace.ui.admin;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
import com.arsdigita.portalworkspace.ui.sitemap.ApplicationSelectionModel;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
import com.arsdigita.bebop.Label;
|
import com.arsdigita.bebop.Label;
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.admin;
|
package com.arsdigita.portalworkspace.ui.admin;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
import com.arsdigita.portalworkspace.ui.sitemap.ApplicationSelectionModel;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package com.arsdigita.portalworkspace.ui.admin;
|
package com.arsdigita.portalworkspace.ui.admin;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
import com.arsdigita.portalworkspace.ui.sitemap.ApplicationSelectionModel;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
import com.arsdigita.bebop.ActionLink;
|
import com.arsdigita.bebop.ActionLink;
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,46 @@
|
||||||
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Portal</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Classes to compose the PortalWorkspaceuser interface for
|
||||||
|
their visitors .
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The portal pages may be generally (publically) available or
|
||||||
|
restricted for registered and logged-in users and may or may
|
||||||
|
not require the user to be a member of a specific group. By
|
||||||
|
default the public user is sufficient who is automatically
|
||||||
|
member of the member group.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The user interface is accessed by a JSPs (in contrast to be
|
||||||
|
constructed by a servlet).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The class WorkspaceViewer is the jsp's entry point in view
|
||||||
|
mode for readers.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
The class WorkspaceEditor is the jsp's entry point for users
|
||||||
|
permitted to style the portal page (add, delete, and modify
|
||||||
|
portlets).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Package <code>com/arsdigita/portalworkspace/ui/admin</code>
|
||||||
|
contains classes for additional administrative tasks (add and
|
||||||
|
remove members of access groups, associate a navigation
|
||||||
|
category, etc.).
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.personalws;
|
package com.arsdigita.portalworkspace.ui.personal;
|
||||||
|
|
||||||
import com.arsdigita.bebop.Page;
|
import com.arsdigita.bebop.Page;
|
||||||
import com.arsdigita.bebop.event.RequestEvent;
|
import com.arsdigita.bebop.event.RequestEvent;
|
||||||
|
|
@ -22,7 +22,6 @@ import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.SimpleContainer;
|
import com.arsdigita.bebop.SimpleContainer;
|
||||||
import com.arsdigita.domain.DomainObjectXMLRenderer;
|
import com.arsdigita.domain.DomainObjectXMLRenderer;
|
||||||
import com.arsdigita.portalworkspace.WorkspacePage;
|
import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
|
||||||
import com.arsdigita.web.Application;
|
import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.xml.Element;
|
import com.arsdigita.xml.Element;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,6 @@ import com.arsdigita.bebop.SimpleContainer;
|
||||||
import com.arsdigita.domain.DomainObjectFactory;
|
import com.arsdigita.domain.DomainObjectFactory;
|
||||||
import com.arsdigita.domain.DomainObjectXMLRenderer;
|
import com.arsdigita.domain.DomainObjectXMLRenderer;
|
||||||
import com.arsdigita.persistence.OID;
|
import com.arsdigita.persistence.OID;
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
|
||||||
import com.arsdigita.portalworkspace.WorkspacePage;
|
import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
import com.arsdigita.util.UncheckedWrapperException;
|
import com.arsdigita.util.UncheckedWrapperException;
|
||||||
import com.arsdigita.web.Application;
|
import com.arsdigita.web.Application;
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,6 @@ import com.arsdigita.kernel.Resource;
|
||||||
import com.arsdigita.kernel.ui.ResourceConfigComponent;
|
import com.arsdigita.kernel.ui.ResourceConfigComponent;
|
||||||
import com.arsdigita.persistence.OID;
|
import com.arsdigita.persistence.OID;
|
||||||
import com.arsdigita.portalworkspace.WorkspacePage;
|
import com.arsdigita.portalworkspace.WorkspacePage;
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
|
||||||
import com.arsdigita.web.Application;
|
import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.web.ApplicationType;
|
import com.arsdigita.web.ApplicationType;
|
||||||
import com.arsdigita.web.ApplicationTypeCollection;
|
import com.arsdigita.web.ApplicationTypeCollection;
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui;
|
package com.arsdigita.portalworkspace.ui.sitemap;
|
||||||
|
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
|
|
@ -26,21 +26,28 @@ import com.arsdigita.web.Application;
|
||||||
import com.arsdigita.web.Web;
|
import com.arsdigita.web.Web;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This selection model adds an (optional?) default value which will be
|
* Selection model for applications, specifically used by portalworkspace
|
||||||
* returned when nothing is selected.
|
* admin task to select an application instance to delete or to assign a
|
||||||
|
* category.
|
||||||
|
*
|
||||||
|
* This is a generic task as part of application management. A workspace is a
|
||||||
|
* special case of this generic task.
|
||||||
|
*
|
||||||
|
* This selection model adds an (optional?) default value to the parent class
|
||||||
|
* which will be returned when nothing is selected.
|
||||||
*
|
*
|
||||||
* Used by packages admin and sitemap
|
* Used by packages admin and sitemap
|
||||||
*/
|
*/
|
||||||
public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
||||||
|
|
||||||
public static final String DEFAULT_PARAM_NAME = "app_id";
|
|
||||||
|
|
||||||
private boolean m_hasDefaultValue;
|
|
||||||
|
|
||||||
/** Creates a s_logging category with name = full name of class */
|
/** Creates a s_logging category with name = full name of class */
|
||||||
private static final Logger s_log = Logger
|
private static final Logger s_log = Logger
|
||||||
.getLogger(ApplicationSelectionModel.class);
|
.getLogger(ApplicationSelectionModel.class);
|
||||||
|
|
||||||
|
public static final String DEFAULT_PARAM_NAME = "app_id";
|
||||||
|
|
||||||
|
private boolean m_hasDefaultValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
|
|
@ -48,10 +55,11 @@ public class ApplicationSelectionModel extends ACSObjectSelectionModel {
|
||||||
* @param hasDefaultValue
|
* @param hasDefaultValue
|
||||||
*/
|
*/
|
||||||
public ApplicationSelectionModel(BigDecimalParameter param,
|
public ApplicationSelectionModel(BigDecimalParameter param,
|
||||||
boolean hasDefaultValue) {
|
boolean hasDefaultValue) {
|
||||||
super(param);
|
|
||||||
|
|
||||||
|
super(param);
|
||||||
m_hasDefaultValue = hasDefaultValue;
|
m_hasDefaultValue = hasDefaultValue;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
package com.arsdigita.portalworkspace.ui.sitemap;
|
package com.arsdigita.portalworkspace.ui.sitemap;
|
||||||
|
|
||||||
import com.arsdigita.portalworkspace.ui.ApplicationSelectionModel;
|
|
||||||
import com.arsdigita.bebop.Page;
|
import com.arsdigita.bebop.Page;
|
||||||
import com.arsdigita.bebop.PageState;
|
import com.arsdigita.bebop.PageState;
|
||||||
import com.arsdigita.bebop.SimpleContainer;
|
import com.arsdigita.bebop.SimpleContainer;
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
sitemapPage.addRequestListener(new ApplicationAuthenticationListener());
|
sitemapPage.addRequestListener(new ApplicationAuthenticationListener());
|
||||||
</jsp:scriptlet>
|
</jsp:scriptlet>
|
||||||
<define:component name="admin"
|
<define:component name="admin"
|
||||||
classname="com.arsdigita.portalworkspace.ui.admin.SiteMapPane" />
|
classname="com.arsdigita.portalworkspace.ui.sitemap.SiteMapPane" />
|
||||||
</define:page>
|
</define:page>
|
||||||
|
|
||||||
<show:all/>
|
<show:all/>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<jsp:directive.page import="com.arsdigita.dispatcher.DispatcherHelper"/>
|
<jsp:directive.page import="com.arsdigita.dispatcher.DispatcherHelper"/>
|
||||||
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.AbstractWorkspaceComponent"/>
|
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.AbstractWorkspaceComponent"/>
|
||||||
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.jsp.DefaultWorkspaceSelectionModel"/>
|
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.DefaultWorkspaceSelectionModel"/>
|
||||||
|
|
||||||
<jsp:scriptlet>
|
<jsp:scriptlet>
|
||||||
DispatcherHelper.cacheDisable(response);
|
DispatcherHelper.cacheDisable(response);
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<define:page name="editWorkspace" application="portal"
|
<define:page name="editWorkspace" application="portal"
|
||||||
title="Workspace Customize" cache="true">
|
title="Workspace Customize" cache="true">
|
||||||
<define:component name="edit"
|
<define:component name="edit"
|
||||||
classname="com.arsdigita.portalworkspace.ui.jsp.WorkspaceEditor" />
|
classname="com.arsdigita.portalworkspace.ui.WorkspaceEditor" />
|
||||||
<jsp:scriptlet>
|
<jsp:scriptlet>
|
||||||
((AbstractWorkspaceComponent)edit).setWorkspaceModel(
|
((AbstractWorkspaceComponent)edit).setWorkspaceModel(
|
||||||
new DefaultWorkspaceSelectionModel());
|
new DefaultWorkspaceSelectionModel());
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
<jsp:directive.page import="com.arsdigita.kernel.permissions.PrivilegeDescriptor"/>
|
<jsp:directive.page import="com.arsdigita.kernel.permissions.PrivilegeDescriptor"/>
|
||||||
<jsp:directive.page import="com.arsdigita.portalworkspace.Workspace"/>
|
<jsp:directive.page import="com.arsdigita.portalworkspace.Workspace"/>
|
||||||
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.AbstractWorkspaceComponent"/>
|
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.AbstractWorkspaceComponent"/>
|
||||||
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.jsp.DefaultWorkspaceSelectionModel"/>
|
<jsp:directive.page import="com.arsdigita.portalworkspace.ui.DefaultWorkspaceSelectionModel"/>
|
||||||
<jsp:directive.page import="com.arsdigita.toolbox.ui.ApplicationAuthenticationListener"/>
|
<jsp:directive.page import="com.arsdigita.toolbox.ui.ApplicationAuthenticationListener"/>
|
||||||
|
|
||||||
<jsp:scriptlet>
|
<jsp:scriptlet>
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
</jsp:scriptlet>
|
</jsp:scriptlet>
|
||||||
|
|
||||||
<define:component name="view"
|
<define:component name="view"
|
||||||
classname="com.arsdigita.portalworkspace.ui.jsp.WorkspaceViewer" />
|
classname="com.arsdigita.portalworkspace.ui.WorkspaceViewer" />
|
||||||
<jsp:scriptlet>
|
<jsp:scriptlet>
|
||||||
((AbstractWorkspaceComponent) view).setWorkspaceModel(
|
((AbstractWorkspaceComponent) view).setWorkspaceModel(
|
||||||
new DefaultWorkspaceSelectionModel());
|
new DefaultWorkspaceSelectionModel());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue