widgets-config.xml

 

<?xml version="1.0" encoding="UTF-8"?>

<config xmlns="http://www.ibm.com/widgets-config" 
     xmlns:tns="http://www.ibm.com/widgets-config" 
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     id="widgets" xsi:schemaLocation="http://www.ibm.com/widgets-config widgets-config.xsd">

    <!--
        Example widgets: not supported officially but can be used as examples.

        <widgetDef defId="AdditionalInfo" modes="view edit" showInPalette="false"
        url="{webresourcesSvcRef}/web/lconn.comm/widgets/additionalInfo/additional-info.xml?version={version}"
        />

        <widgetDef defId="FeedReader" modes="view edit"
        url="{webresourcesSvcRef}/web/lconn.comm/widgets/feedReader/feedreader.xml?version={version}"
        description="feedReaderDescription"/>

        // a widget with a fullpage mode
        <widgetDef defId="HelloWorld" primaryWidget="false" modes="view fullpage edit
        search"
        url="{webresourcesSvcRef}/web/lconn.comm/widgets/helloWorld/HelloWorld.xml?version={version}"/>

        // a widget with an external jsp as a full page
        <widgetDef defId="HelloWorld" primaryWidget="false" modes="view edit search"
        url="{webresourcesSvcRef}/web/lconn.comm/widgets/helloWorld/HelloWorld.xml?version={version}"
        navBarLink="{communitiesSvcRef}/comm.widgets/helloWorld/HelloWorld.jsp?resourceId={resourceId}&version={version}"/>
      -->

    <resource type="common">
        <widgets>
            <definitions>
                <widgetDef defId="librarysummary" 
                           bundleRefId="lc_clib" 
                           url="{webresourcesSvcRef}/web/quickr.lw/widgetDefs/DocumentSummary_QCS_Connections.xml?etag={version}" 
                           modes="fullpage" 
                           iconUrl="{contextRoot}/nav/common/images/iconFiles16.png" 
                           uniqueInstance="true"/>
            </definitions>
        </widgets>
    </resource>
    <resource type="profile" 
              aclServiceImpl="com.ibm.lconn.profiles.internal.acl.ProfilesACLServiceImpl" 
              xpathMandatedWidgetForMainPage="/tns:config//tns:resource[@type='profile']/tns:widgets/tns:layout/tns:page[@pageId = 'profilesView']">

        <widgets>

            <definitions>

                <widgetDef defId="reportStructure" 
                           url="{contextRoot}/widget-catalog/report-chain.xml?version={version}" 
                           requireAcl="profile.reportTo$profile.reportTo.view" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html">
                    <itemSet>
                  <item name="numberOfNameToDisplay" value="4"/>
                </itemSet>
                </widgetDef>

                <widgetDef defId="multiFeedReader" 
                           url="{contextRoot}/widget-catalog/multifeedreader.xml?version={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html">
                <itemSet>
                    <item name="numberOfEntriesToDisplay" value="5"/>
                    <item name="communityResourceId" value="communityResourceId"/>
                    <item name="communityFeedUrl" value="{communitiesSvcRef}/service/atom/communities/all?userid={userid}&amp;ps=5"/>
                    <item name="dogearResourceId" value="dogearResourceId"/>
                    <item name="dogearFeedUrl" value="{dogearSvcRef}/atom?userid={userid}&amp;access=public&amp;sort=date&amp;sortOrder=desc&amp;ps=5&amp;showFavIcon=true{appLangParam}"/>
                    <item name="blogsResourceId" value="blogsResourceId"/>
                    <item name="blogsFeedUrl" value="{blogsSvcRef}/atom?userid={userid}&amp;ps=5"/>
                    <item name="activitiesResourceId" value="activitiesResourceId"/>
                    <item name="activitiesFeedUrl" value="{activitiesSvcRef}/service/atom2/activities?public=only&amp;userid={userid}&amp;authenticate=no&amp;ps=5"/>
                    <item name="filesResourceId" value="filesResourceId"/>
                    <item name="filesFeedUrl" value="{filesSvcRef}/basic/anonymous/api/userlibrary/{userid}/feed?pagesize=5"/>
                    <item name="forumsResourceId" value="label.personcard.forumlink"/>
                    <item name="forumsFeedUrl" value="{searchSvcRef}/atom/search/results?component=forums&amp;person={userid}&amp;sortkey=date&amp;sortorder=desc&amp;page=1&amp;ps=5"/>
                    <item name="wikiResourceId" value="wikiResourceId"/>
                    <item name="wikiFeedUrl" value="{wikisSvcRef}/basic/anonymous/api/wikis/person/{userid}/feed?pagesize=5"/>
                </itemSet>
              </widgetDef>
                <widgetDef defId="filesReader" 
                           url="{contextRoot}/widget-catalog/multifeedreader.xml?version={version}" 
                           prerequisite="files" helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html">
                    <itemSet>
                        <item name="numberOfEntriesToDisplay" value="5"/>
                        <item name="filesResourceId" value="filesMineResourceId"/>
                        <item name="filesEval" value="profilesData.loggedInUser.loggedInUserKey === profilesData.displayedUser.key"/>
                        <item name="filesFeedUrl" value="{filesSvcRef}/basic/api/myuserlibrary/feed?pagesize=5"/>
                        <item name="filesWithMeResourceId" value="filesWithMeResourceId"/>
                        <item name="filesWithMeEval" value="profilesData.loggedInUser.loggedInUserKey === profilesData.displayedUser.key"/>
                        <item name="filesWithMeFeedUrl" value="{filesSvcRef}/basic/api/documents/shared/feed?pagesize=5"/>
                        <item name="filesWithMeFeedAlternateUrl" value="{filesSvcRef}/app/shares?pivot=withme"/>
                        <item name="filesByUserAnonResourceId" value="filesByUserResourceId"/>
                        <item name="filesByUserAnonEval" value="profilesData.loggedInUser.loggedInUserKey === ''"/>
                        <item name="filesByUserAnonFeedUrl" value="{filesSvcRef}/basic/anonymous/api/userlibrary/{userid}/feed?pagesize=5"/>
                        <item name="filesByUserResourceId" value="filesByUserResourceId"/>
                        <item name="filesByUserEval" value="profilesData.loggedInUser.loggedInUserKey !== '' &amp;&amp; profilesData.loggedInUser.loggedInUserKey !== profilesData.displayedUser.key"/>
                        <item name="filesByUserFeedUrl" value="{filesSvcRef}/basic/api/userlibrary/{userid}/feed?pagesize=5"/>
                    </itemSet>
                </widgetDef>

                <widgetDef defId="friends" 
                           url="{contextRoot}/widget-catalog/friends.xml?version={version}" 
                           requireAcl="profile.connection$profile.connection.view" 
                           modes="view fullpage" helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_view_colleagues.html"/>

                <widgetDef defId="friendsFullPage" 
                           url="{contextRoot}/widget-catalog/friends-fullpage.xml?version={version}" 
                           modes="fullpage" requireAcl="profile.connection$profile.connection.view" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_view_colleagues.html" 
                           skinType="skinless"/>

                <widgetDef defId="follow" 
                           url="{contextRoot}/widget-catalog/follow.xml?version={version}" 
                           requireAcl="profile.following$profile.following.view" 
                           modes="view fullpage" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_view_colleagues.html"/>

                <widgetDef defId="followFullPage" 
                           url="{contextRoot}/widget-catalog/follow.xml?version={version}" 
                           modes="fullpage" 
                           requireAcl="profile.following$profile.following.view" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_view_colleagues.html" 
                           skinType="skinless"/>
                <widgetDef defId="linkRoll" 
                           url="{contextRoot}/widget-catalog/linkroll.xml?version={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_add_external_links.html"/>
                <widgetDef defId="socialTags" 
                           url="{contextRoot}/widget-catalog/tags.xml?version={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_tag_profiles.html"/>
                <widgetDef defId="commonTags" 
                           url="{contextRoot}/widget-catalog/common-tags.xml?version={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_using_org_tag_widget.html"/>
                <widgetDef defId="sand_DYK" 
                           bundleRefId="lc_sand" 
                           url="{webresourcesSvcRef}/web/lconn.sand/descriptors/DYK.xml?etag={version}" 
                           requireAcl="profile.sand$profile.sand.dyk.view" 
                           prerequisite="sand" 
                           displayLoginRequired="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_using_dyk_widget.html">
                    <itemSet>
                  <item name="profilesRoot" value="{contextRoot}"/>
                  <item name="profilesBlank" value="{contextRoot}/nav/common/styles/images/blank.gif"/>
                  <item name="sandUIRoot" value="{webresourcesSvcRef}/web/lconn.sand/"/>
                  <item name="sandBackEndRoot" value="{searchSvcRef}"/>
                  <item name="xhrErrorHandlerAsString" value="lconn.core.errorhandling.DefaultXHRErrorHandler"/>
                  <item name="inviteErrorHandler" value="lconn.core.errorhandling.DefaultErrorHandler"/>
                  <item name="inviteXHRErrorHandler" value="lconn.core.errorhandling.DefaultXHRErrorHandler"/>
               </itemSet>
                </widgetDef>
                <widgetDef defId="sand_recomItems" 
                           bundleRefId="lc_sand" 
                           url="{webresourcesSvcRef}/web/lconn.sand/descriptors/Recommend.xml?etag={version}" 
                           requireAcl="profile.sand$profile.sand.recommend.view" 
                           prerequisite="sand" 
                           displayLoginRequired="true">
                    <itemSet>
                  <item name="sandUIRoot" value="{webresourcesSvcRef}/web/lconn.sand/"/>
                  <item name="sandBackEndRoot" value="{searchSvcRef}"/>
                  <item name="sourceList" value="blogs,communities,wikis,files,dogear"/>
                  <item name="ApiUrl" value="{searchSvcRef}/atom/social/recommend"/>
                  <item name="navContentLocation" value="{contextRoot}/nav"/>
                  <item name="xhrErrorHandlerAsString" value="lconn.core.errorhandling.DefaultXHRErrorHandler"/>
               </itemSet>
                </widgetDef>
                <widgetDef defId="sand_thingsInCommon" 
                           bundleRefId="lc_sand" 
                           url="{webresourcesSvcRef}/web/lconn.sand/descriptors/sharedLC.xml?etag={version}" 
                           requireAcl="profile.sand$profile.sand.inCommon.view" 
                           prerequisite="sand" 
                           displayLoginRequired="true" 
                           hideWidgetForMyProfile="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_using_tic_widget.html">
                    <itemSet>
                  <item name="sandUIRoot" value="{webresourcesSvcRef}/web/lconn.sand/"/>
                  <item name="sandBackEndRoot" value="{searchSvcRef}"/>
               </itemSet>
                </widgetDef>
                <widgetDef defId="sand_socialPath" 
                           bundleRefId="lc_sand" 
                           url="{webresourcesSvcRef}/web/lconn.sand/descriptors/socialPath.xml?etag={version}" 
                           requireAcl="profile.sand$profile.sand.socialPath.view" 
                           prerequisite="sand" 
                           displayLoginRequired="true" 
                           hideWidgetForMyProfile="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/t_pers_using_sp_widget.html">
                    <itemSet>
                  <item name="sandUIRoot" value="{webresourcesSvcRef}/web/lconn.sand/"/>
                  <item name="sandBackEndRoot" value="{searchSvcRef}"/>
               </itemSet>
                </widgetDef>
                <widgetDef defId="multiWidget" 
                           url="{contextRoot}/widget-catalog/multiWidget.xml?version={version}" 
                           skinType="skinless" modes="view">
                <itemSet>
                  <item name="containerRecurranceType" value="tabs"/>
                </itemSet>
            </widgetDef>
                <widgetDef defId="board" 
                           url="{contextRoot}/widget-catalog/wall.xml?version={version}" 
                           requireAcl="profile.board$profile.board.write.message" 
                           modes="view fullpage" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_wall_intro.html"/>
                <widgetDef defId="backgroundInfo" 
                           url="{contextRoot}/widget-catalog/profile-details.xml?version={version}" 
                           modes="view fullpage" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html">
                <itemSet>
                  <item name="section" value="associatedInformation"/>
                </itemSet>
            </widgetDef>
                <widgetDef defId="contactInfo" 
                           url="{contextRoot}/widget-catalog/profile-details.xml?version={version}" 
                           modes="view fullpage" helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html">
              <itemSet>
                <item name="section" value="contactInformation"/>
              </itemSet>
            </widgetDef>
                <widgetDef defId="Updates" 
                           url="{webresourcesSvcRef}/web/com.ibm.social.as.lconn/widgets/profilesActivityStream.xml?etag={version}" 
                           requireAcl="profile.status$profile.status.view" 
                           modes="view fullpage" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.profiles.help/c_pers_profiles.html"/>
            </definitions>
            <layout resourceSubType="default">
                <page pageId="profilesView">
                <widgetInstance uiLocation="col2" defIdRef="multiWidget" instanceId="tabsWidget1"/>
        <widgetInstance uiLocation="tabsWidget1" defIdRef="Updates"/>
                <widgetInstance uiLocation="tabsWidget1" defIdRef="contactInfo"/>
                <widgetInstance uiLocation="tabsWidget1" defIdRef="backgroundInfo"/>
                <!--<widgetInstance uiLocation="tabsWidget1" defIdRef="multiFeedReader"/>-->        
                <widgetInstance uiLocation="col1" defIdRef="socialTags"/>
                <widgetInstance uiLocation="col1" defIdRef="sand_thingsInCommon"/>
                <widgetInstance uiLocation="col3" defIdRef="sand_socialPath"/>
                <widgetInstance uiLocation="col3" defIdRef="reportStructure"/>
                <widgetInstance uiLocation="col3" defIdRef="friends"/>
                <widgetInstance uiLocation="col3" defIdRef="linkRoll"/>
              </page>
                <page pageId="searchResultView">
                <widgetInstance uiLocation="col1" defIdRef="commonTags"/>
              </page>
                <page pageId="searchView">
                <widgetInstance uiLocation="col1" defIdRef="sand_DYK"/>
                <widgetInstance uiLocation="col1" defIdRef="commonTags"/>
                <!-- 
                <widgetInstance uiLocation="col3" defIdRef="sand_recomItems"/>
                -->
              </page>
                <page pageId="networkView">
                    <widgetInstance uiLocation="col1" defIdRef="sand_DYK"/>
                    <widgetInstance uiLocation="fullpage" defIdRef="friendsFullPage"/>
                </page>
                <page pageId="followView">
                    <widgetInstance uiLocation="col1" defIdRef="sand_DYK"/>
                    <widgetInstance uiLocation="fullpage" defIdRef="followFullPage"/>
                </page>
                <page pageId="editProfileView">
                <widgetInstance uiLocation="col1" defIdRef="socialTags"/>
                <!-- 
                <widgetInstance uiLocation="col1" defIdRef="sand_thingsInCommon"/>
                -->
                <widgetInstance uiLocation="col3" defIdRef="sand_socialPath"/>
                <widgetInstance uiLocation="col3" defIdRef="reportStructure"/>
                <widgetInstance uiLocation="col3" defIdRef="friends"/>
                <widgetInstance uiLocation="col3" defIdRef="linkRoll"/>
              </page>
            </layout>
        </widgets>
    </resource>


    <resource type="community" 
              aclServiceImpl="com.ibm.lconn.comm.acl.ACLSvcImpl" 
              resourceValuesProvider="com.ibm.tango.internal.service.CommunitiesResourceValuesProvider" 
              xpathMandatedWidgetForMainPage="/tns:config/tns:resource[@type='community']/tns:widgets/tns:layout/tns:page[@pageId = 'communityOverview']">

        <widgets>
            <definitions>

                <widgetDef defId="Surveys" 
                           description="Surveys.desc" 
                           bundleRefId="formiwidget" 
                           primaryWidget="true" 
                           showInPalette="true" 
                           modes="view edit fullpage" 
                           uniqueInstance="true" 
                           loginRequired="false" 
                           url="{webresourcesSvcRef}/web/com.ibm.form.integrations.formiwidget/Surveys.xml" 
                           helpLink="/topic/com.ibm.lotus.connections.communities.surveys.help/community_survey_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.form.integrations.formiwidget/images/survey_widget_icon.png">

                          <itemSet>
                              <item name="formSeverBaseUrl" value="/forms"/>
                              <item name="surveyNumberInOverview" value="5"/>
                              <item name="communitiesSvcRef" value="{communitiesSvcRef}"/>
                              <item name="webresourcesSvcRef" value="{webresourcesSvcRef}"/>
                              <item name="opensocialSvcRef" value="{opensocialSvcRef}"/>
                              <item name="version" value="{version}"/>
                          </itemSet>

                          <lifecycle remoteHandlerURL="https://myformshost:9443/forms/login/org/index.html" 
                                     remoteHandlerAuthenticationAlias="connectionsAdmin">
                          <event>community.members.added</event>
                        <event>community.members.removed</event>
                        <event>widget.added</event>
                        <event>widget.removed</event>
                        <event>community.updated</event>
                        <event>community.visibility.changed</event>
                        <event>community.prepare.delete</event>
                        <event>community.members.modified</event>
                        <event>community.org.changed</event>

                          </lifecycle>
                </widgetDef>

                <widgetDef defId="FeaturedSurvey" 
                           description="FeaturedSurvey.desc" 
                           bundleRefId="formiwidget" 
                           primaryWidget="false" 
                           showInPalette="true" 
                           modes="view edit" 
                           loginRequired="false"  
                           uniqueInstance="false" 
                           url="{webresourcesSvcRef}/web/com.ibm.form.integrations.formiwidget/SingleSurvey.xml" 
                           helpLink="/topic/com.ibm.lotus.connections.communities.surveys.help/community_survey_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.form.integrations.formiwidget/images/survey_widget_icon.png">
                        <itemSet>
                            <item name="formSeverBaseUrl" value="/forms"/>
                            <item name="communitiesSvcRef" value="{communitiesSvcRef}"/>
                            <item name="webresourcesSvcRef" value="{webresourcesSvcRef}"/>
                            <item name="opensocialSvcRef" value="{opensocialSvcRef}"/>
                            <item name="version" value="{version}"/>
                         </itemSet>
               </widgetDef>


                <widgetDef defId="Members" 
                           primaryWidget="false" 
                           modes="view fullpage" 
                           showInPalette="false" 
                           uniqueInstance="true" 
                           url="{webresourcesSvcRef}/web/lconn.comm/communityMembers/communityMembers.xml?etag={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/t_com_membership_view.html">

                    <itemSet>
                        <item name="membersPerPage" value="12"/>
                        <item name="membersPerPageFullPage" value="16"/>
                    </itemSet>

                </widgetDef>

                <widgetDef defId="Blog" 
                           prerequisite="blogs" 
                           modes="view edit search" 
                           url="{blogsSvcRef}/static/{version}!{locale}/iwidgets/blog/blogsWidget.jsp" 
                           navBarLink="{blogsSvcRef}/{resourceId}" 
                           description="blogsDescription" 
                           uniqueInstance="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_blog_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/BlogsGray16.png">

                    <itemSet>
                        <item name="lang" 
                              value="{lang}"/>
                        <item name="communitiesBaseUrl" 
                              value="{communitiesSvcRef}"/>
                        <item name="blogsBaseUrl" 
                              value="{blogsSvcRef}"/>
                  <item name="staticLanguageRoot" 
                        value="{blogsSvcRef}/static/{version}!{locale}"/>
                        <item name="profilesBaseUrl" 
                              value="{profilesSvcRef}"/>
             <item name="atomFeedUrl" 
                   value="{blogsSvcRef}/atom_form/blogs?commUuid={resourceId}&amp;blogType=communityblog"/>
            <item name="atomFeedUrl.basic" 
                  value="{blogsSvcRef}/atom/blogs?commUuid={resourceId}&amp;blogType=communityblog"/>
            <item name="atomFeedUrl.oauth" 
                  value="{blogsSvcRef}/oauth/atom/blogs?commUuid={resourceId}&amp;blogType=communityblog"/>
            <item name="atomPubUrl" 
                  value="{blogsSvcRef}/api_form/blogs?commUuid={resourceId}&amp;blogType=communityblog"/>
            <item name="atomPubUrl.basic" 
                  value="{blogsSvcRef}/api/blogs?commUuid={resourceId}&amp;blogType=communityblog"/>
            <item name="atomPubUrl.oauth" 
                  value="{blogsSvcRef}/oauth/api/blogs?commUuid={resourceId}&amp;blogType=communityblog"/>
            <item name="searchUrl" 
                  value="{blogsSvcRef}/atom_form?search={searchTerm}&amp;commUuid={resourceId}&amp;t=entry&amp;ps=5&amp;page=0&amp;sortby=0&amp;order=desc&amp;lang=en"/>
            <item name="searchUrl.basic" 
                  value="{blogsSvcRef}/atom?search={searchTerm}&amp;commUuid={resourceId}&amp;t=entry&amp;ps=5&amp;page=0&amp;sortby=0&amp;order=desc&amp;lang=en"/>
                        <item name="searchUrl.oauth" 
                              value="{blogsSvcRef}/oauth/atom?search={searchTerm}&amp;commUuid={resourceId}&amp;t=entry&amp;ps=5&amp;page=0&amp;sortby=0&amp;order=desc&amp;lang=en"/>
                    </itemSet>

                    <lifecycle remoteHandlerURL="{blogsInterSvcRef}/roller-ui/BlogsWidgetEventHandler.do" 
                               remoteHandlerAuthenticationAlias="connectionsAdmin">
                        <event>widget.added</event>
                        <event>widget.removed</event>
                        <event>community.visibility.changed</event>
                        <event>community.prepare.delete</event>
                        <event>remote.app.transfer</event>
                        <event>community.updated</event>
                        <event>community.org.changed</event>
                        <event>community.members.added</event>
                        <event>community.members.removed</event>
                        <event>community.members.modified</event>
                    </lifecycle>
                </widgetDef>

                <!--
      for support multiple ideation blog 
    -->
                <!--
            <widgetDef defId="IdeationBlog" 
                       prerequisite="blogs" 
                       modes="view edit fullpage search" 
                       url="{blogsSvcRef}/static/{version}!{locale}/iwidgets/ideationblog/Ideations.xml"
                       description="ideationBlogsDescription" uniqueInstance="true"
                       helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/ideationblog_frame.html"
                       iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/BlogsGray16.png">
    -->
                <widgetDef defId="IdeationBlog" 
                           prerequisite="blogs" 
                           modes="view edit fullpage search" 
                           url="{blogsSvcRef}/static/{version}!{locale}/iwidgets/ideationblog/Ideations.xml" 
                           description="ideationBlogsDescription" 
                           uniqueInstance="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/ideationblog_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/BlogsGray16.png">
                    <itemSet>
                        <item name="lang" value="{lang}"/>
                        <item name="communitiesBaseUrl" value="{communitiesSvcRef}"/>
                        <item name="blogsBaseUrl" value="{blogsSvcRef}"/>
                        <item name="staticLanguageRoot" value="{blogsSvcRef}/static/{version}!{locale}"/>
                        <item name="profilesBaseUrl" value="{profilesSvcRef}"/>
                        <item name="atomFeedUrl" value="{blogsSvcRef}/atom_form/blogs?commUuid={resourceId}&amp;blogType=ideationblog"/>
                        <item name="atomFeedUrl.basic" value="{blogsSvcRef}/atom/blogs?commUuid={resourceId}&amp;blogType=ideationblog"/>
                        <item name="atomFeedUrl.oauth" value="{blogsSvcRef}/oauth/atom/blogs?commUuid={resourceId}&amp;blogType=ideationblog"/>
                        <item name="atomPubUrl" value="{blogsSvcRef}/api_form/blogs?commUuid={resourceId}&amp;blogType=ideationblog"/>
                        <item name="atomPubUrl.basic" value="{blogsSvcRef}/api/blogs?commUuid={resourceId}&amp;blogType=ideationblog"/>
                        <item name="atomPubUrl.oauth" value="{blogsSvcRef}/oauth/api/blogs?commUuid={resourceId}&amp;blogType=ideationblog"/>
                        <item name="searchUrl" value="{blogsSvcRef}/atom_form?search={searchTerm}&amp;commUuid={resourceId}&amp;t=idea&amp;ps=5&amp;page=0&amp;sortby=0&amp;order=desc&amp;lang=en"/>
                        <item name="searchUrl.basic" value="{blogsSvcRef}/atom?search={searchTerm}&amp;commUuid={resourceId}&amp;t=idea&amp;ps=5&amp;page=0&amp;sortby=0&amp;order=desc&amp;lang=en"/>
                        <item name="searchUrl.oauth" value="{blogsSvcRef}/oauth/atom?search={searchTerm}&amp;commUuid={resourceId}&amp;t=idea&amp;ps=5&amp;page=0&amp;sortby=0&amp;order=desc&amp;lang=en"/>
                    </itemSet>
                    <lifecycle remoteHandlerURL="{blogsInterSvcRef}/roller-ui/BlogsWidgetEventHandler.do" remoteHandlerAuthenticationAlias="connectionsAdmin">
                        <event>widget.added</event>
                        <event>widget.removed</event>
                        <event>community.visibility.changed</event>
                        <event>community.prepare.delete</event>
                        <event>remote.app.transfer</event>
                        <event>community.updated</event>
                        <event>community.members.added</event>
                        <event>community.members.removed</event>
                        <event>community.members.modified</event>
                    </lifecycle>
                </widgetDef>
                <widgetDef defId="Activities" 
                           prerequisite="activities" 
                           modes="view fullpage search" 
                           uniqueInstance="true" 
                           url="{webresourcesSvcRef}/web/lconn.communityactivities/ActivityList.xml?etag={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_activity_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/ActivitiesGray16.png" 
                           description="commActivitesDescription">
                <itemSet>
                    <item name="activityBaseUrl" value="{activitiesSvcRef}"/>
                    <item name="atomPubUrl" value="{activitiesSvcRef}/service/atom2/service?commUuid={resourceId}"/> 
                    <item name="atomFeedUrl" value="{activitiesSvcRef}/service/atom2/activities?commUuid={resourceId}&amp;public=yes&amp;authenticate=no"/>
                    <item name="searchUrl" value="{activitiesSvcRef}/service/atom2/activities?commUuid={resourceId}&amp;public=yes&amp;authenticate=no&amp;search={searchTerm}"/>
                    <item name="atomPubUrl.forms" value="{activitiesSvcRef}/service/atom2/forms/service?commUuid={resourceId}"/> 
                    <item name="atomFeedUrl.forms" value="{activitiesSvcRef}/service/atom2/forms/activities?commUuid={resourceId}&amp;public=yes&amp;authenticate=no"/>
                    <item name="searchUrl.forms" value="{activitiesSvcRef}/service/atom2/forms/activities?commUuid={resourceId}&amp;public=yes&amp;authenticate=no&amp;search={searchTerm}"/>
                    <item name="atomPubUrl.oauth" value="{activitiesSvcRef}/oauth/atom2/service?commUuid={resourceId}"/> 
                    <item name="atomFeedUrl.oauth" value="{activitiesSvcRef}/oauth/atom2/activities?commUuid={resourceId}&amp;public=yes&amp;authenticate=no"/>
                    <item name="searchUrl.oauth" value="{activitiesSvcRef}/oauth/atom2/activities?commUuid={resourceId}&amp;public=yes&amp;authenticate=no&amp;search={searchTerm}"/>
                    <item name="activitiesPerPage" value="5"/>
                    <item name="activitiesPerPageFullpage" value="10"/>
                    <item name="numHistoryItems" value="3"/>
                    <item name="cPath" value="{contextRoot}"/>
                </itemSet>                      
                <lifecycle remoteHandlerURL="{activitiesInterSvcRef}/service/atom2/forms/communityEvent" remoteHandlerAuthenticationAlias="connectionsAdmin">
                    <event>remote.app.removed</event>
                    <event>remote.app.added</event>
                    <event doesNotRequireWidget="true">community.visibility.changed</event>
                    <event doesNotRequireWidget="true">community.prepare.delete</event>
                    <event>remote.app.transfer</event>
                    <event doesNotRequireWidget="true">community.updated</event>
                    <event doesNotRequireWidget="true">community.members.removed</event>
                    <event doesNotRequireWidget="true">community.org.changed</event>
                </lifecycle>
              </widgetDef>
                <widgetDef defId="Wiki" 
                           prerequisite="wikis" url="{wikisSvcRef}/static/iwidgets/{version}/CommunityWidget/WikiWidget.xml" 
                           navBarLink="{wikisSvcRef}/communitywiki?communityUuid={resourceId}" 
                           description="wikiDescription" 
                           modes="view search edit" 
                           uniqueInstance="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_wiki_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/WikisGray16.png">
                    <itemSet>
                    <item name="wikisRoot" value="{wikisSvcRef}"/>
          <item name="atomPubUrl" value="{wikisSvcRef}/form/api/community/{resourceId}/introspection"/>
          <item name="atomPubUrl.basic" value="{wikisSvcRef}/basic/api/community/{resourceId}/introspection"/>
          <item name="atomPubUrl.oauth" value="{wikisSvcRef}/oauth/api/community/{resourceId}/introspection"/>
          <item name="atomFeedUrl" value="{wikisSvcRef}/form/api/communitywiki/{resourceId}/feed"/>
          <item name="atomFeedUrl.basic" value="{wikisSvcRef}/basic/api/communitywiki/{resourceId}/feed"/>
          <item name="atomFeedUrl.oauth" value="{wikisSvcRef}/oauth/api/communitywiki/{resourceId}/feed"/>
          <item name="searchUrl" value="{wikisSvcRef}/form/api/communitywiki/{resourceId}/feed?search={searchTerm}"/>
          <item name="searchUrl.basic" value="{wikisSvcRef}/basic/api/communitywiki/{resourceId}/feed?search={searchTerm}"/>
                    <item name="searchUrl.oauth" value="{wikisSvcRef}/oauth/api/communitywiki/{resourceId}/feed?search={searchTerm}"/>
                </itemSet>
                    <lifecycle remoteHandlerURL="{wikisInterSvcRef}/wl/lifecycle/wikis" remoteHandlerAuthenticationAlias="connectionsAdmin">
                        <event>widget.added</event>
                        <event>widget.removed</event>
                        <event>community.visibility.changed</event>
                        <event>community.updated</event>
                        <event>community.prepare.delete</event>
                        <event>remote.app.transfer</event>
                        <event>community.members.removed</event>
                        <event>community.org.changed</event>
                        <event>community.softdeleted</event>
                        <event>community.restored</event>
                    </lifecycle>
                </widgetDef>
                <widgetDef defId="Forum" 
                           prerequisite="forums" 
                           url="{webresourcesSvcRef}/web/lconn.forums/widgets/topicList.xml?etag={version}" 
                           modes="view edit fullpage search" 
                           description="forumDescription" 
                           uniqueInstance="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_forum_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/ForumsGray16.png">
                    <itemSet>
                        <item name="contextPath" value="{contextRoot}"/>
                        <item name="atomPubUrl" value="{forumsSvcRef}/atom/forms/service?communityUuid={resourceId}"/>
                        <item name="atomPubUrl.basic" value="{forumsSvcRef}/atom/service?communityUuid={resourceId}"/>
                        <item name="atomPubUrl.oauth" value="{forumsSvcRef}/oauth/atom/service?communityUuid={resourceId}"/>
                        <item name="atomFeedUrl" value="{forumsSvcRef}/atom/forms/topics?communityUuid={resourceId}"/>
                        <item name="atomFeedUrl.basic" value="{forumsSvcRef}/atom/topics?communityUuid={resourceId}"/>
                        <item name="atomFeedUrl.oauth" value="{forumsSvcRef}/oauth/atom/topics?communityUuid={resourceId}"/>
                        <item name="searchUrl" value="{forumsSvcRef}/atom/forms/topics?communityUuid={resourceId}&amp;search={searchTerm}"/>
                        <item name="searchUrl.basic" value="{forumsSvcRef}/atom/topics?communityUuid={resourceId}&amp;search={searchTerm}"/>
                        <item name="searchUrl.oauth" value="{forumsSvcRef}/oauth/atom/topics?communityUuid={resourceId}&amp;search={searchTerm}"/>
                        <item name="topicFeedPath" value="{forumsSvcRef}/atom/forms/topics?overview=true&amp;communityUuid={resourceId}"/>
                        <item name="overviewPageSize" value="5"/>
                        <item name="fullpagePageSize" value="25"/>
                        <item name="forumsPage" value="{forumsSvcRef}/ajax/comm/forums?communityId={resourceId}"/>
                        <item name="forumStyles" value="{webresourcesSvcRef}/web/com.ibm.lconn.core.styles/base/applications/forums.css?etag={version}"/>
                        <item name="forumsContextPath" value="{forumsSvcRef}"/>
                    </itemSet>
                    <lifecycle remoteHandlerURL="{forumsInterSvcRef}/lifecycle/communityEvent" remoteHandlerAuthenticationAlias="connectionsAdmin">
                        <event>remote.app.added</event>
                        <event>remote.app.removed</event>
                        <event>community.prepare.delete</event>
                        <event>community.visibility.changed</event>
                        <event>community.updated</event>
                        <event>community.members.removed</event>
                        <event>remote.app.transfer</event>
                        <event>community.org.changed</event>
                        <event>community.members.added</event>
                    </lifecycle>
                </widgetDef>
                <widgetDef defId="SubcommunityNav" 
                           description="subcommunityDescription" 
                           modes="view" 
                           uniqueInstance="true" 
                           url="{webresourcesSvcRef}/web/lconn.comm/widgets/subcommunityNav/subcommunitynav.xml?etag={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/t_com_create_subcommunity.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/CommunitiesGray16.png" 
                           showFullWidgetDeleteConfirmation="false">
                    <itemSet>    
                    <item name="subcommunitiesFeedUrl" value="{communitiesSvcRef}/service/atom{authSubpath}/community/subcommunities?communityUuid={resourceId}&amp;ps=200"/>                    
                    <item name="defaultView" value="images"/>
                </itemSet>
                </widgetDef>
                <widgetDef defId="Bookmarks" 
                           description="commBookmarks" 
                           modes="view search" 
                           uniqueInstance="true" 
                           url="{webresourcesSvcRef}/web/lconn.comm/widgets/feedReader/feedreader.xml?etag={version}" 
                           navBarLink="{contextRoot}/service/html/community/bookmarks?communityUuid={resourceId}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_bookmarks_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/BookmarksGray16.png">
                <itemSet>
                    <item name="widgetType" value="bookmarks"/>                      
                    <item name="feedUrl" value="{communitiesSvcRef}/service/atom{authSubpath}/community/bookmarks?communityUuid={resourceId}&amp;ps=5"/>                      
                    <item name="atomPubUrl" value="{communitiesSvcRef}/service/atom{authSubpath}/community/bookmarks/service?communityUuid={resourceId}"/>                      
                    <item name="searchUrl" value="{communitiesSvcRef}/service/atom{authSubpath}/community/bookmarks?communityUuid={resourceId}&amp;search={searchTerm}"/>
                </itemSet>
                <lifecycle handler="com.ibm.lconn.comm.lifecycle.ReferencesLifecycleHandler">
                    <event>remote.app.removed</event>
                </lifecycle>
            </widgetDef>
                <widgetDef defId="Feeds" 
                           description="commFeeds" 
                           modes="view search" 
                           uniqueInstance="true" 
                           url="{webresourcesSvcRef}/web/lconn.comm/widgets/feedReader/feedreader.xml?etag={version}" 
                           navBarLink="{contextRoot}/service/html/community/feeds?communityUuid={resourceId}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_feeds_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/Other/FeedGray16.png">
                <itemSet>
                    <item name="widgetType" value="feeds"/>                      
                    <item name="feedUrl" value="{communitiesSvcRef}/service/atom{authSubpath}/community/feeds?communityUuid={resourceId}&amp;ps=5"/>                         
                    <item name="atomPubUrl" value="{communitiesSvcRef}/service/atom{authSubpath}/community/feeds/service?communityUuid={resourceId}"/>                         
                    <item name="searchUrl" value="{communitiesSvcRef}/service/atom{authSubpath}/community/feeds?communityUuid={resourceId}&amp;search={searchTerm}"/>
                </itemSet>
                <lifecycle handler="com.ibm.lconn.comm.lifecycle.ReferencesLifecycleHandler">
                    <event>remote.app.removed</event>
                </lifecycle>
            </widgetDef>
                <widgetDef defId="Files" 
                           prerequisite="files" 
                           url="{filesSvcRef}/static/{version}!{locale}/iwidgets/CommunityReferentialWidget/widget.xml" 
                           description="filesDescription" 
                           modes="view fullpage search edit" 
                           uniqueInstance="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_files_frame.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/FilesGray16.png">
                    <itemSet>
                    <item name="filesRoot" value="{filesSvcRef}"/>
                    <item name="filesJsRoot" value="{filesSvcRef}/static/js/{version}!{locale}"/>
                    <item name="contextRoot" value="{contextRoot}"/>
                <item name="staticLanguageRoot" value="{filesSvcRef}/static/{version}!{locale}/"/>
          <item name="atomPubUrl" value="{filesSvcRef}/form/api/community/{resourceId}/introspection"/>
          <item name="atomPubUrl.basic" value="{filesSvcRef}/basic/api/community/{resourceId}/introspection"/>
          <item name="atomPubUrl.oauth" value="{filesSvcRef}/oauth/api/community/{resourceId}/introspection"/>
          <item name="atomFeedUrl" value="{filesSvcRef}/form/api/communitycollection/{resourceId}/feed"/>
          <item name="atomFeedUrl.basic" value="{filesSvcRef}/basic/api/communitycollection/{resourceId}/feed"/>
          <item name="atomFeedUrl.oauth" value="{filesSvcRef}/oauth/api/communitycollection/{resourceId}/feed"/>
          <item name="searchUrl" value="{filesSvcRef}/form/api/communitylibrary/{resourceId}/feed?search={searchTerm}"/>
          <item name="searchUrl.basic" value="{filesSvcRef}/basic/api/communitylibrary/{resourceId}/feed?search={searchTerm}"/>
          <item name="searchUrl.oauth" value="{filesSvcRef}/oauth/api/communitylibrary/{resourceId}/feed?search={searchTerm}"/>
                </itemSet>
                    <lifecycle remoteHandlerURL="{filesInterSvcRef}/wl/lifecycle/files" remoteHandlerAuthenticationAlias="connectionsAdmin">
                        <event>widget.added</event>
                        <event>widget.removed</event>
                        <event doesNotRequireWidget="true">community.visibility.changed</event>
                        <event doesNotRequireWidget="true">community.updated</event>
                        <event doesNotRequireWidget="true">community.prepare.delete</event>
                        <event doesNotRequireWidget="true">community.org.changed</event>
                        <event>remote.app.transfer</event>
                        <event>community.members.removed</event>
                        <event doesNotRequireWidget="true">community.softdeleted</event>
                        <event doesNotRequireWidget="true">community.restored</event>
                    </lifecycle>
                </widgetDef>
                <widgetDef defId="widgetPalette" 
                           resourceOwnerWidget="true" 
                           showInPalette="false" 
                           url="{webresourcesSvcRef}/web/lconn.comm/widgets/applicationPalette/applicationPalette.xml?etag={version}"/>
                <widgetDef defId="sand_recomComm" 
                           bundleRefId="lc_sand" 
                           url="{webresourcesSvcRef}/web/lconn.sand/descriptors/CommunityRecommend.xml?etag={version}" 
                           prerequisite="sand" 
                           showInPalette="false" 
                           displayLoginRequired="true" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/t_com_using_recommended_comms_widget.html">
                <itemSet>
                  <item name="sandUIRoot" value="{webresourcesSvcRef}/web/lconn.sand/"/>
                  <item name="sandBackEndRoot" value="{searchSvcRef}"/>
                  <item name="sourceList" value="communities"/>
                  <item name="ApiUrl" value="{searchSvcRef}/atom/social/recommend"/>
                  <item name="navContentLocation" value="{contextRoot}/nav"/>
                  <item name="xhrErrorHandlerAsString" value="lconn.core.errorhandling.DefaultXHRErrorHandler"/>
               </itemSet>
            </widgetDef>
                <widgetDef modes="view edit" 
                           primaryWidget="false" 
                           bundleRefId="lc_clib" 
                           iconUrl="{webresourcesSvcRef}/web/lconn.gallery/images/gallery_16.png" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/gallery_frame.html" 
                           showFullWidgetDeleteConfirmation="false" 
                           description="Gallery.description" 
                           url="{webresourcesSvcRef}/web/lconn.gallery/Gallery.xml?etag={version}" 
                           defId="Gallery" prerequisite="files">
                    <itemSet>
                        <item name="proxyUrl" value="{contextRoot}/commonProxy"/>
                        <item name="filesContextRoot" value="{filesSvcRef}"/>
                    </itemSet>
                </widgetDef>
                <widgetDef defId="MediaGallery" 
                           bundleRefId="lc_clib" 
                           prerequisite="files" 
                           description="MediaGallery.description" 
                           uniqueInstance="true" 
                           url="{webresourcesSvcRef}/web/quickr.lw/widgetDefs/MediaGalleryWidget_CMIS.xml?etag={version}" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/media_gallery_frame.html" 
                           modes="view edit fullpage" 
                           primaryWidget="false" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/MediaGalleryGray16.png" 
                           showInPalette="false">
                    <itemSet>
                 <item name="svcDocUrl" value="{filesSvcRef}/form/cmis/community/{resourceId}/owned/servicedoc"/>
                 <item name="svcDocUrlAnon" value="{filesSvcRef}/form/anonymous/cmis/community/{resourceId}/owned/servicedoc"/>
                 <item name="svcContext" value="{filesSvcRef}"/>
                 <item name="rootCategory" value="library"/>
                 <item name="category.folder" value="false"/>
                 <item name="validPhotoExts" value="jpg,jpeg,gif,png"/>
                 <item name="validVideoExts" value="mp4,mov,flv"/>
                 <item name="widgetEnv" value="Connections"/>
                 <item name="mg_typesToShow" value="photos_and_videos"/>
                 <item name="mg_photoType" value="ada30772-31fe-44bf-b8b4-dd7e4f072cd6"/>
                 <item name="mg_videoType" value="ada30772-31fe-44bf-b8b4-dd7e4f072ad6"/>
                 <item name="mg_fileUrl" value="{contextRoot}/service/html/communityview?communityUuid={resourceId}#fullpageWidgetId={widgetId}&amp;file={objectTypeId}!{fileUuid}"/>
               </itemSet>
                </widgetDef>
                <widgetDef defId="Calendar" 
                           primaryWidget="false" 
                           showInPalette="true" 
                           description="calendarDescription" 
                           modes="view edit fullpage search" 
                           uniqueInstance="true" 
                           url="{communitiesSvcRef}/calendar/Calendar.xml?version={version}" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/CalendarGray16.png" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/community_events_frame.html">
                    <itemSet>
              <item name="calendarRoot" value="{communitiesSvcRef}/calendar"/>
              <item name="communitiesBaseUrl" value="{communitiesSvcRef}"/>
              <item name="defaultView" value="list"/>
           <item name="version" value="{version}"/>
           <item name="profilesBaseUrl" value="{profilesSvcRef}"/>
         <item name="atomPubUrl" value="{communitiesSvcRef}/calendar/atom_form/calendar/service?calendarUuid={resourceId}"/>
         <item name="atomPubUrl.basic" value="{communitiesSvcRef}/calendar/atom/calendar/service?calendarUuid={resourceId}"/>
         <item name="atomPubUrl.oauth" value="{communitiesSvcRef}/calendar/oauth/atom/calendar/service?calendarUuid={resourceId}"/>
         <item name="atomFeedUrl" value="{communitiesSvcRef}/calendar/atom_form/calendar/event?type=event&amp;calendarUuid={resourceId}"/>
         <item name="atomFeedUrl.basic" value="{communitiesSvcRef}/calendar/atom/calendar/event?type=event&amp;calendarUuid={resourceId}"/>
         <item name="atomFeedUrl.oauth" value="{communitiesSvcRef}/calendar/oauth/atom/calendar/event?type=event&amp;calendarUuid={resourceId}"/>
         <item name="searchUrl" value="{communitiesSvcRef}/calendar/atom_form/search?search={searchTerm}&amp;calendarUuid={resourceId}"/>
         <item name="searchUrl.basic" value="{communitiesSvcRef}/calendar/atom/search?search={searchTerm}&amp;calendarUuid={resourceId}"/>
         <item name="searchUrl.oauth" value="{communitiesSvcRef}/calendar/oauth/atom/search?search={searchTerm}&amp;calendarUuid={resourceId}"/>
            </itemSet>
                    <lifecycle remoteHandlerURL="{communitiesInterSvcRef}/calendar/handleEvent" remoteHandlerAuthenticationAlias="connectionsAdmin">
                        <event>remote.app.added</event>
                        <event>remote.app.removed</event>
                        <event>community.prepare.delete</event>
                        <event>community.visibility.changed</event>
                        <event>community.updated</event>
                        <event>community.members.added</event>
                        <event>community.members.removed</event>
                        <event>community.members.modified</event>
                    </lifecycle>
                </widgetDef>
                <widgetDef defId="RecentUpdates" 
                           modes="view" 
                           uniqueInstance="true" 
                           showInPalette="false" 
                           description="updatesDescription" 
                           url="{webresourcesSvcRef}/web/com.ibm.social.as.lconn/widgets/communitiesActivityStream.xml?etag={version}" 
                           navBarLink="{contextRoot}/service/html/community/updates?communityUuid={resourceId}&amp;filter=all" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/t_com_updates.html" 
                           fixedPosition="true">
                 <itemSet>
                    <item name="atomFeedUrl" value="{opensocialSvcRef}/rest/ublog/c!{resourceId}/@all?format=atom"/>
          <item name="atomFeedUrl.basic" value="{opensocialSvcRef}/basic/rest/ublog/c!{resourceId}/@all?format=atom"/>
          <item name="atomFeedUrl.oauth" value="{opensocialSvcRef}/oauth/rest/ublog/c!{resourceId}/@all?format=atom"/>
                 </itemSet>                   
            </widgetDef>
                <widgetDef defId="StatusUpdates" 
                           modes="view edit search" 
                           prerequisite="microblogging" 
                           uniqueInstance="true" 
                           showInPalette="true" 
                           description="updatesDescription" 
                           url="{webresourcesSvcRef}/web/com.ibm.social.as.lconn/widgets/communitiesActivityStream.xml?etag={version}" 
                           navBarLink="{contextRoot}/service/html/community/updates?communityUuid={resourceId}&amp;filter=status" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/t_com_share_status.html" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/StatusUpdateGray16.png" 
                           fixedPosition="true">
                    <itemSet>
          <item name="atomFeedUrl" value="{opensocialSvcRef}/rest/ublog/urn:lsid:lconn.ibm.com:communities.community:{resourceId}/@all?format=atom"/>
          <item name="atomFeedUrl.basic" value="{opensocialSvcRef}/basic/rest/ublog/urn:lsid:lconn.ibm.com:communities.community:{resourceId}/@all?format=atom"/>
          <item name="atomFeedUrl.oauth" value="{opensocialSvcRef}/oauth/rest/ublog/urn:lsid:lconn.ibm.com:communities.community:{resourceId}/@all?format=atom"/>
          <item name="searchUrl" value="{searchSvcRef}/atomfba/mysearch/results?scope=status_updates&amp;social=%7B%22type%22%3A%22community%22%2C%22id%22%3A%22{resourceId}%22%7D&amp;query={searchTerm}"/>
          <item name="searchUrl.basic" value="{searchSvcRef}/atom/mysearch/results?scope=status_updates&amp;social=%7B%22type%22%3A%22community%22%2C%22id%22%3A%22{resourceId}%22%7D&amp;query={searchTerm}"/>
          <item name="searchUrl.oauth" value="{searchSvcRef}/oauth/atom/mysearch/results?scope=status_updates&amp;social=%7B%22type%22%3A%22community%22%2C%22id%22%3A%22{resourceId}%22%7D&amp;query={searchTerm}"/>
                 </itemSet>
                    <lifecycle remoteHandlerURL="{newsInterSvcRef}/widget/communityHandler.do" remoteHandlerAuthenticationAlias="connectionsAdmin">
                        <event>remote.app.added</event>
                        <event>remote.app.removed</event>
                        <event>remote.app.transfer</event>
                        <event>community.visibility.changed</event>
                        <event>community.updated</event>
                        <event>community.org.changed</event>
                        <event>community.prepare.delete</event>
                    </lifecycle>
                </widgetDef>
                <widgetDef defId="RelatedCommunities" 
                           primaryWidget="false" 
                           showInPalette="true" 
                           description="relatedCommunitiesDescription" 
                           modes="view fullpage" 
                           uniqueInstance="true" 
                           url="{communitiesSvcRef}/recomm/Recomm.xml?version={version}" 
                           iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/CommunitiesGray16.png" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/t_com_share_related_communities.html">
                <itemSet>
                  <item name="recommRoot" value="{communitiesSvcRef}/recomm"/>
                  <item name="communitiesBaseUrl" value="{communitiesSvcRef}"/>
                  <item name="version" value="{version}"/>
          <item name="atomPubUrl" value="{communitiesSvcRef}/recomm/atom_form/service?communityUuid={resourceId}"/>
          <item name="atomPubUrl.basic" value="{communitiesSvcRef}/recomm/atom/service?communityUuid={resourceId}"/>
          <item name="atomPubUrl.oauth" value="{communitiesSvcRef}/recomm/oauth/atom/service?communityUuid={resourceId}"/>
          <item name="feedUrl" value="{communitiesSvcRef}/recomm/atom_form/relatedCommunities?communityUuid={resourceId}&amp;ps=10"/> 
          <item name="feedUrl.basic" value="{communitiesSvcRef}/recomm/atom/relatedCommunities?communityUuid={resourceId}&amp;ps=10"/> 
          <item name="feedUrl.oauth" value="{communitiesSvcRef}/recomm/oauth/atom/relatedCommunities?communityUuid={resourceId}&amp;ps=10"/> 
                </itemSet>
                <lifecycle remoteHandlerURL="{communitiesInterSvcRef}/recomm/handleEvent" remoteHandlerAuthenticationAlias="connectionsAdmin">
                  <event>remote.app.added</event>
                  <event>remote.app.removed</event>
                  <event>community.prepare.delete</event>
                  <event>community.visibility.changed</event>
                  <event>community.updated</event>
                </lifecycle>
            </widgetDef>
                <!--
            The Linked Library widget allows you to connect to your existing IBM FileNet or IBM Content Manager document libraries.

          <widgetDef defId="CustomLibrary" bundleRefId="lc_clib" url="{webresourcesSvcRef}/web/quickr.lw/widgetDefs/LibraryWidget_QCS_Connections.xml?etag={version}"
                   description="CustomLibrary.description" modes="view edit fullpage" primaryWidget="false"
                   helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/c_com_library_frame.html"
                   iconUrl="{contextRoot}/nav/common/images/LinkedFiles.png">
           <itemSet>
               <item name="proxyUrl" value="{contextRoot}/commonProxy" />
           </itemSet>
        </widgetDef>     
    -->
                <!--
            CCM: Use for testing multiple libraries 
            <widgetDef defId="MyLibrary" modes="view edit fullpage" 
                showInPalette="true" 
                uniqueInstance="false"                
                navBarLink="javascript:javascript: void(0)"
                url="{webresourcesSvcRef}/web/lconn.comm/widgets/multiInstance/multiInstance.xml?version={version}"
                iconUrl="{webresourcesSvcRef}/web/com.ibm.oneui3.styles/imageLibrary/Icons/ComponentsGray/FilesGray16.png">                 
                <lifecycle handler="com.ibm.lconn.comm.lifecycle.ReferencesLifecycleHandler">
                    <event>remote.app.removed</event>
                </lifecycle>
            </widgetDef>                       
