Get-Job.ps1

function Get-Job {
<#
.SYNOPSIS
Retrieves one or more entities from the Job entity set.
 
 
.DESCRIPTION
Retrieves one or more entities from the Job entity set.
 
You can retrieve one ore more entities from the entity set by specifying
Id, Name or other properties.
 
 
.INPUTS
The Cmdlet can either return all available entities or filter entities on
specified conditions.
See PARAMETERS section on possible inputs.
 
 
.OUTPUTS
default | json | json-pretty | xml | xml-pretty
 
In addition output can be filtered on specified properties.
 
 
.EXAMPLE
Get-Job -ListAvailable -Select Id, Status, Name
 
  Id Status Name
  -- ------ ----
1029 Approved biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
1031 Approved biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
1033 Created biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
1035 Created biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
1037 Created biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
1039 Created biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
   2 InitialState biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
   3 InitialState biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
   4 InitialState biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
   5 InitialState biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
   6 InitialState biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
...
 
Retrieves the id, status and name of all Jobs.
 
 
.EXAMPLE
Get-Job 1027
 
Status : InitialState
RefId : 1027
Token :
TenantId : 00000000-0000-0000-0000-000000000000
EntityKindId : 2
Parameters :
Condition :
ConditionParameters : {"ServiceId":"100054"}
Error :
EndTime :
ParentId : 1
Id : 2
Tid : 22222222-2222-2222-2222-222222222222
Name : biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
Description : This is a node job
CreatedById : 1
ModifiedById : 1
Created : 01.12.2015 00:00:00 +01:00
Modified : 01.12.2015 00:00:00 +01:00
RowVersion : {0, 0, 0, 0...}
EntityKind :
Parent :
Children : {}
Tenant :
CreatedBy :
ModifiedBy :
 
Retrieves the Job object with Id 1027 and returns all properties of it.
 
 
.EXAMPLE
Get-Job 1027 -Select ConditionParameters -ValueOnly -ConvertFromJson
 
ServiceId
---
100054
 
Similar to the previous example, but only returns the 'ConditionParameters' property
of it. In addition the contents of the property will be converted from JSON.
 
 
.EXAMPLE
Get-Job -ListAvailable -Select Id -First 3
 
Id
--
 2
 3
 4
 
Retrieves the id of the first 3 Jobs.
 
 
.EXAMPLE
Get-Job 1027 -Select Name -ValueOnly
 
biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 
Retrieves the name of the Job with Id 4005.
 
 
.EXAMPLE
Get-Job -ModifiedBy SYSTEM -Select Id, Name
 
Id Name
-- ----
 1 Root Job
 2 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 3 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 4 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 5 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 6 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 7 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 8 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 9 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
10 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
11 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
12 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
13 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
14 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
15 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
16 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
17 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
18 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
19 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
20 biz.dfch.CS.Appclusive.Core.OdataServices.Core.Node
 
Retrieves id and name of all Jobs that have been modified by user
with name 'SYSTEM' (case insensitive substring match).
 
 
.EXAMPLE
Get-Job AppclusiveScheduler -Select Name -ValueOnly -DefaultValue 'AppclusiveSchedulerNotAvailable'
 
AppclusiveSchedulerNotAvailable
 
Retrieves the 'Name' property of a Job with Name 'AppclusiveScheduler'
and AppclusiveSchedulerNotAvailable if the entity is not found.
 
 
.LINK
Online Version: http://dfch.biz/biz/dfch/PS/Appclusive/Client/Get-Job/
 
 
.NOTES
See module manifest for required software versions and dependencies.
 
 
#>

[CmdletBinding(
    SupportsShouldProcess = $true
    ,
    ConfirmImpact = 'Low'
    ,
    HelpURI = 'http://dfch.biz/biz/dfch/PS/Appclusive/Client/Get-Job/'
    ,
    DefaultParameterSetName = 'list'
)]
PARAM 
(
    # Specifies the id of the entity
    [Parameter(Mandatory = $false, Position = 0, ParameterSetName = 'id')]
    [long] $Id
    ,
    # Specifies the name of the entity
    [Parameter(Mandatory = $false, Position = 0, ParameterSetName = 'name')]
    [Alias('n')]
    [string] $Name
    ,
    # Filter by creator
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [string] $CreatedBy
    ,
    # Filter by modifier
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [string] $ModifiedBy
    ,
    # Specifies the Parent id for this entity
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [long] $ParentId
    ,
    # Specifies the Parent id for this entity
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [string] $Status
    ,
    # Specifies the EntityKind id for this entity
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [long] $EntityKindId
    ,
    # Specifies the EntityKind name for this entity
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [string] $EntityKindName
    ,
    # Specify the attributes of the entity to return
    [Parameter(Mandatory = $false)]
    [string[]] $Select = @()
    ,
    # Specifies to return only values without header information.
    # This parameter takes precendes over the 'Select' parameter.
    [ValidateScript( { if(1 -eq $Select.Count -And $_) { $true; } else { throw("You must specify exactly one 'Select' property when using 'ValueOnly'."); } } )]
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Parameter(Mandatory = $false, ParameterSetName = 'id')]
    [Alias('HideTableHeaders')]
    [switch] $ValueOnly
    ,
    # This value is only returned if the regular search would have returned no results
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Alias('default')]
    $DefaultValue
    ,
    # Specifies to deserialize JSON payloads
    [ValidateScript( { if($ValueOnly -And $_) { $true; } else { throw("You must set the 'ValueOnly' switch when using 'ConvertFromJson'."); } } )]
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Parameter(Mandatory = $false, ParameterSetName = 'id')]
    [Alias('Convert')]
    [switch] $ConvertFromJson
    ,
    # Limits the output to the specified number of entries
    [Parameter(Mandatory = $false)]
    [Alias('top')]
    [int] $First
    ,
    # Service reference to Appclusive
    [Parameter(Mandatory = $false)]
    [Alias('Services')]
    [hashtable] $svc = (Get-Variable -Name $MyInvocation.MyCommand.Module.PrivateData.MODULEVAR -ValueOnly).Services
    ,
    # Indicates to return all file information
    [Parameter(Mandatory = $false, ParameterSetName = 'list')]
    [switch] $ListAvailable = $false
    ,
    # Indicates to return node information
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Parameter(Mandatory = $false, ParameterSetName = 'id')]
    [Alias('ExpandRef')]
    [Alias('ExpandReferencedItem')]
    [switch] $ExpandNode = $false
    ,
    # Indicates to return child information
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Parameter(Mandatory = $false, ParameterSetName = 'id')]
    [Alias('ExpandChildJobs')]
    [switch] $ExpandChildren = $false
    ,
    # Indicates to return node information
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Parameter(Mandatory = $false, ParameterSetName = 'id')]
    [switch] $ExpandInterface = $false
    ,
    # Indicates to return node information
    [Parameter(Mandatory = $false, ParameterSetName = 'name')]
    [Parameter(Mandatory = $false, ParameterSetName = 'id')]
    [switch] $ExpandConnector = $false
    ,
    # Specifies the return format of the Cmdlet
    [ValidateSet('default', 'json', 'json-pretty', 'xml', 'xml-pretty')]
    [Parameter(Mandatory = $false)]
    [alias('ReturnFormat')]
    [string] $As = 'default'
)

