. Getting Started Dashlet

- Links to Alfresco Demonstration, Feature Tour and Online Help
 - Actions for Common Tasks such as Browse, Create Space, Add Content and Create Content

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@3636 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-08-30 13:52:55 +00:00
parent 4f70539b04
commit 15b2d411a9
9 changed files with 168 additions and 25 deletions

View File

@@ -894,6 +894,21 @@ layout_three_column_desc=This layout displays components across three columns of
# My Alfresco Dashlet components messages
dashlet_gettingstarted_label=Getting Started
dashlet_gettingstarted_desc=Displays helpful information for getting started with the Alfresco web-client
gettingstarted_commontasks=Common Tasks
gettingstarted_browse=Browse items in your home space
gettingstarted_browse_desc=From the toolbar click My Home to display a list of items in the space.
gettingstarted_createspace=Create a space in your home space
gettingstarted_createspace_desc=Navigate to your home space. In the space info area, from the menu under Create, click Create Space and enter information about the space.
gettingstarted_addcontent=Add content to your home space
gettingstarted_addcontent_desc=Navigate to your home space. In the space info area, click Add Content and enter information about the content to be uploaded.
gettingstarted_createcontent=Create content in your home space
gettingstarted_createcontent_desc=Navigate to your home space. In the space info area, click Create Content under Create and enter information about the content to be created.
gettingstarted_demonstration=Demonstration
gettingstarted_demonstration_desc=Watch a demonstration of how Alfresco can be used to create a marketing launch.
gettingstarted_featuretour=Feature Tour
gettingstarted_featuretour_desc=Take a tour of some of the key features in Alfresco.
gettingstarted_onlinehelp=Online Help
gettingstarted_onlinehelp_desc=Click the help icon to display Alfresco Help topics.
# User Console and Settings messages
title_user_console=User Options

View File

@@ -0,0 +1,70 @@
/*
* Copyright (C) 2005 Alfresco, Inc.
*
* Licensed under the Mozilla Public License version 1.1
* with a permitted attribution clause. You may obtain a
* copy of the License at
*
* http://www.alfresco.org/legal/license.txt
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either express or implied. See the License for the specific
* language governing permissions and limitations under the
* License.
*/
package org.alfresco.web.bean.dashboard;
import javax.faces.context.FacesContext;
import org.alfresco.web.app.Application;
import org.alfresco.web.bean.NavigationBean;
/**
* Backing bean for the Getting Started Dashlet page.
*
* @author Kevin Roast
*/
public class GettingStartedBean
{
private NavigationBean navigationBean;
/**
* @param navigationBean The navigationBean to set.
*/
public void setNavigationBean(NavigationBean navigationBean)
{
this.navigationBean = navigationBean;
}
public String browseHomeSpace()
{
this.navigationBean.setCurrentNodeId(getHomeSpaceId());
return "browse";
}
public String createSpace()
{
this.navigationBean.setCurrentNodeId(getHomeSpaceId());
return "dialog:createSpace";
}
public String createContent()
{
this.navigationBean.setCurrentNodeId(getHomeSpaceId());
return "wizard:createContent";
}
public String addContent()
{
this.navigationBean.setCurrentNodeId(getHomeSpaceId());
return "addContent";
}
private String getHomeSpaceId()
{
return Application.getCurrentUser(FacesContext.getCurrentInstance()).getHomeSpaceId();
}
}

View File

@@ -1914,6 +1914,19 @@
</managed-property>
</managed-bean>
<managed-bean>
<description>
The bean that backs up the Getting Started Dashlet page
</description>
<managed-bean-name>GettingStartedBean</managed-bean-name>
<managed-bean-class>org.alfresco.web.bean.dashboard.GettingStartedBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
<managed-property>
<property-name>navigationBean</property-name>
<value>#{NavigationBean}</value>
</managed-property>
</managed-bean>
<!-- ==================== COMPONENT GENERATOR BEANS ==================== -->
<managed-bean>

View File