-->
                <widgetDef defId="Library" 
                           bundleRefId="lc_clib" 
                           url="{webresourcesSvcRef}/web/quickr.lw/widgetDefs/LibraryWidget_QCS_Connections.xml?etag={version}" 
                           description="Library.description" 
                           modes="view search edit fullpage" 
                           prerequisite="ecm_files" 
                           helpLink="{helpSvcRef}/topic/com.ibm.lotus.connections.communities.help/c_com_library_frame.html" 
                           iconUrl="{contextRoot}/nav/common/images/ManagedFiles.png" 
                           showInExternalCommunities="false">
                    <itemSet>
                        <item name="proxyUrl" value="{contextRoot}/commonProxy"/>
                        <item name="isLifecycle" value="true"/>
                    </itemSet>
                    <lifecycle remoteHandlerURL="{ecm_filesInterSvcRef}/atom/communities/feed" remoteHandlerAuthenticationAlias="filenetAdmin">
                        <event>widget.added</event>
                        <event>widget.removed</event>
                        <event>widget.renamed</event>
                        <event>community.members.added</event>
                        <event>community.members.removed</event>
                        <event>community.members.modified</event>
                        <event>community.visibility.changed</event>
                        <event>community.prepare.delete</event>
                        <event>community.updated</event>
                    </lifecycle>
                </widgetDef>
            </definitions>
            <layout resourceSubType="default">
                <page pageId="communityOverview">
                <widgetInstance uiLocation="col2recentposts" defIdRef="RecentUpdates"/> 
                <widgetInstance uiLocation="col3" defIdRef="Members"/>
              </page>
                <page pageId="allCommunities">
                <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
               </page>
                <page pageId="myCommunities">
                <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
              </page>
                <page pageId="own">
                    <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
                </page>
                <page pageId="my">
                    <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
                </page>
                <page pageId="follow">
                    <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
                </page>
                <page pageId="invite">
                    <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
                </page>
                <page pageId="all">
                    <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
                </page>
                <page pageId="restricted">
                    <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
                </page>
                <page pageId="trash">
                    <widgetInstance uiLocation="col1" defIdRef="sand_recomComm"/>
                </page>
            </layout>
        </widgets>

        <templates>
            <!-- default template will be used to display the default widgets -->
            <template id="default">        
                <widgetInstance uiLocation="col2statusposts" defIdRef="StatusUpdates" instanceId="StatusUpdates1"/>
                <widgetInstance uiLocation="col2" defIdRef="Forum" instanceId="ForumInstance1"/>
                <widgetInstance uiLocation="col2" defIdRef="Bookmarks" instanceId="BookmarksInstance1"/>
                <widgetInstance uiLocation="col2" defIdRef="Files" instanceId="FilesInstance1"/>
            </template>
        </templates>
    </resource>
</config>