Begin 
{
    trap { Log-Exception $_; break; }

    $datBegin = [datetime]::Now;
    [string] $fn = $MyInvocation.MyCommand.Name;
    Log-Debug -fn $fn -msg ("CALL. svc '{0}'. Name '{1}'." -f ($svc -is [Object]), $Name) -fac 1;
    
    $EntitySetName = 'Jobs';
    
    # Parameter validation
    Contract-Requires ($svc.Core -is [biz.dfch.CS.Appclusive.Api.Core.Core]) "Connect to the server before using the Cmdlet";
    Contract-Requires (1 -ge ($PSBoundParameters.GetEnumerator() | Where { $_.Key -match 'Expand' -and $_.Value -eq $true}).Count) "You can specify only one 'Expand...' param.";
    
    if($Select) 
    {
        $Select = $Select | Select -Unique;
    }
}
# Begin

Process 
{
    trap { Log-Exception $_; break; }

    # Default test variable for checking function response codes.
    [Boolean] $fReturn = $false;
    # Return values are always and only returned via OutputParameter.
    $OutputParameter = $null;

    Contract-Assert ($PSCmdlet.ShouldProcess(($PSBoundParameters | Out-String)))

    if($PSCmdlet.ParameterSetName -eq 'list') 
    {
        if($PSBoundParameters.ContainsKey('First'))
        {
            $Response = $svc.Core.$EntitySetName.AddQueryOption('$orderby','Name').AddQueryOption('$top', $First) | Select;
        }
        else
        {
            $Response = $svc.Core.$EntitySetName.AddQueryOption('$orderby','Name') | Select;
        }
        
        if($Select) 
        {
            $Response = $Response | Select -Property $Select;
        }
    } 
    else 
    {
        $Exp = @();
        if($PSCmdlet.ParameterSetName -eq 'id')
        {
            $Exp += ("Id eq {0}" -f $Id);
        }
        if($Name) 
        { 
            $Exp += ("tolower(Name) eq '{0}'" -f $Name.ToLower());
        }
        if($Status) 
        { 
            $Exp += ("tolower(Status) eq '{0}'" -f $Status.ToLower());
        }
        if($ParentId)
        {
            $Exp += ("ParentId eq {0}" -f $ParentId);
        }
        if($CreatedBy) 
        { 
            $CreatedById = Get-User -svc $svc $CreatedBy -Select Id -ValueOnly;
            Contract-Assert ( !!$CreatedById ) 'User not found';
            $Exp += ("(CreatedById eq {0})" -f $CreatedById);
        }
        if($ModifiedBy)
        { 
            $ModifiedById = Get-User -svc $svc $ModifiedBy -Select Id -ValueOnly;
            Contract-Assert ( !!$ModifiedById ) 'User not found';
            $Exp += ("(ModifiedById eq {0})" -f $ModifiedById);
        }
        if($EntityKindName)
        {
            $EntityKindId = Get-EntityKind -Name $EntityKindName -svc $svc -Select Id -ValueOnly;
            Contract-Assert ( !!$EntityKindId ) 'EntityKind not found';
        }
        if($EntityKindId)
        {
            $Exp += ("(EntityKindId eq {0})" -f $EntityKindId);
        }
        $FilterExpression = [String]::Join(' and ', $Exp);
        
        if($PSBoundParameters.ContainsKey('First'))
        {
            if(!$ExpandChildren)
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression).AddQueryOption('$top', $First) | Select;
            }
            else
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression).AddQueryOption('$expand', 'Children').AddQueryOption('$top', $First) | Select;
            }
        }
        else
        {
            if(!$ExpandChildren)
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression) | Select;
            }
            else
            {
                $Response = $svc.Core.$EntitySetName.AddQueryOption('$filter', $FilterExpression).AddQueryOption('$expand', 'Children') | Select;
            }
        }
    
        if($Select) 
        {
            $Response = $Response | Select -Property $Select;
        }
        else 
        {
            if ( $ExpandNode )
            {
                $ResponseTemp = New-Object System.Collections.ArrayList;
                foreach ($item in $Response)
                {
                    if ( $item.RefId )
                    {
                        $Response_ = Get-Node -Id $item.RefId -svc $svc;
                        $null = $ResponseTemp.Add($Response_);
                    }
                }
                $Response = $ResponseTemp.ToArray();
            }
            elseif ( $ExpandInterface )
            {
                $ResponseTemp = New-Object System.Collections.ArrayList;
                foreach ($item in $Response)
                {
                    if ( $item.RefId )
                    {
                        $Response_ = $svc.Core.Interfaces.AddQueryOption('$filter', ('Id eq {0}' -f $item.RefId)) | Select;
                        $null = $ResponseTemp.Add($Response_);
                    }
                }
                $Response = $ResponseTemp.ToArray();
            }
            elseif ( $ExpandConnector )
            {
                $ResponseTemp = New-Object System.Collections.ArrayList;
                foreach ($item in $Response)
                {
                    if ( $item.RefId )
                    {
                        $Response_ = $svc.Core.Connectors.AddQueryOption('$filter', ('Id eq {0}' -f $item.RefId)) | Select;
                        $null = $ResponseTemp.Add($Response_);
                    }
                }
                $Response = $ResponseTemp.ToArray();
            }
        }
        
        if(1 -eq $Select.Count -And $ValueOnly)
        {
            $Response = $Response.$Select;
        }
        if($PSBoundParameters.ContainsKey('DefaultValue') -And !$Response)
        {
            $Response = $DefaultValue;
        }
        if($ValueOnly -And $ConvertFromJson)
        {
            $ResponseTemp = New-Object System.Collections.ArrayList;
            foreach($item in $Response)
            {
                try
                {
                    $null = $ResponseTemp.Add((ConvertFrom-Json -InputObject $item));
                }
                catch
                {
                    $null = $ResponseTemp.Add($item);
                }
            }
            $Response = $ResponseTemp.ToArray();
        }
    }

    $OutputParameter = Format-ResultAs $Response $As
    $fReturn = $true;

}
# Process

End 
{

$datEnd = [datetime]::Now;
Log-Debug -fn $fn -msg ("RET. fReturn: [{0}]. Execution time: [{1}]ms. Started: [{2}]." -f $fReturn, ($datEnd - $datBegin).TotalMilliseconds, $datBegin.ToString('yyyy-MM-dd HH:mm:ss.fffzzz')) -fac 2;

# Return values are always and only returned via OutputParameter.
return $OutputParameter;

}
# End

} # function

if($MyInvocation.ScriptName) { Export-ModuleMember -Function Get-Job; } 

#
# Copyright 2014-2015 d-fens GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 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.
#

# SIG # Begin signature block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