@@ -57,6 +57,10 @@
<from-outcome>dashboard</from-outcome>
<to-view-id>/jsp/browse/dashboard.jsp</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>addContent</from-outcome>
<to-view-id>/jsp/content/add-content-dialog.jsp</to-view-id>
</navigation-case>
</navigation-rule>
<!-- rule to get to the Advanced Search page from anywhere -->
@@ -97,10 +101,6 @@
<!-- Browse screen action outcomes -->
<navigation-rule>
<from-view-id>/jsp/browse/browse.jsp</from-view-id>
<navigation-case>
<from-outcome>addContent</from-outcome>
<to-view-id>/jsp/content/add-content-dialog.jsp</to-view-id>
</navigation-case>
<!-- showDocDetails and showSpaceDetails moved to /jsp/* above -->
<navigation-case>
<from-outcome>checkoutFile</from-outcome>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

@@ -24,33 +24,78 @@
<f:verbatim>
<% PanelGenerator.generatePanelStart(out, request.getContextPath(), "yellow", "#ffffcc"); %>
</f:verbatim>
<h:panelGrid columns="3" cellpadding="2" cellspacing="2" border="0" width="100%" style="background-colour:##ffffcc">
<h:outputText style="font-size: 11px; font-weight:bold; color:#4272B4" value="Alfresco" />
<h:outputText style="font-size: 11px; font-weight:bold; color:#4272B4" value="Common Tasks" />
<h:outputText style="font-size: 11px; font-weight:bold; color:#4272B4" value="Working with Alfresco" />
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0" width="100%" style="background-colour:##ffffcc" rowClasses="alignTop">
<h:panelGrid columns="1" cellpadding="2" cellspacing="2" border="0">
<h:outputText style="font-size: 11px; font-weight:bold; color:#4272B4" value="#{msg.product_name}" />
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0">
<h:graphicImage value="/images/logo/AlfrescoLogo32.gif" width="32" height="32" />
<h:graphicImage value="/images/icons/gettingstarted_demonstration.gif" width="32" height="32" />
<h:panelGroup>
<h:outputText style="font-weight:bold" value="Feature Tour" />
<a:actionLink href="http://www.alfresco.com/products/ecm/demonstrations/" target="new" style="font-weight:bold" value="#{msg.gettingstarted_demonstration}" />
<f:verbatim><br></f:verbatim>
<h:outputText value="Lorem ipsum dolor sit amet, consectetuer adipiscing elit." />
<h:outputText value="#{msg.gettingstarted_demonstration_desc}" />
</h:panelGroup>
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0">
<h:graphicImage value="/images/icons/Details.gif" width="32" height="32" />
<h:graphicImage value="/images/icons/gettingstarted_featuretour.gif" width="32" height="32" />
<h:panelGroup>
<h:outputText style="font-weight:bold" value="Browse items in your home space" />
<a:actionLink href="http://www.alfresco.com/products/ecm/tour/" target="new" style="font-weight:bold" value="#{msg.gettingstarted_featuretour}" />
<f:verbatim><br></f:verbatim>
<h:outputText value="Lorem ipsum dolor sit amet, consectetuer adipiscing elit." />
<h:outputText value="#{msg.gettingstarted_featuretour_desc}" />
</h:panelGroup>
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0">
<h:graphicImage value="/images/icons/gettingstarted_onlinehelp.gif" width="32" height="32" />
<h:panelGroup>
<a:actionLink href="#{NavigationBean.helpUrl}" target="help" style="font-weight:bold" value="#{msg.gettingstarted_onlinehelp}" />
<f:verbatim><br></f:verbatim>
<h:outputText value="#{msg.gettingstarted_onlinehelp_desc}" />
</h:panelGroup>
</h:panelGrid>
</h:panelGrid>
<h:panelGrid columns="1" cellpadding="2" cellspacing="2" border="0">
<h:outputText style="font-weight:bold" value="Inviting users to a space" />
<h:outputText value="Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Lorem ipsum dolor sit amet, consectetuer adipiscing elit." />
<h:outputText style="font-size: 11px; font-weight:bold; color:#4272B4" value="#{msg.gettingstarted_commontasks}" />
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0">
<h:graphicImage value="/images/icons/gettingstarted_browse.gif" width="32" height="32" />
<h:panelGroup>
<a:actionLink style="font-weight:bold" value="#{msg.gettingstarted_browse}" action="#{GettingStartedBean.browseHomeSpace}" />
<f:verbatim><br></f:verbatim>
<h:outputText value="#{msg.gettingstarted_browse_desc}" />
</h:panelGroup>
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0">
<h:graphicImage value="/images/icons/create_space_large.gif" width="32" height="32" />
<h:panelGroup>
<a:actionLink style="font-weight:bold" value="#{msg.gettingstarted_createspace}" action="#{GettingStartedBean.createSpace}" />
<f:verbatim><br></f:verbatim>
<h:outputText value="#{msg.gettingstarted_createspace_desc}" />
</h:panelGroup>
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0">
<h:graphicImage value="/images/icons/add_content_large.gif" width="32" height="32" />
<h:panelGroup>
<a:actionLink style="font-weight:bold" value="#{msg.gettingstarted_addcontent}" action="#{GettingStartedBean.addContent}" actionListener="#{AddContentDialog.start}" />
<f:verbatim><br></f:verbatim>
<h:outputText value="#{msg.gettingstarted_addcontent_desc}" />
</h:panelGroup>
</h:panelGrid>
<h:panelGrid columns="2" cellpadding="2" cellspacing="2" border="0">
<h:graphicImage value="/images/icons/new_content_large.gif" width="32" height="32" />
<h:panelGroup>
<a:actionLink style="font-weight:bold" value="#{msg.gettingstarted_createcontent}" action="#{GettingStartedBean.createContent}" />
<f:verbatim><br></f:verbatim>
<h:outputText value="#{msg.gettingstarted_createcontent_desc}" />
</h:panelGroup>
</h:panelGrid>
</h:panelGrid>
</h:panelGrid>
<f:verbatim>
<% PanelGenerator.generatePanelEnd(out, request.getContextPath(), "yellow"); %>