Monday, July 23, 2007

My notes on MOSS 2007

This notes is created to give training for my juniors on basic overview on sharepoint .



What is portal

Portal is a web application that gathers information from various desperate sources to share the information among the users .

The portals has the following significant features
· collabaration
· security
· personalization
· customization
· search , etc

Site which are not portals are called vertical portal or Vortals

Windows share point services 3.0 is free licensing it has less feature compare to Moss 2007


Ghost able – stored in content database

Un ghost able – stored in hard disk


Web part

Web part is a custom control , created by a developer and deployed on to the share point site with the extension dwp or webpart(recommended) .

Web part zone

Web part zone is a logical area created by the designer on a web part page where the web part can be dropped.

Web part page

Page, which contain web parts.

There are two type of deployment

· stand alone Installation (Deployment ) – Everything is there in the same system .
· web form Installation ( Web garden) -
A Web garden is an application pool that is configured with more than one worker process. (Web gardens are to be distinguished from Web farms, which use multiple servers for a Web site.)






Hierarchy
Central administration


site administrator


Top-level sites

Top level site 1 - Top level site 2

Role

Administrator – can create sites, content, users, application, manage forms.

Designer – can create manage content and design of the website

Contributor – can only contribute to existing content .

Reader – no other permission except view.


Feature

Feature are new innovation in Moss 2007 these are plug gable component which actually modifies the structure, layout programming capability of share point site .


Sample code which display a simple html web part page

using System.Configuration ;
using Microsoft.SharePoint .WebPartPages ;
using Microsoft.SharePoint;


namespace tpg.SFO
{
public class SFO : WebPart
{
#region Controls Initialization
protected Literal litContent = new Literal();
protected Label lblMessage = new Label();
protected Panel pnlHtml = new Panel();
public string currentURL = string.Empty;
//private tpg.ConfigurationReader.Configurations configReader = new tpg.ConfigurationReader.Configurations();
//Load the xslt file from the specified location
Configurations config = new Configurations();
tpg.CustomMessages.CustomMessages custommessage = new tpg.CustomMessages.CustomMessages();
#endregion

protected override void RenderWebPart(System.Web.UI.HtmlTextWriter writer)
{
base.RenderWebPart(writer);
}
///
/// Create Input controls which is needed to capture the data
///

protected override void CreateChildControls()
{

litContent.Text = "";
SPWeb web = SPContext.Current.Web ;
currentURL = web.Url ;


litContent.Text = CreateHtmlContent();
this.pnlHtml.Controls.Add(litContent);
this.Controls.Add(pnlHtml);

}



///
/// Build a HTML file which display a static page
///

public string CreateHtmlContent()
{
string htmlContent = string.Empty ;
try
{
// some html Content ;

}
catch (Exception ex)
{
ShowMessage(custommessage.getMessage("general_error"));
}
return htmlContent;

}
///
/// get redirect location from config
///

private string getUrl(string info)
{
string url = string.Empty;
SPWeb web = SPContext.Current.Web;
currentURL = web.Url;
string configValue = string.Empty;
try
{
configValue = config.getConfigurationValue(info, "value");
}
catch { }
configValue = configValue + "?CId=" + info + "&AId=302 ";
url = currentURL + configValue;
return url;


}
///
/// get redirect location from config
///

private string getImagepath()
{
string imagePath = string.Empty;
imagePath = config.getConfigurationValue("pentagon", "value");
return imagePath;

}



///

///
/// This is to show normal messages.
///

///
private void ShowMessage(string message)
{
lblMessage.Text = message;
lblMessage.CssClass = "error";
this.Controls.Add(lblMessage);
}

}
}





Additional notes


Microsoft Office SharePoint Portal Server 2003 (the current release) is a Web Portal which belongs to the Microsoft Office family. It is a collaborative portal application based on the Windows SharePoint Services platform, a free component of Windows Server 2003. Windows SharePoint Services offers online publishing of standard file formats. It also has version control, document approval and a basic search facility

Microsoft Office SharePoint Server 2007, commonly abbreviated to MOSS, is the successor to Microsoft Office SharePoint Portal Server 2003. It has a large range of new features not in the previous version.
MOSS is a licensed enterprise extension to version 3.0 of the no-cost Windows SharePoint Services platform - a component available for Windows Server 2003. Its main strength is enabling an organization’s information to be organized and aggregated in one central, web-based application. It can be configured to return separate content for Intranet, Extranet and Internet locations. The primary areas of investment that Microsoft has made over the previous version are Excel Services, Infopath Forms Services, the Business Data Catalog, Enterprise Search, web content management, more specialized document management, records management, web 2.0 collaboration functionality like blogs and wikis, delivery of information stored in SharePoint via RSS, PowerPoint Slide Libraries, and the ability to take content and lists offline with Outlook 2007 and Microsoft Access.

One of the weaknesses of the tool is its own ease of use. Administrators may be tempted to start one port 80 and build a single site collection with sub-sites underneath, exposed to the company as a home page and sub-pages. Though this makes logical sense for a large organization or one with bespoke portals using custom Web Parts or Forms Server, it can cause problems. All the sites in a site collection will be stored in the same database, which can become too large to effectively back-up. Moreover, bespoke development using the same Web Application and Application pool can bring a company-wide internet down.

When designing a large implementation it makes sense to break distinct areas of the organization in to their own portal with their own Web Applications.
MOSS 2007 also allows content types and document libraries to have information management policies, which allows the triggering of workflow or deletion after a certain fixed event or time period, helping to reduce many of the size-growth problems of earlier versions.