Class: ApplicationProfiles

ApplicationProfiles


new ApplicationProfiles()

Container object used as the parameter for the HumanResources method hiringProcess. Container class (behaves like a List).

The parameter in the company.humanResources.hiringProcess function. Before looping through the objects of ApplicationProfile you probably want to use one of the sortBy* and/or subList method in this class. After sorting you could use lowest/highest attribute to access an element.
Source:
ApplicationProfiles.js

Members


lowest :ApplicationProfile

Holds the lowest value element in the list if priorly sorted. Read-Only.
Type:
Source:
ApplicationProfiles.js

highest :ApplicationProfile

Holds the highest value element in the list if priorly sorted. Read-Only.
Type:
Source:
ApplicationProfiles.js

Methods


iterator()

Java-like iterator to loop over all ApplicationProfiles within this call.
Source:
ApplicationProfiles.js
Returns:
An iterator to loop
Type
Iterator

each(forEachElement)

JavaScript-like callback to loop over all ApplicationProfiles within this call.
Parameters:
Name Type Description
forEachElement function Will be called for each available ApplicationProfile. Needs to have one parameter.
Source:
ApplicationProfiles.js

get(index)

Returns a ApplicationProfile object at the index
Parameters:
Name Type Description
index Number index number to get
Source:
ApplicationProfiles.js
Returns:
the element at the position index
Type
ApplicationProfile

subList(jobPosition)

Returns a new ApplicationProfiles object containing only elements which's job position matches the parameter
Parameters:
Name Type Description
jobPosition String filter used to create the new list
Source:
ApplicationProfiles.js
Returns:
returns a new object of the same class
Type
ApplicationProfiles

sortByQualification()

Sorts the list by qualification with ascending order and retuns the the ApplicationProfiles object itself
Source:
ApplicationProfiles.js
Returns:
returns self
Type
ApplicationProfiles

sortBySalary()

Sorts the list by desired salary with ascending order and retuns the ApplicationProfiles object itself
Source:
ApplicationProfiles.js
Returns:
returns self
Type
ApplicationProfiles

size()

Returns the list size
Source:
ApplicationProfiles.js
Returns:
the list size
Type
Number