<ManagementPack ContentReadable="true" SchemaVersion="1.1" OriginalSchemaVersion="1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <Manifest>
    <Identity>
      <ID>Microsoft.Demo.SoftwareViews</ID>
      <Version>1.0.0.0</Version>
    </Identity>
    <Name>Microsoft Demonstration Software Views MP</Name>
    <References>
      <Reference Alias="Console">
        <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Console</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="Authoring">
        <ID>Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="Windows">
        <ID>Microsoft.Windows.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="ConfigurationManagement">
        <ID>ServiceManager.ConfigurationManagement.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="System">
        <ID>System.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
      <Reference Alias="SoftwareLibrary">
        <ID>System.Software.Library</ID>
        <Version>7.0.6555.0</Version>
        <PublicKeyToken>31bf3856ad364e35</PublicKeyToken>
      </Reference>
    </References>
  </Manifest>
  <TypeDefinitions>
    <EntityTypes>
      <TypeProjections>
        <TypeProjection ID="Microsoft.Demo.ComputersHaveSoftware.ProjectionType" Accessibility="Public" Type="Windows!Microsoft.Windows.Computer">
          <Component Path="$Context/Path[Relationship='SoftwareLibrary!System.DeviceHasSoftwareItemInstalled']$" Alias="WindowsComputerHasSoftwareItem" />
        </TypeProjection>
        <TypeProjection ID="Microsoft.Demo.PrimaryUsersComputersHaveSoftware.ProjectionType" Accessibility="Public" Type="System!System.Domain.User">
          <Component Path="$Context/Path[Relationship='System!System.ComputerPrimaryUser' SeedRole='Target']$" Alias="UserIsPrimaryUserOfComputer">
            <Component Path="$Context/Path[Relationship='SoftwareLibrary!System.DeviceHasSoftwareItemInstalled']$" Alias="WindowsComputerHasSoftwareItem" />
          </Component>
        </TypeProjection>
      </TypeProjections>
    </EntityTypes>
  </TypeDefinitions>
  <Categories>
    <Category ID="Category.FolderTasks" Target="Folder.CustomSoftwareViews" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.FolderTasks" />
    <Category ID="Category.49768ad14eb84123894189c9f6aed921" Target="View.ServiceManagerSelfServicePortalActiveXControl" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ViewTasks" />
    <Category ID="Category.e2f5c53c131f418496bc42ee39dbff5c" Target="View.ServiceManagerSelfServicePortalActiveXControl" Value="Authoring!Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring.CreateTypeCategory" />
    <Category ID="Category.03b906a9171d49be89d975eb6ebfea67" Target="View.0067b9fb6eba4410bdd5af2be0a66276" Value="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.ViewTasks" />
    <Category ID="Category.400563c62edc4451bff1b0fbbd5714b1" Target="View.0067b9fb6eba4410bdd5af2be0a66276" Value="Authoring!Microsoft.EnterpriseManagement.ServiceManager.UI.Authoring.CreateTypeCategory" />
  </Categories>
  <Presentation>
    <Views>
      <View ID="View.ServiceManagerSelfServicePortalActiveXControl" Accessibility="Public" Enabled="true" Target="Windows!Microsoft.Windows.Computer" TypeID="Console!GridViewType" Visible="true">
        <Category>NotUsed</Category>
        <Data>
          <Adapters>
            <Adapter AdapterName="dataportal:EnterpriseManagementObjectProjectionAdapter">
              <AdapterAssembly>Microsoft.EnterpriseManagement.UI.SdkDataAccess</AdapterAssembly>
              <AdapterType>Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.EnterpriseManagementObjectProjectionAdapter</AdapterType>
            </Adapter>
            <Adapter AdapterName="viewframework://Adapters/AdvancedList">
              <AdapterAssembly>Microsoft.EnterpriseManagement.UI.ViewFramework</AdapterAssembly>
              <AdapterType>Microsoft.EnterpriseManagement.UI.ViewFramework.AdvancedListSupportAdapter</AdapterType>
            </Adapter>
          </Adapters>
          <ItemsSource>
            <AdvancedListSupportClass DataTypeName="" AdapterName="viewframework://Adapters/AdvancedList" FullUpdateAdapter="dataportal:EnterpriseManagementObjectProjectionAdapter" DataSource="mom:ManagementGroup" FullUpdateFrequency="1" Streaming="true" IsRecurring="true" RecurrenceFrequency="{x:Static s:Int32.MaxValue}" xmlns="clr-namespace:Microsoft.EnterpriseManagement.UI.ViewFramework;assembly=Microsoft.EnterpriseManagement.UI.ViewFramework" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib">
              <AdvancedListSupportClass.Parameters>
                <QueryParameter Parameter="TypeProjectionName" Value="Microsoft.Demo.ComputersHaveSoftware.ProjectionType" />
              </AdvancedListSupportClass.Parameters>
            </AdvancedListSupportClass>
          </ItemsSource>
          <Criteria>
            <QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
              <Criteria>
                <FreeformCriteria>
                  <Freeform>
                    <Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
                      <Expression>
                        <And>
                          <Expression>
                            <SimpleExpression>
                              <ValueExpressionLeft>
                                <Property>$Context/Property[Type='System!System.ConfigItem']/ObjectStatus$</Property>
                              </ValueExpressionLeft>
                              <Operator>NotEqual</Operator>
                              <ValueExpressionRight>
                                <Value>{47101e64-237f-12c8-e3f5-ec5a665412fb}</Value>
                              </ValueExpressionRight>
                            </SimpleExpression>
                          </Expression>
                          <Expression>
                            <SimpleExpression>
                              <ValueExpressionLeft>
                                <GenericProperty Path="$Context/Path[Relationship='SoftwareLibrary!System.DeviceHasSoftwareItemInstalled']$">DisplayName</GenericProperty>
                              </ValueExpressionLeft>
                              <Operator>Like</Operator>
                              <ValueExpressionRight>
                                <Value>%Microsoft System Center Service Manager Portal ActiveX Control%</Value>
                              </ValueExpressionRight>
                            </SimpleExpression>
                          </Expression>
                        </And>
                      </Expression>
                    </Criteria>
                  </Freeform>
                </FreeformCriteria>
              </Criteria>
            </QueryCriteria>
          </Criteria>
        </Data>
        <Presentation>
          <Columns>
            <mux:ColumnCollection xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mux="http://schemas.microsoft.com/SystemCenter/Common/UI/Views/GridView" xmlns:s="clr-namespace:System;assembly=mscorlib">
              <mux:Column Name="AssetStatus.DisplayName" DisplayMemberBinding="{Binding Path=AssetStatus.DisplayName}" Width="100" DisplayName="Asset Status" Property="AssetStatus.DisplayName" DataType="s:String" />
              <mux:Column Name="DisplayName" DisplayMemberBinding="{Binding Path=DisplayName}" Width="100" DisplayName="Display Name" Property="DisplayName" DataType="s:String" />
              <mux:Column Name="DomainDnsName" DisplayMemberBinding="{Binding Path=DomainDnsName}" Width="100" DisplayName="DNS Domain Name" Property="DomainDnsName" DataType="s:String" />
              <mux:Column Name="IsVirtualMachine" DisplayMemberBinding="{Binding Path=IsVirtualMachine}" Width="100" DisplayName="Virtual Machine" Property="IsVirtualMachine" DataType="s:Boolean" />
            </mux:ColumnCollection>
          </Columns>
          <ViewStrings />
        </Presentation>
      </View>
      <View ID="View.0067b9fb6eba4410bdd5af2be0a66276" Accessibility="Public" Enabled="true" Target="System!System.Domain.User" TypeID="Console!GridViewType" Visible="true">
        <Category>NotUsed</Category>
        <Data>
          <Adapters>
            <Adapter AdapterName="dataportal:EnterpriseManagementObjectProjectionAdapter">
              <AdapterAssembly>Microsoft.EnterpriseManagement.UI.SdkDataAccess</AdapterAssembly>
              <AdapterType>Microsoft.EnterpriseManagement.UI.SdkDataAccess.DataAdapters.EnterpriseManagementObjectProjectionAdapter</AdapterType>
            </Adapter>
            <Adapter AdapterName="viewframework://Adapters/AdvancedList">
              <AdapterAssembly>Microsoft.EnterpriseManagement.UI.ViewFramework</AdapterAssembly>
              <AdapterType>Microsoft.EnterpriseManagement.UI.ViewFramework.AdvancedListSupportAdapter</AdapterType>
            </Adapter>
          </Adapters>
          <ItemsSource>
            <AdvancedListSupportClass DataTypeName="" AdapterName="viewframework://Adapters/AdvancedList" FullUpdateAdapter="dataportal:EnterpriseManagementObjectProjectionAdapter" DataSource="mom:ManagementGroup" FullUpdateFrequency="1" Streaming="true" IsRecurring="true" RecurrenceFrequency="{x:Static s:Int32.MaxValue}" xmlns="clr-namespace:Microsoft.EnterpriseManagement.UI.ViewFramework;assembly=Microsoft.EnterpriseManagement.UI.ViewFramework" xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib">
              <AdvancedListSupportClass.Parameters>
                <QueryParameter Parameter="TypeProjectionId" Value="$MPElement[Name='Microsoft.Demo.PrimaryUsersComputersHaveSoftware.ProjectionType']$" />
              </AdvancedListSupportClass.Parameters>
            </AdvancedListSupportClass>
          </ItemsSource>
          <Criteria>
            <QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
              <Criteria>
                <FreeformCriteria>
                  <Freeform>
                    <Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
                      <Expression>
                        <And>
                          <Expression>
                            <SimpleExpression>
                              <ValueExpressionLeft>
                                <Property>$Context/Property[Type='System!System.ConfigItem']/ObjectStatus$</Property>
                              </ValueExpressionLeft>
                              <Operator>NotEqual</Operator>
                              <ValueExpressionRight>
                                <Value>{47101e64-237f-12c8-e3f5-ec5a665412fb}</Value>
                              </ValueExpressionRight>
                            </SimpleExpression>
                          </Expression>
                          <Expression>
                            <SimpleExpression>
                              <ValueExpressionLeft>
                                <Property>$Context/Path[Relationship='System!System.ComputerPrimaryUser' SeedRole='Target']/Path[Relationship='SoftwareLibrary!System.DeviceHasSoftwareItemInstalled' TypeConstraint='SoftwareLibrary!System.SoftwareItem']/Property[Type='SoftwareLibrary!System.SoftwareItem']/ProductName$</Property>
                              </ValueExpressionLeft>
                              <Operator>Like</Operator>
                              <ValueExpressionRight>
                                <Value>%iTunes%</Value>
                              </ValueExpressionRight>
                            </SimpleExpression>
                          </Expression>
                        </And>
                      </Expression>
                    </Criteria>
                  </Freeform>
                </FreeformCriteria>
              </Criteria>
            </QueryCriteria>
          </Criteria>
        </Data>
        <Presentation>
          <Columns>
            <mux:ColumnCollection xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:mux="http://schemas.microsoft.com/SystemCenter/Common/UI/Views/GridView" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:data="clr-namespace:Microsoft.EnterpriseManagement.UI.SdkDataAccess.Common;assembly=Microsoft.EnterpriseManagement.UI.SdkDataAccess">
              <mux:Column Name="UserName" DisplayMemberBinding="{Binding Path=UserName}" Width="100" DisplayName="UserName.29c9b8e8bc9545ca9c610e91ca800ebb" Property="UserName" DataType="s:String" />
            </mux:ColumnCollection>
          </Columns>
          <ViewStrings>
            <ViewString ID="UserName.29c9b8e8bc9545ca9c610e91ca800ebb">$MPElement[Name="UserName.29c9b8e8bc9545ca9c610e91ca800ebb"]$</ViewString>
          </ViewStrings>
        </Presentation>
      </View>
    </Views>
    <Folders>
      <Folder ID="Folder.CustomSoftwareViews" Accessibility="Public" ParentFolder="ConfigurationManagement!ServiceManager.Console.ConfigurationManagement.ConfigItem.Root" />
    </Folders>
    <FolderItems>
      <FolderItem ElementID="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.Task.CreateGridView" ID="FolderItem.CustomSoftwareViews" Folder="Folder.CustomSoftwareViews" />
      <FolderItem ElementID="View.ServiceManagerSelfServicePortalActiveXControl" ID="FolderItem.724d194557464bf2a341ed4e2c681688" Folder="Folder.CustomSoftwareViews" />
      <FolderItem ElementID="View.0067b9fb6eba4410bdd5af2be0a66276" ID="FolderItem.6181c381a2084b5f8cde0947eab39e86" Folder="Folder.CustomSoftwareViews" />
    </FolderItems>
    <ImageReferences>
      <ImageReference ElementID="Folder.CustomSoftwareViews" ImageID="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.Image.Folder" />
      <ImageReference ElementID="View.ServiceManagerSelfServicePortalActiveXControl" ImageID="Console!Microsoft.EnterpriseManagement.ServiceManager.UI.Console.Image.CreateView" />
      <ImageReference ElementID="View.0067b9fb6eba4410bdd5af2be0a66276" ImageID="ConfigurationManagement!ConfigItemImage16x16" />
    </ImageReferences>
    <StringResources>
      <StringResource ID="UserName.29c9b8e8bc9545ca9c610e91ca800ebb" />
    </StringResources>
  </Presentation>
  <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
      <DisplayStrings>
        <DisplayString ElementID="Microsoft.Demo.SoftwareViews">
          <Name>Software Views</Name>
        </DisplayString>
        <DisplayString ElementID="Microsoft.Demo.PrimaryUsersComputersHaveSoftware.ProjectionType">
          <Name>Users - Computers - Software</Name>
        </DisplayString>
        <DisplayString ElementID="Folder.CustomSoftwareViews">
          <Name>Custom Software Views</Name>
        </DisplayString>
        <DisplayString ElementID="View.ServiceManagerSelfServicePortalActiveXControl">
          <Name>Service Manager Self-Service Portal Active X Control</Name>
        </DisplayString>
        <DisplayString ElementID="View.0067b9fb6eba4410bdd5af2be0a66276">
          <Name>Users Who Have iTunes Installed</Name>
        </DisplayString>
        <DisplayString ElementID="UserName.29c9b8e8bc9545ca9c610e91ca800ebb">
          <Name>User Name</Name>
          <Description>User Name</Description>
        </DisplayString>
      </DisplayStrings>
    </LanguagePack>
  </LanguagePacks>
</ManagementPack>