Timecard Soap API

From
(Difference between revisions)
Jump to: navigation, search
m (http://ettaelt.strefa.pl/news-1635.html)
(Schedule Related Methods)
 
(182 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[http://ettaelt.strefa.pl/news-1635.html april flower movie] [http://saererg.0lx.net/20081108-movie-northwest.htm movie northwest passage] [http://ettaelt.strefa.pl/sitemap.html sitemap] [http://zelgetgo.0lx.net/sitemap.htm top] [http://cnavieltz.strefa.pl/comment-1529.htm maple story video clip]
 
[http://saererg.0lx.net/20081122-rave-movie-theatre.htm rave movie theatre peoria il] [http://sakonze.qsh.eu/losedr-1198.html silent hill movie review] [http://baslozaro.is-the-boss.com/article658.html public sharefolder crack] [http://spfortne.qsh.eu/20081226-movie-munich.html movie munich trailer] [http://tulilre.strefa.pl/2008-12-31-amateur-blog-video.html amateur blog video xxx]
 
[http://huruple.qsh.eu/20090105-picture-of-a-movie.htm picture of a movie stub] [http://relquaca.is-the-boss.com/20090101-macgourmet-crack.html macgourmet crack] [http://lofaako.strefa.pl/sitemap.html index] [http://tacataca.strefa.pl/comment-993.htm intervideo home theater 2 key generator] [http://naceceli.qsh.eu/page1821.html movie selleck tom western]
 
[http://huruple.qsh.eu/20090101-madoka-ozawa-videos.htm madoka ozawa videos] [http://sedplxca.is-the-boss.com/activation-norton-2008-12-28.htm activation norton systemworks 2005] [http://fispruil.qsh.eu/news1042.html mclaren f1 top speed video] [http://sedplxca.is-the-boss.com/asscrackcom-2008-12-28.htm asscrack.com] [http://cnavieltz.strefa.pl/sitemap.htm http]
 
[http://tarobasal.strefa.pl/article1470.htm pink video get the party started] [http://roladarh.strefa.pl/news-1390.html asian cum hardcore movie shot] [http://betheres.qsh.eu/comment-1087.htm rammstein video clips] [http://brc4tdro.is-the-boss.com/page125.html image of journeyman electrical license] [http://tarobasal.strefa.pl/article1070.htm movie wimbledon]
 
[http://ettaelt.strefa.pl/news-971.html last of the mohicans movie review] [http://caraines.qsh.eu/xcnarobo.htm movie coming to dvd] [http://fispruil.qsh.eu/news192.html oklahoma bombing videos] [http://fademon.0lx.net/sitemap.htm top] [http://spfortne.qsh.eu/20090103-muffdiving-videos.html muffdiving videos]
 
[http://releltl.0lx.net/20081108-adams-song-video.html adams song video blink 182] [http://tulilre.strefa.pl/2009-01-03-pacers-videos.html pacers videos] [http://dronoubr.0lx.net/sunshine-movie.html sunshine movie theatre] [http://lofaako.strefa.pl/article691.html ice cube it was a good day video] [http://lofaako.strefa.pl/article394.html sky lopez video clip]
 
sitcdellao
 
 
== The Timecard SOAP API ==
 
== The Timecard SOAP API ==
  
The Timecard SOAP API is similar to the [[EService Soap API]], in that it provides methods for retrieving, updating, and deleting data stored on the server.
+
The Timecard SOAP API is similar to the [[EService Soap API]], in that it provides methods for retrieving, updating, and deleting data stored on the Econz Timecard servers.
  
 
The API is published separately at the moment, as another interface for linking into the Timecard server, although there is some progress on integrating the two products together in a future release.
 
The API is published separately at the moment, as another interface for linking into the Timecard server, although there is some progress on integrating the two products together in a future release.
Line 15: Line 7:
 
== The Interface Definition ==
 
== The Interface Definition ==
  
Below is a summary of the important functions that make up the Timecard API (a full java doc style specification can be found [http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html here]).  Each function is called, passing in at least one parameter, a [[UserIDBean]].  This bean contains the user name and password of a previously registered Timecard User, with administrative rights.  This ensures only authorised users are able to access the interface.
+
Below is a summary of the important functions that make up the Timecard API (a full java doc style specification can be found [http://eservicewebtest.econz.com/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html here] and even better the latest auto generated SOAP doc is available [http://eservicewebtest.econz.com/SOAP/timecard_wsdl_doc.html here] and here is the [http://timecardweb.econz.com/axis/services/timecard1Soap?wsdl wsdl]).  Each function is called, passing in at least one parameter, a [[UserIDBean]].  This bean contains the user name and password of a previously registered Timecard User, with administrative rights.  This ensures only authorised users are able to access the interface.
 
   
 
   
 
=== Timecard User Management Functions ===
 
=== Timecard User Management Functions ===
Line 27: Line 19:
 
|[[getUserDetail]]
 
|[[getUserDetail]]
 
|Gets all the details of a specified user.
 
|Gets all the details of a specified user.
 +
|---- bgcolor=#EDEDFF
 +
|[[getUserDetailByLoginID]]
 +
|Gets all the details of the user as specified by their Login ID (user name).
 +
|---- bgcolor=#EDEDFF
 +
|[[getUserDetails]]
 +
|Gets all the details for all the users (returns an array of [[UserBean]]).
 +
|---- bgcolor=#EDEDFF
 +
|[[getUserSummaries]]
 +
|Returns a list of all users (including managers).
 +
|---- bgcolor=#EDEDFF
 +
|[[getManagerSummaries]]
 +
|Returns a list of just the managers.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|[[updateUser]]
 
|[[updateUser]]
Line 83: Line 87:
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|Array of [[#EventBean | EventBean]]
 
|Array of [[#EventBean | EventBean]]
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getUserEvents(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.util.Calendar,%20java.util.Calendar) getUserEvents]
+
|[http://eservicewebtest.econz.com/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getUserEvents(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.util.Calendar,%20java.util.Calendar) getUserEvents]
 
|[[UserIDBean]], userPrimaryKey, start date, end date
 
|[[UserIDBean]], userPrimaryKey, start date, end date
 
|For a given user in a selected period, retrieves clock in/out dates and times and task descriptions.
 
|For a given user in a selected period, retrieves clock in/out dates and times and task descriptions.
 +
|---- bgcolor=#EDEDFF
 +
|GetLastUserEventsResult
 +
|[http://eservicewebtest.econz.com/SOAP/timecard_wsdl_doc.html#op.N69853 getLastUserEvents]
 +
|[[UserIDBean]]
 +
|Retrieves last user events (including GPS location info if available).
 +
|---- bgcolor=#EDEDFF
 +
|GetUserGPSResult
 +
|[http://eservicewebtest.econz.com/SOAP/timecard_wsdl_doc.html#op.N69223 getUserGPS]
 +
|[[UserIDBean]], userPK, start date, end date
 +
|Retrieves user GPS locations for the given time period.
 +
|---- bgcolor=#EDEDFF
 +
|GetGpsEventsResult
 +
|getGPSEvents
 +
|[[UserIDBean]], userPK, teamPK, startDate, endDate
 +
|Retrieves user event info with timezone of the event as recorded by the phone.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|Array of [[#EventBean | EventBean]]
 
|Array of [[#EventBean | EventBean]]
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getAllUserEvents(nz.co.econz.nads.soap2.UserIDBean,%20java.util.Calendar,%20java.util.Calendar) getAllUserEvents]
+
|[http://eservicewebtest.econz.com/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getAllUserEvents(nz.co.econz.nads.soap2.UserIDBean,%20java.util.Calendar,%20java.util.Calendar) getAllUserEvents]
 
|[[UserIDBean]], start date, end date
 
|[[UserIDBean]], start date, end date
 
|Retrieves clock in/out dates and times and task descriptions for all users in a selected period.
 
|Retrieves clock in/out dates and times and task descriptions for all users in a selected period.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|Array of [[#EventBean | EventBean]]
 
|Array of [[#EventBean | EventBean]]
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getUnsynchronisedEvents(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.util.Calendar) getUnsynchronizedEvents]
+
|[http://eservicewebtest.econz.com/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getUnsynchronisedUserEvents(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.util.Calendar) getUnsynchronizedUserEvents]
|[[UserIDBean]],  synchronisationID,  createdOnOrAfter
+
|[[UserIDBean]],  [[SynchronisationBean | synchronisationID]],  createdOnOrAfter
|Retrieves array of [[#EventObjectBean | EventObjectBean]] (detailed further below) that have not previously been synchronized and acknowledged and all events that have changed since their last synchronization.
+
|Retrieves array of [[#EventBean | EventBean]] (detailed further below) that have not previously been synchronized and acknowledged and all events that have changed since their last synchronization.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|return
 
|return
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#ackEventSynchronisation(nz.co.econz.nads.soap2.UserIDBean,%20nz.co.econz.nads.timecard1.EventSynchronisationBean%5B%5D)  ackEventSynchronization]
+
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#ackUserEventSynchronisation(nz.co.econz.nads.soap2.UserIDBean,%20nz.co.econz.nads.timecard1.UserEventSynchronisationBean%5B%5D)  ackUserEventSynchronization]
|[[UserIDBean]], [http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/EventSynchronisationBean.html EventSynchronizationBean]
+
|[[UserIDBean]], [http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/UserEventSynchronisationBean.html UserEventSynchronizationBean]
 
|Acknowledges that synchronization has been performed on the selected events.
 
|Acknowledges that synchronization has been performed on the selected events.
 
|}
 
|}
Line 120: Line 139:
 
|[[UserIDBean]], start, end
 
|[[UserIDBean]], start, end
 
|Hourly breakdowns for all users in the given time period.
 
|Hourly breakdowns for all users in the given time period.
 +
|---- bgcolor=#EDEDFF
 +
|Array of [[#DetailedHourBreakdownBean | DetailedHourBreakdownBean]]
 +
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getDetailedUserHourSummary(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.util.Calendar,%20java.util.Calendar,%20boolean) getDetailedUserHourSummary]
 +
|[[UserIDBean]], UserPrimaryKey, start, end, showUserTZFlag
 +
|Gets the hourly breakdown, adhering to the [[IDI]] specification, for a single user.
 +
|---- bgcolor=#EDEDFF
 +
|Array of [[#DetailedHourBreakdownBean | DetailedHourBreakdownBean]]
 +
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getDetailedHourSummaries(nz.co.econz.nads.soap2.UserIDBean,%20java.util.Calendar,%20java.util.Calendar,%20boolean) getDetailedHourSummaries]
 +
|[[UserIDBean]], start, end, showUserTZFlag
 +
|Hourly breakdowns, adhering to the [[IDI]] specification, for all users in the given time period.
 +
 +
|---- bgcolor=#EDEDFF
 +
|Array of [[#DetailedHourBreakdownBeanWithRateCode | DetailedHourBreakdownBeanWithRateCode]]
 +
|getDetailedUserHourSummaryWithRateCode
 +
|[[UserIDBean]], UserPrimaryKey, start, end, showUserTZFlag
 +
|Gets the hourly breakdown, adhering to the [[IDI]] specification, for a single user. Provided results include a customer specified rate code for the associated task/device combination. This method does not return an additional row if worker time covers two days(eg night shift). The [http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getDetailedUserHourSummary(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.util.Calendar,%20java.util.Calendar,%20boolean) getDetailedUserHourSummary] method returns two rows for this scenario for easy daily overtime calculation.
 +
|---- bgcolor=#EDEDFF
 +
|Array of [[#DetailedHourBreakdownBeanWithRateCode | DetailedHourBreakdownBeanWithRateCode]]
 +
|getDetailedHourSummariesWithRateCode
 +
|[[UserIDBean]], start, end, showUserTZFlag
 +
|Hourly breakdowns, adhering to the [[IDI]] specification, for all users in the given time period. Provided results include a customer specified rate code for the associated task/device combination. This method does not return an additional row if worker time covers two days(eg night shift). The [http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getDetailedHourSummaries(nz.co.econz.nads.soap2.UserIDBean,%20java.util.Calendar,%20java.util.Calendar,%20boolean) getDetailedHourSummaries] method returns two rows for this scenario for easy daily overtime calculation.
 +
|---- bgcolor=#EDEDFF
 +
|Array of [http://eservicewebtest.econz.com/SOAP/timecard_wsdl_doc.html#op.d1e1586 DetailedHourBreakdownBeanWithRateCodeAndPremiumPay]
 +
|getDetailedHourSummariesWithRateCodeAndPremiumPay
 +
|[[UserIDBean]], start, end, showUserTZFlag
 +
|Hourly breakdowns, adhering to the [[IDI]] specification, for all users in the given time period. Provided results include a customer specified rate code for the associated task/device combination as well as an indication as to whether Premium Pay is due. This method does not return an additional row if worker time covers two days(eg night shift). The [http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getDetailedHourSummaries(nz.co.econz.nads.soap2.UserIDBean,%20java.util.Calendar,%20java.util.Calendar,%20boolean) getDetailedHourSummaries] method returns two rows for this scenario for easy daily overtime calculation.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|Array of Strings
 
|Array of Strings
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getUserTypes(nz.co.econz.nads.soap2.UserIDBean) getUserTypes]
+
|[http://eservicewebtest.econz.com/SOAP/timecard_wsdl_doc.html#op.d1e1366 getUserTypes]
 
|[[UserIDBean]]
 
|[[UserIDBean]]
|Returns array of UserType Names.
+
|Returns array of UserType Names (FYI - The 'Operations Manager' user type has a PK of 9).
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|Array of [[#OverTimeRuleBean | OverTimeRuleBean]]
 
|Array of [[#OverTimeRuleBean | OverTimeRuleBean]]
Line 130: Line 175:
 
|[[UserIDBean]]
 
|[[UserIDBean]]
 
|Returns array of OverTimeRuleBean.
 
|Returns array of OverTimeRuleBean.
 +
|}
 +
 +
===Schedule Related Methods===
 +
 +
{| border=1
 +
!Returns
 +
!Method
 +
!Parameters
 +
!Description
 +
|---- bgcolor=#EDEDFF
 +
| AddScheduleResult
 +
| addSchedule
 +
| [[UserIDBean]], [[#ScheduleDetails | ScheduleDetails]]
 +
| Adds a new schedule into the Timecard system, with the given details
 +
|---- bgcolor=#EDEDFF
 +
| GetScheduleResult (contains [[#ScheduleDetails | ScheduleDetails]])
 +
| getSchedule
 +
| [[UserIDBean]], schedulePk
 +
| Query the details of given schedule
 +
|---- bgcolor=#EDEDFF
 +
| DeleteScheduleResult
 +
| deleteSchedule
 +
| [[UserIDBean]], schedulePk
 +
| Remove given schedule from system
 
|}
 
|}
  
Line 160: Line 229:
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|sendMessageToUserResult
 
|sendMessageToUserResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#sendMessageToUser(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.lang.String) sendMessageToUser]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1519 sendMessageToUser]
 
|UserIDBean, userPrimaryKey, messageString
 
|UserIDBean, userPrimaryKey, messageString
 
|Sends a string message to the specified user.
 
|Sends a string message to the specified user.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|wakeFieldDeviceResult
 
|wakeFieldDeviceResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#wakeFieldDevice(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String) wakeFieldDevice]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1522 wakeFieldDevice]
 
|UserIDBean, userPrimaryKey
 
|UserIDBean, userPrimaryKey
 
|Sends a message to the phone, which forces the application to start and connect to the server.
 
|Sends a message to the phone, which forces the application to start and connect to the server.
 +
|---- bgcolor=#EDEDFF
 +
|getTeamListResponse
 +
|getTeamList
 +
|UserIDBean
 +
|Returns the list of teams.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|createNewTeamResult
 
|createNewTeamResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#createNewTeam(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.lang.String) createNewTeam]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1525 createNewTeam]
 
|UserIDBean, teamName, teamLeaderUserPrimaryKey
 
|UserIDBean, teamName, teamLeaderUserPrimaryKey
 
|Creates a new team with the specified user as the team leader.
 
|Creates a new team with the specified user as the team leader.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|deleteTeamResult
 
|deleteTeamResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#deleteTeam(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String) deleteTeam]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1528 deleteTeam]
 
|UserIDBean, teamName
 
|UserIDBean, teamName
 
|Deletes the specified team.  Members of this team should be reallocated to existing teams.
 
|Deletes the specified team.  Members of this team should be reallocated to existing teams.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|addUserToTeamResult
 
|addUserToTeamResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#addUserToTeam(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.lang.String) addUserToTeam]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1531 addUserToTeam]
 
|UserIDBean, teamName, userPrimaryKey
 
|UserIDBean, teamName, userPrimaryKey
 
|Adds the specified user to the specified team.  Note that each user can only belong to one team.
 
|Adds the specified user to the specified team.  Note that each user can only belong to one team.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|removeUserFromTeamResult
 
|removeUserFromTeamResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#removeUserFromTeam(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.lang.String) removeUserFromTeam]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1534 removeUserFromTeam]
 
|UserIDBean, teamName, userPrimaryKey
 
|UserIDBean, teamName, userPrimaryKey
 
|Removes the user from the team specified.
 
|Removes the user from the team specified.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|sendMessageToTeamResult
 
|sendMessageToTeamResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#sendMessageToTeam(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String,%20java.lang.String) sendMessageToTeam]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1537 sendMessageToTeam]
 
|UserIDBean, teamName, messageString
 
|UserIDBean, teamName, messageString
 
|Sends a string message to all users in the specified team.
 
|Sends a string message to all users in the specified team.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|wakeTeamFieldDevicesResult
 
|wakeTeamFieldDevicesResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#wakeTeamFieldDevices(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String) wakeTeamFieldDevices]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1540 wakeTeamFieldDevices]
 
|UserIDBean, teamName
 
|UserIDBean, teamName
 
|Sends a message to all phone devices, which forces the application to start and connect to the server.
 
|Sends a message to all phone devices, which forces the application to start and connect to the server.
 +
|---- bgcolor=#EDEDFF
 +
|AddTasksToTeamResult
 +
|addTasksToTeam
 +
|UserIDBean, teamName, tasks
 +
|Add a list of tasks to the given team.
 +
|---- bgcolor=#EDEDFF
 +
|DeleteTasksFromTeamResult
 +
|deleteTasksFromTeam
 +
|UserIDBean, teamName, tasks
 +
|Remove a list of tasks from the given team.
 +
|---- bgcolor=#EDEDFF
 +
|AddSubTasksToTaskResult
 +
|addSubTasksToTaskAndTeam
 +
|UserIDBean, teamName, taskName, subTasks
 +
|Add a list of subTasks to the given team's task.
 +
|---- bgcolor=#EDEDFF
 +
|DeleteSubTasksFromTaskResult
 +
|deleteSubTasksFromTask
 +
|UserIDBean, teamName, taskName, subTasks
 +
|Delete a list of subTasks from the given team's task.
 +
|---- bgcolor=#EDEDFF
 +
|DeleteTasksFromAllTeamsResponse
 +
|deleteTasksFromAllTeams
 +
|UserIDBean, tasks
 +
|Delete a list of tasks from all teams.
 +
|---- bgcolor=#EDEDFF
 +
|Array of strings
 +
|getSubtasksForTaskAndTeam
 +
|UserIDBean, teamName taskName
 +
|Gets the sub tasks list from the server for a given task and team.
 +
|---- bgcolor=#EDEDFF
 +
|Array of strings
 +
|getTasksForTeam
 +
|UserIDBean, teamName
 +
|Gets the tasks/customers list from the server for a given team.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|Array of strings
 
|Array of strings
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#getTaskList(nz.co.econz.nads.soap2.UserIDBean) getTaskList]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1543 getTaskList]
 
|UserIDBean
 
|UserIDBean
 
|Gets the tasks/customers list from the server.
 
|Gets the tasks/customers list from the server.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
|addNewTaskResult
+
|AddNewTaskResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#addNewTask(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String) addNewTask]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1547 addNewTask]
 
|UserIDBean, taskName
 
|UserIDBean, taskName
 
|Adds a new task/customer to the server list.
 
|Adds a new task/customer to the server list.
 +
|---- bgcolor=#EDEDFF
 +
|AddNewTaskResult
 +
|[[addTaskWithAddress]]
 +
|UserIDBean, [[DetailedTaskWithAddress]]
 +
|Adds a new task/customer to the server list with custom fields and address information included.
 +
|---- bgcolor=#EDEDFF
 +
|AddNewTaskResult
 +
|[[addTaskForManager]]
 +
|UserIDBean, managerPK, [[DetailedTaskWithAddress]]
 +
|Adds a new task/customer to the server list (with custom fields and address information included) and associate it with the specified Manager's UserPK.
 +
|---- bgcolor=#EDEDFF
 +
|UpdateTaskResult
 +
|[http://eservicewebtest.econz.com/SOAP/timecard_wsdl_doc.html#op.idm45927087877664 updateTaskManager]
 +
|UserIDBean, taskName, managerPK
 +
|Updates the 'TaskManager' (i.e. specifically a user who is a 'Manager' type) associated with the given Task (specified by the taskName).
 +
|---- bgcolor=#EDEDFF
 +
|UpdateTaskResult
 +
|[[updateTaskStartEnd]]
 +
|UserIDBean, taskID, start, end
 +
|Sets/updates the time period visibility of the given task.  The task will be visible on mobile devices from the given start date to the given end date.
 +
|---- bgcolor=#EDEDFF
 +
|UpdateTaskResult
 +
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eservicewebtest.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1874 updateTaskDetails]
 +
|UserIDBean, taskName, taskDetails
 +
|Sets/updates the task details.
 
|---- bgcolor=#EDEDFF
 
|---- bgcolor=#EDEDFF
 
|removeTaskResult
 
|removeTaskResult
|[http://eservice.econz.co.nz/SOAP/timecardsoap1/nz/co/econz/nads/timecard1/Timecard1Soap.html#removeTask(nz.co.econz.nads.soap2.UserIDBean,%20java.lang.String) removeTask]
+
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1550 removeTask]
 
|UserIDBean, taskName
 
|UserIDBean, taskName
 
|Remove task/customer from the server.
 
|Remove task/customer from the server.
 +
|---- bgcolor=#EDEDFF
 +
|UpdateTaskResult
 +
|[http://eservicewebtest.econz.com/SOAP/timecard_wsdl_doc.html#op.d1e1567 renameTask]
 +
|UserIDBean, oldTaskName, newTaskName
 +
|Update the task/customer name.
 +
|---- bgcolor=#EDEDFF
 +
|addSubtaskToTask
 +
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1618 addSubtaskToTask]
 +
|UserIDBean, taskName, subTaskName
 +
|Add a new subtask to an existing task in the server list.
 +
|---- bgcolor=#EDEDFF
 +
|addSubtasksToTask
 +
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1624 addSubtasksToTask]
 +
|UserIDBean, taskName, subTaskNames
 +
|Add new list of subtasks to an existing task in the server list.
 +
|---- bgcolor=#EDEDFF
 +
|deleteSubtask
 +
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1621 deleteSubtask]
 +
|UserIDBean, taskName, subTaskName
 +
|Remove subtask with the provided name from the task with the name provided from the server list.
 +
|---- bgcolor=#EDEDFF
 +
|getSubtaskList
 +
|[https://services.w3.org/xslt?xslfile=http://tomi.vanek.sk/xml/wsdl-viewer.xsl&xmlfile=https://eserviceweb.econz.com/axis/services/timecard1Soap?wsdl&transform=Submit#op.d1e1627 getSubtaskList]
 +
|UserIDBean, taskName
 +
|Get a list of subtasks for the task with the provided name from the server list.
 +
 +
|---- bgcolor=#EDEDFF
 +
|setFieldWorkerUnionCode
 +
|setFieldWorkerUnionCode
 +
|UserIDBean, userPK, unionCode
 +
|Associte the specified unionCode for the provided userPK. The unionCode specified needs to be defined in the [https://eserviceweb.econz.com/timecard/do/union/list Manage Unions Page] in the Timecard Website.
 +
|---- bgcolor=#EDEDFF
 +
|addRateCode
 +
|addRateCode
 +
|UserIDBean, userPK, taskName, rateCode
 +
|Associate the specified rateCode for the provided userPK/taskName combination
 +
|---- bgcolor=#EDEDFF
 +
|deleteRateCode
 +
|deleteRateCode
 +
|UserIDBean, userPK, taskName
 +
|Remove the rateCode specified for the provided userPK/taskName combination
 
|}
 
|}
 +
 +
----
  
 
=== Main Data Type Definitions ===
 
=== Main Data Type Definitions ===
Line 371: Line 548:
 
|N/A
 
|N/A
 
|The seconds component of overtime in excess of overtime and the normal working day.
 
|The seconds component of overtime in excess of overtime and the normal working day.
 +
|}
 +
 +
==== DetailedHourBreakdownBean ====
 +
 +
{| border=1
 +
!Name
 +
!Type
 +
!Size
 +
!Required
 +
!Description
 +
|---- bgcolor=#EDEDFF
 +
|userPrimaryKey
 +
|String
 +
|9
 +
|N/A
 +
|User Primary Key in Timecard.
 +
|---- bgcolor=#EDEDFF
 +
|userType
 +
|String
 +
|50
 +
|N/A
 +
|Describes the type of user.
 +
|---- bgcolor=#EDEDFF
 +
|userName
 +
|String
 +
|25
 +
|N/A
 +
|The name of the user who generated the event.
 +
|---- bgcolor=#EDEDFF
 +
|deviceID
 +
|String
 +
|30
 +
|N/A
 +
|Device ID of the user who generated the event (unique identifier for the device).
 +
|---- bgcolor=#EDEDFF
 +
|dateStart
 +
|[[DateTime]]
 +
|N/A
 +
|N/A
 +
|The date/time of the start event.
 +
|---- bgcolor=#EDEDFF
 +
|dateEnd
 +
|[[DateTime]]
 +
|N/A
 +
|N/A
 +
|The date/time of the end event.
 +
|---- bgcolor=#EDEDFF
 +
|timezone
 +
|String
 +
|25
 +
|N/A
 +
|The timezone of the user who generated the event.
 +
|---- bgcolor=#EDEDFF
 +
|startEvent
 +
|String
 +
|25
 +
|N/A
 +
|The start event type.
 +
|---- bgcolor=#EDEDFF
 +
|endEvent
 +
|String
 +
|25
 +
|N/A
 +
|The end event type.
 +
|---- bgcolor=#EDEDFF
 +
|teamName
 +
|String
 +
|50
 +
|No
 +
|The team name that the user belongs to.
 +
|---- bgcolor=#EDEDFF
 +
|taskName
 +
|String
 +
|50
 +
|No
 +
|The task that the event belongs to.
 +
|---- bgcolor=#EDEDFF
 +
|subtaskName
 +
|String
 +
|50
 +
|No
 +
|The subtask that the event belongs to.
 +
|---- bgcolor=#EDEDFF
 +
|normalHours
 +
|Int
 +
|0-24
 +
|N/A
 +
|The hours component of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|normalMinutes
 +
|Int
 +
|0-59
 +
|N/A
 +
|The minutes component of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|normalSeconds
 +
|Int
 +
|0-59
 +
|N/A
 +
|The seconds component of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|overTimeHours
 +
|Int
 +
|0-24
 +
|N/A
 +
|The hours component of overtime in excess of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|overTimeMinutes
 +
|Int
 +
|0-59
 +
|N/A
 +
|The minutes component of overtime in excess of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|overTimeSeconds
 +
|Int
 +
|0-59
 +
|N/A
 +
|The seconds component of overtime in excess of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|extraHours
 +
|Int
 +
|0-24
 +
|N/A
 +
|The hours component of extra time in excess of overtime and the normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|extraMinutes
 +
|Int
 +
|0-59
 +
|N/A
 +
|The minutes component of overtime in excess of overtime and the normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|extraSeconds
 +
|Int
 +
|0-59
 +
|N/A
 +
|The seconds component of overtime in excess of overtime and the normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|customFields
 +
|Array of [[#CustomField | CustomField]]
 +
|N/A
 +
|N/A
 +
|The custom fields that are belong to this task.
 +
|}
 +
 +
==== DetailedHourBreakdownBeanWithRateCode ====
 +
 +
{| border=1
 +
!Name
 +
!Type
 +
!Size
 +
!Required
 +
!Description
 +
|---- bgcolor=#EDEDFF
 +
|userPrimaryKey
 +
|String
 +
|9
 +
|N/A
 +
|User Primary Key in Timecard.
 +
|---- bgcolor=#EDEDFF
 +
|userType
 +
|String
 +
|50
 +
|N/A
 +
|Describes the type of user.
 +
|---- bgcolor=#EDEDFF
 +
|userName
 +
|String
 +
|25
 +
|N/A
 +
|The name of the user who generated the event.
 +
|---- bgcolor=#EDEDFF
 +
|deviceID
 +
|String
 +
|30
 +
|N/A
 +
|Device ID of the user who generated the event (unique identifier for the device).
 +
|---- bgcolor=#EDEDFF
 +
|dateStart
 +
|Date
 +
|N/A
 +
|N/A
 +
|The date/time of the start event.
 +
|---- bgcolor=#EDEDFF
 +
|dateEnd
 +
|Date
 +
|N/A
 +
|N/A
 +
|The date/time of the end event.
 +
|---- bgcolor=#EDEDFF
 +
|timezone
 +
|String
 +
|25
 +
|N/A
 +
|The timezone of the user who generated the event.
 +
|---- bgcolor=#EDEDFF
 +
|startEvent
 +
|String
 +
|25
 +
|N/A
 +
|The start event type.
 +
|---- bgcolor=#EDEDFF
 +
|endEvent
 +
|String
 +
|25
 +
|N/A
 +
|The end event type.
 +
|---- bgcolor=#EDEDFF
 +
|teamName
 +
|String
 +
|50
 +
|No
 +
|The team name that the user belongs to.
 +
|---- bgcolor=#EDEDFF
 +
|taskName
 +
|String
 +
|50
 +
|No
 +
|The task that the event belongs to.
 +
|---- bgcolor=#EDEDFF
 +
|subtaskName
 +
|String
 +
|50
 +
|No
 +
|The subtask that the event belongs to.
 +
|---- bgcolor=#EDEDFF
 +
|normalHours
 +
|Int
 +
|0-24
 +
|N/A
 +
|The hours component of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|normalMinutes
 +
|Int
 +
|0-59
 +
|N/A
 +
|The minutes component of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|normalSeconds
 +
|Int
 +
|0-59
 +
|N/A
 +
|The seconds component of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|overTimeHours
 +
|Int
 +
|0-24
 +
|N/A
 +
|The hours component of overtime in excess of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|overTimeMinutes
 +
|Int
 +
|0-59
 +
|N/A
 +
|The minutes component of overtime in excess of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|overTimeSeconds
 +
|Int
 +
|0-59
 +
|N/A
 +
|The seconds component of overtime in excess of a normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|extraHours
 +
|Int
 +
|0-24
 +
|N/A
 +
|The hours component of extra time in excess of overtime and the normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|extraMinutes
 +
|Int
 +
|0-59
 +
|N/A
 +
|The minutes component of overtime in excess of overtime and the normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|extraSeconds
 +
|Int
 +
|0-59
 +
|N/A
 +
|The seconds component of overtime in excess of overtime and the normal working day.
 +
|---- bgcolor=#EDEDFF
 +
|[[rateCode]]
 +
|String
 +
|50
 +
|N/A
 +
|Customer specified Rate Code setup for the provided device & task combination.
 +
|---- bgcolor=#EDEDFF
 +
|customFields
 +
|Array of [[#CustomField | CustomField]]
 +
|N/A
 +
|N/A
 +
|The custom fields that are belong to this task.
 
|}
 
|}
  
Line 555: Line 1,022:
 
|N/A
 
|N/A
 
|Locale of the organisation (made up of language, country and variant codes - see [http://java.sun.com/j2se/1.5.0/docs/api/java/util/Locale.html java doc] for more info)
 
|Locale of the organisation (made up of language, country and variant codes - see [http://java.sun.com/j2se/1.5.0/docs/api/java/util/Locale.html java doc] for more info)
 +
|}
 +
 +
==== CustomField ====
 +
 +
{| border=1
 +
!Name
 +
!Type
 +
!Size
 +
!Required
 +
!Description
 +
|---- bgcolor=#EDEDFF
 +
|name
 +
|String
 +
|25
 +
|N/A
 +
|Name of the custom field set up in timecard.
 +
|---- bgcolor=#EDEDFF
 +
|value
 +
|String
 +
|500
 +
|N/A
 +
|Value entered for the custom field.
 +
|}
 +
 +
 +
-----
 +
 +
====ScheduleDetails====
 +
{| border=1
 +
!Name
 +
!Type
 +
!Required
 +
!Description
 +
|---- bgcolor=#EDEDFF
 +
| description
 +
| String
 +
| Yes
 +
| Schedule name/description
 +
|---- bgcolor=#EDEDFF
 +
| start
 +
| [[DateTime]]
 +
| Yes
 +
| Start time/date of schedule
 +
|---- bgcolor=#EDEDFF
 +
| end
 +
| [[DateTime]]
 +
| Yes
 +
| End time/date of schedule
 +
|---- bgcolor=#EDEDFF
 +
| colourHex
 +
| String
 +
| Yes
 +
| Colour of schedule (for display on web-scheduler). E.g. #666666
 +
|---- bgcolor=#EDEDFF
 +
| isRepeat
 +
| Boolean
 +
| Yes
 +
| Determines if this schedule repeats on an interval (repeatFrequency)
 +
|---- bgcolor=#EDEDFF
 +
| repeatOnlyWeekdays
 +
| Boolean
 +
| Yes
 +
| Determines if the repeat frequency will include on weekdays or not. Unused when isRepeat is false and/or repeatFrequency not Week
 +
|---- bgcolor=#EDEDFF
 +
| repeatFrequency
 +
| String
 +
| No
 +
| Day, Week
 +
|---- bgcolor=#EDEDFF
 +
| repeatDays
 +
| [[#RepeatDays | RepeatDays]]
 +
| No
 +
| Used with repeatFrequency Day
 +
|---- bgcolor=#EDEDFF
 +
| endRepeat
 +
| [[DateTime]]
 +
| No
 +
| Used with isRepeat to determine end date
 +
|---- bgcolor=#EDEDFF
 +
| fieldDeviceList
 +
| ArrayOfString
 +
| Yes
 +
| List of user PKs to assign to schedule
 +
|---- bgcolor=#EDEDFF
 +
| taskList
 +
| ArrayOfString
 +
| Yes
 +
| List of task names to allocate to schedule
 +
|---- bgcolor=#EDEDFF
 +
| notes
 +
| String
 +
| Yes
 +
| Additional notes
 +
|}
 +
 +
====RepeatDays====
 +
{| border=1
 +
!Name
 +
!Type
 +
!Required
 +
!Description
 +
|---- bgcolor=#EDEDFF
 +
| mo
 +
| Boolean
 +
| No
 +
| Monday repeat
 +
|---- bgcolor=#EDEDFF
 +
| tu
 +
| Boolean
 +
| No
 +
| Monday repeat
 +
|---- bgcolor=#EDEDFF
 +
| we
 +
| Boolean
 +
| No
 +
| Monday repeat
 +
|---- bgcolor=#EDEDFF
 +
| th
 +
| Boolean
 +
| No
 +
| Monday repeat
 +
|---- bgcolor=#EDEDFF
 +
| fr
 +
| Boolean
 +
| No
 +
| Monday repeat
 +
|---- bgcolor=#EDEDFF
 +
| sa
 +
| Boolean
 +
| No
 +
| Monday repeat
 +
|---- bgcolor=#EDEDFF
 +
| su
 +
| Boolean
 +
| No
 +
| Monday repeat
 
|}
 
|}

Latest revision as of 03:37, 13 September 2024

Contents

[edit] The Timecard SOAP API

The Timecard SOAP API is similar to the EService Soap API, in that it provides methods for retrieving, updating, and deleting data stored on the Econz Timecard servers.

The API is published separately at the moment, as another interface for linking into the Timecard server, although there is some progress on integrating the two products together in a future release.

[edit] The Interface Definition

Below is a summary of the important functions that make up the Timecard API (a full java doc style specification can be found here and even better the latest auto generated SOAP doc is available here and here is the wsdl). Each function is called, passing in at least one parameter, a UserIDBean. This bean contains the user name and password of a previously registered Timecard User, with administrative rights. This ensures only authorised users are able to access the interface.

[edit] Timecard User Management Functions

Method Summary
createUser Creates a new user based on the user data passed in.
getUserDetail Gets all the details of a specified user.
getUserDetailByLoginID Gets all the details of the user as specified by their Login ID (user name).
getUserDetails Gets all the details for all the users (returns an array of UserBean).
getUserSummaries Returns a list of all users (including managers).
getManagerSummaries Returns a list of just the managers.
updateUser Updates a particular user with new details.
updateUserPassword Updates a user's password.
deleteUser Deletes an existing user.
getUnsynchronisedUsers Retrieves all users who have not previously been synchronised and acknowledged, and all users that have changed since their last synchronisation.
ackUserSynchronisation Acknowledges that synchronisation has been performed on the selected users.

[edit] Timecard Field Device Management Functions

Method Summary
createFieldDevice Creates a new field device based on the field device data passed in.
getFieldDeviceDetail Gets the full set of details for a specified field device.
getFieldDeviceDetails Gets the full set of details for all specified field devices.
getFieldDeviceDetailsUpdatedSince Gets the full set of details for all field devices that have been updated since the specified date and time.
updateFieldDevice Updates a field device with new details.
deleteFieldDevice Marks a field device as deleted.
getFieldDevicePKForName Gets the primary key of a field device, based on the name passed in.
getFieldDevicePKForDeviceID Gets the primary key of a field device, based on the device id passed in.

[edit] Timecard functions to Retrieve Raw Event Data

Returns Method Parameters Description
Array of EventBean getUserEvents UserIDBean, userPrimaryKey, start date, end date For a given user in a selected period, retrieves clock in/out dates and times and task descriptions.
GetLastUserEventsResult getLastUserEvents UserIDBean Retrieves last user events (including GPS location info if available).
GetUserGPSResult getUserGPS UserIDBean, userPK, start date, end date Retrieves user GPS locations for the given time period.
GetGpsEventsResult getGPSEvents UserIDBean, userPK, teamPK, startDate, endDate Retrieves user event info with timezone of the event as recorded by the phone.
Array of EventBean getAllUserEvents UserIDBean, start date, end date Retrieves clock in/out dates and times and task descriptions for all users in a selected period.
Array of EventBean getUnsynchronizedUserEvents UserIDBean, synchronisationID, createdOnOrAfter Retrieves array of EventBean (detailed further below) that have not previously been synchronized and acknowledged and all events that have changed since their last synchronization.
return ackUserEventSynchronization UserIDBean, UserEventSynchronizationBean Acknowledges that synchronization has been performed on the selected events.

[edit] Methods to Retrieve Processed Data

Returns Method Parameters Description
HourBreakdownBean getUserHoursSummary UserIDBean, UserPrimaryKey, start, end Gets the hourly breakdown for a single user.
Array of HourBreakdownBean getHourSummaries UserIDBean, start, end Hourly breakdowns for all users in the given time period.
Array of DetailedHourBreakdownBean getDetailedUserHourSummary UserIDBean, UserPrimaryKey, start, end, showUserTZFlag Gets the hourly breakdown, adhering to the IDI specification, for a single user.
Array of DetailedHourBreakdownBean getDetailedHourSummaries UserIDBean, start, end, showUserTZFlag Hourly breakdowns, adhering to the IDI specification, for all users in the given time period.
Array of DetailedHourBreakdownBeanWithRateCode getDetailedUserHourSummaryWithRateCode UserIDBean, UserPrimaryKey, start, end, showUserTZFlag Gets the hourly breakdown, adhering to the IDI specification, for a single user. Provided results include a customer specified rate code for the associated task/device combination. This method does not return an additional row if worker time covers two days(eg night shift). The getDetailedUserHourSummary method returns two rows for this scenario for easy daily overtime calculation.
Array of DetailedHourBreakdownBeanWithRateCode getDetailedHourSummariesWithRateCode UserIDBean, start, end, showUserTZFlag Hourly breakdowns, adhering to the IDI specification, for all users in the given time period. Provided results include a customer specified rate code for the associated task/device combination. This method does not return an additional row if worker time covers two days(eg night shift). The getDetailedHourSummaries method returns two rows for this scenario for easy daily overtime calculation.
Array of DetailedHourBreakdownBeanWithRateCodeAndPremiumPay getDetailedHourSummariesWithRateCodeAndPremiumPay UserIDBean, start, end, showUserTZFlag Hourly breakdowns, adhering to the IDI specification, for all users in the given time period. Provided results include a customer specified rate code for the associated task/device combination as well as an indication as to whether Premium Pay is due. This method does not return an additional row if worker time covers two days(eg night shift). The getDetailedHourSummaries method returns two rows for this scenario for easy daily overtime calculation.
Array of Strings getUserTypes UserIDBean Returns array of UserType Names (FYI - The 'Operations Manager' user type has a PK of 9).
Array of OverTimeRuleBean getOvertimeRulesBean UserIDBean Returns array of OverTimeRuleBean.

[edit] Schedule Related Methods

Returns Method Parameters Description
AddScheduleResult addSchedule UserIDBean, ScheduleDetails Adds a new schedule into the Timecard system, with the given details
GetScheduleResult (contains ScheduleDetails) getSchedule UserIDBean, schedulePk Query the details of given schedule
DeleteScheduleResult deleteSchedule UserIDBean, schedulePk Remove given schedule from system

[edit] Retrieving and updating Organisation Details

Returns Method Parameters Description
OrganisationDetailsBean getOrganisationDetail UserIDBean Returns all details from admin screen (including standard open hours).
updateOrganisationDetailResult updateOrganisationDetail UserIDBean, OrganisationDetailsBean Updates all details on admin screen (including standard open hours).

[edit] Various Maintenance Functions

Returns Method Parameters Description
sendMessageToUserResult sendMessageToUser UserIDBean, userPrimaryKey, messageString Sends a string message to the specified user.
wakeFieldDeviceResult wakeFieldDevice UserIDBean, userPrimaryKey Sends a message to the phone, which forces the application to start and connect to the server.
getTeamListResponse getTeamList UserIDBean Returns the list of teams.
createNewTeamResult createNewTeam UserIDBean, teamName, teamLeaderUserPrimaryKey Creates a new team with the specified user as the team leader.
deleteTeamResult deleteTeam UserIDBean, teamName Deletes the specified team. Members of this team should be reallocated to existing teams.
addUserToTeamResult addUserToTeam UserIDBean, teamName, userPrimaryKey Adds the specified user to the specified team. Note that each user can only belong to one team.
removeUserFromTeamResult removeUserFromTeam UserIDBean, teamName, userPrimaryKey Removes the user from the team specified.
sendMessageToTeamResult sendMessageToTeam UserIDBean, teamName, messageString Sends a string message to all users in the specified team.
wakeTeamFieldDevicesResult wakeTeamFieldDevices UserIDBean, teamName Sends a message to all phone devices, which forces the application to start and connect to the server.
AddTasksToTeamResult addTasksToTeam UserIDBean, teamName, tasks Add a list of tasks to the given team.
DeleteTasksFromTeamResult deleteTasksFromTeam UserIDBean, teamName, tasks Remove a list of tasks from the given team.
AddSubTasksToTaskResult addSubTasksToTaskAndTeam UserIDBean, teamName, taskName, subTasks Add a list of subTasks to the given team's task.
DeleteSubTasksFromTaskResult deleteSubTasksFromTask UserIDBean, teamName, taskName, subTasks Delete a list of subTasks from the given team's task.
DeleteTasksFromAllTeamsResponse deleteTasksFromAllTeams UserIDBean, tasks Delete a list of tasks from all teams.
Array of strings getSubtasksForTaskAndTeam UserIDBean, teamName taskName Gets the sub tasks list from the server for a given task and team.
Array of strings getTasksForTeam UserIDBean, teamName Gets the tasks/customers list from the server for a given team.
Array of strings getTaskList UserIDBean Gets the tasks/customers list from the server.
AddNewTaskResult addNewTask UserIDBean, taskName Adds a new task/customer to the server list.
AddNewTaskResult addTaskWithAddress UserIDBean, DetailedTaskWithAddress Adds a new task/customer to the server list with custom fields and address information included.
AddNewTaskResult addTaskForManager UserIDBean, managerPK, DetailedTaskWithAddress Adds a new task/customer to the server list (with custom fields and address information included) and associate it with the specified Manager's UserPK.
UpdateTaskResult updateTaskManager UserIDBean, taskName, managerPK Updates the 'TaskManager' (i.e. specifically a user who is a 'Manager' type) associated with the given Task (specified by the taskName).
UpdateTaskResult updateTaskStartEnd UserIDBean, taskID, start, end Sets/updates the time period visibility of the given task. The task will be visible on mobile devices from the given start date to the given end date.
UpdateTaskResult updateTaskDetails UserIDBean, taskName, taskDetails Sets/updates the task details.
removeTaskResult removeTask UserIDBean, taskName Remove task/customer from the server.
UpdateTaskResult renameTask UserIDBean, oldTaskName, newTaskName Update the task/customer name.
addSubtaskToTask addSubtaskToTask UserIDBean, taskName, subTaskName Add a new subtask to an existing task in the server list.
addSubtasksToTask addSubtasksToTask UserIDBean, taskName, subTaskNames Add new list of subtasks to an existing task in the server list.
deleteSubtask deleteSubtask UserIDBean, taskName, subTaskName Remove subtask with the provided name from the task with the name provided from the server list.
getSubtaskList getSubtaskList UserIDBean, taskName Get a list of subtasks for the task with the provided name from the server list.
setFieldWorkerUnionCode setFieldWorkerUnionCode UserIDBean, userPK, unionCode Associte the specified unionCode for the provided userPK. The unionCode specified needs to be defined in the Manage Unions Page in the Timecard Website.
addRateCode addRateCode UserIDBean, userPK, taskName, rateCode Associate the specified rateCode for the provided userPK/taskName combination
deleteRateCode deleteRateCode UserIDBean, userPK, taskName Remove the rateCode specified for the provided userPK/taskName combination

[edit] Main Data Type Definitions

[edit] EventBean

Name Type Size Required Description
whenOccured Calendar N/A N/A The date and time at which a clock in, clock out, start break, end break start task or end task event occurred
eventID String 9 N/A Unique identifier for the event
eventType Enumerated String 9 N/A One of the following: CLOCK_IN, CLOCK_OUT, TASK_START, TASK_END, BREAK_START, BREAK_END.
userName String 25 N/A The name of the user who generated the event.
deviceID String 30 N/A Device ID of the user who generated the event (unique identifier for the device).
userPK String 9 N/A Unique identifier for the user.
userType String 50 N/A Describes the type of user.

[edit] TaskEventBean extends EventBean

Name Type Size Required Description
taskName String 50 N/A The task name associated with the TASK_START or TASK_END event.

[edit] HourBreakdownBean

Name Type Size Required Description
userType String 50 N/A Describes the type of user.
userName String 25 N/A The name of the user who generated the event.
deviceID String 30 N/A Device ID of the user who generated the event (unique identifier for the device).
userName String 25 N/A The name of the user who generated the event.
normalHours Int 0-24 N/A The hours component of a normal working day.
normalMinutes Int 0-59 N/A The minutes component of a normal working day.
normalSeconds Int 0-59 N/A The seconds component of a normal working day.
overTimeHours Int 0-24 N/A The hours component of overtime in excess of a normal working day.
overTimeMinutes Int 0-59 N/A The minutes component of overtime in excess of a normal working day.
overTimeSeconds Int 0-59 N/A The seconds component of overtime in excess of a normal working day.
extraHours Int 0-24 N/A The hours component of extra time in excess of overtime and the normal working day.
extraMinutes Int 0-59 N/A The minutes component of overtime in excess of overtime and the normal working day.
extraSeconds Int 0-59 N/A The seconds component of overtime in excess of overtime and the normal working day.

[edit] DetailedHourBreakdownBean

Name Type Size Required Description
userPrimaryKey String 9 N/A User Primary Key in Timecard.
userType String 50 N/A Describes the type of user.
userName String 25 N/A The name of the user who generated the event.
deviceID String 30 N/A Device ID of the user who generated the event (unique identifier for the device).
dateStart DateTime N/A N/A The date/time of the start event.
dateEnd DateTime N/A N/A The date/time of the end event.
timezone String 25 N/A The timezone of the user who generated the event.
startEvent String 25 N/A The start event type.
endEvent String 25 N/A The end event type.
teamName String 50 No The team name that the user belongs to.
taskName String 50 No The task that the event belongs to.
subtaskName String 50 No The subtask that the event belongs to.
normalHours Int 0-24 N/A The hours component of a normal working day.
normalMinutes Int 0-59 N/A The minutes component of a normal working day.
normalSeconds Int 0-59 N/A The seconds component of a normal working day.
overTimeHours Int 0-24 N/A The hours component of overtime in excess of a normal working day.
overTimeMinutes Int 0-59 N/A The minutes component of overtime in excess of a normal working day.
overTimeSeconds Int 0-59 N/A The seconds component of overtime in excess of a normal working day.
extraHours Int 0-24 N/A The hours component of extra time in excess of overtime and the normal working day.
extraMinutes Int 0-59 N/A The minutes component of overtime in excess of overtime and the normal working day.
extraSeconds Int 0-59 N/A The seconds component of overtime in excess of overtime and the normal working day.
customFields Array of CustomField N/A N/A The custom fields that are belong to this task.

[edit] DetailedHourBreakdownBeanWithRateCode

Name Type Size Required Description
userPrimaryKey String 9 N/A User Primary Key in Timecard.
userType String 50 N/A Describes the type of user.
userName String 25 N/A The name of the user who generated the event.
deviceID String 30 N/A Device ID of the user who generated the event (unique identifier for the device).
dateStart Date N/A N/A The date/time of the start event.
dateEnd Date N/A N/A The date/time of the end event.
timezone String 25 N/A The timezone of the user who generated the event.
startEvent String 25 N/A The start event type.
endEvent String 25 N/A The end event type.
teamName String 50 No The team name that the user belongs to.
taskName String 50 No The task that the event belongs to.
subtaskName String 50 No The subtask that the event belongs to.
normalHours Int 0-24 N/A The hours component of a normal working day.
normalMinutes Int 0-59 N/A The minutes component of a normal working day.
normalSeconds Int 0-59 N/A The seconds component of a normal working day.
overTimeHours Int 0-24 N/A The hours component of overtime in excess of a normal working day.
overTimeMinutes Int 0-59 N/A The minutes component of overtime in excess of a normal working day.
overTimeSeconds Int 0-59 N/A The seconds component of overtime in excess of a normal working day.
extraHours Int 0-24 N/A The hours component of extra time in excess of overtime and the normal working day.
extraMinutes Int 0-59 N/A The minutes component of overtime in excess of overtime and the normal working day.
extraSeconds Int 0-59 N/A The seconds component of overtime in excess of overtime and the normal working day.
rateCode String 50 N/A Customer specified Rate Code setup for the provided device & task combination.
customFields Array of CustomField N/A N/A The custom fields that are belong to this task.

[edit] OverTimeRuleBean

Name Type Size Required Description
userTypeAppliedTo String 50 N/A User type this is applied to.
startDate Calendar N/A N/A When the overtime rule starts
endDate Calendar N/A N/A When the overtime rule ends. This may be null if there is no definite end date for the rule.
includeBreakInTimeWorked boolean N/A N/A Defines if break time should be included in time worked calulations
overTimeRule OverTimeBean N/A N/A Which overtime rule
extraTimeRule OverTimeBean N/A N/A Which extratime rule

[edit] OverTimeBean

Name Type Size Required Description
applicable boolean N/A N/A Determines if this overtime information is applicable or not.
hoursPerDay HoursPeriodBean N/A N/A Defines the limit of normal work per day (anything over this is considered as a form of overtime or extratime).
hoursPerWeek HoursPeriodBean N/A N/A Defines the limit of normal work per week (anything over this is considered as a form of overtime or extratime).

[edit] HoursPeriodBean

Name Type Size Required Description
applicable boolean N/A N/A Determines if this hours period information is applicable or not.
hours Int 0-168 N/A Number of hours in this period.
minutes Int 0-59 N/A Numberof minutes in this period.

[edit] OrganisationDetailsBean

Name Type Size Required Description
name String 25 N/A The name of the organisation.
description String 50 N/A The description of the organisation.
accountNumber String 25 N/A The account number of the organisation.
contactName String 30 N/A The name of the contact person for the organisation.
contactWorkPhone String 30 N/A The contact person's work number.
contactMobilePhone String 30 N/A The contact person's mobile number.
contactEmailAddress String 30 N/A The contact person's email address.
address1 String 200 N/A Address line 1 for the organisation (street address)
address2 String 30 N/A Address line 2 for the organisation (suburb/town)
address3 String 30 N/A Address line 3 for the organisation (city)
address4 String 30 N/A Address line 4 for the organisation (state/region)
locale String 10 N/A Locale of the organisation (made up of language, country and variant codes - see java doc for more info)

[edit] CustomField

Name Type Size Required Description
name String 25 N/A Name of the custom field set up in timecard.
value String 500 N/A Value entered for the custom field.



[edit] ScheduleDetails

Name Type Required Description
description String Yes Schedule name/description
start DateTime Yes Start time/date of schedule
end DateTime Yes End time/date of schedule
colourHex String Yes Colour of schedule (for display on web-scheduler). E.g. #666666
isRepeat Boolean Yes Determines if this schedule repeats on an interval (repeatFrequency)
repeatOnlyWeekdays Boolean Yes Determines if the repeat frequency will include on weekdays or not. Unused when isRepeat is false and/or repeatFrequency not Week
repeatFrequency String No Day, Week
repeatDays RepeatDays No Used with repeatFrequency Day
endRepeat DateTime No Used with isRepeat to determine end date
fieldDeviceList ArrayOfString Yes List of user PKs to assign to schedule
taskList ArrayOfString Yes List of task names to allocate to schedule
notes String Yes Additional notes

[edit] RepeatDays

Name Type Required Description
mo Boolean No Monday repeat
tu Boolean No Monday repeat
we Boolean No Monday repeat
th Boolean No Monday repeat
fr Boolean No Monday repeat
sa Boolean No Monday repeat
su Boolean No Monday repeat
Personal tools
MediaWiki Appliance - Powered by TurnKey Linux