Tag Archives: API

SharePoint 2010: Programatically Retrieve Credentials from the Secure Store Service

SharePoint 2010’s Secure Store Service provides a way to map credentials and delegate access to remote resources. You may already be familiar with the MOSS 2007 Single Sign-on Shared Service, which was the former equivalent. The Secure Store Service integrates seemlessly with Business Connectivity Services (BCS), but it also features an API that can be… Read More »

MOSS FullTextSqlQuery API: Little Known Flags on Managed Properties

I just wrapped up a custom implementation of a faceted search web part that uses the MOSS Full Text Sql Query API. During the development, I ran into issues querying certain multi-valued Managed Properties, specifically Skills and Interests. In my query, I was using the CONTAINS predicate like such: SELECT UserProfile_GUID, PreferredName, JobTitle, Department, WorkPhone,… Read More »

(SPWeb)properties.Feature.Parent no more … a handy Feature Receiver Base Class

If you are writing SharePoint feature receivers often, you will find there are several lines of code common to just about every feature receiver: A cast of properties.Feature.Parent to the appropriate scope (either SPWeb, SPSite, SPWebApplication, or SPFarm) Empty implementations of FeatureInstalled and FeatureUninstalling Provided below is an abstract generic class that now serves as… Read More »

SharePoint Dependency Injection Approach

I just finished delivering a SharePoint workflow application in which I developed what could be called a start to framework that I would like to reuse in my next project. The framework currently has many features such as: An “Object-List Mapping” infrastructure complete with lazy initialization of objects and collections, converters, and caching A list… Read More »