Source for file Work.php

Documentation is available at Work.php

  1. <?php
  2. /**
  3. * Work is a set of Steps that are associated with one or more roles.
  4. *
  5. * <p>
  6. * OSID Version: 2.0
  7. * </p>
  8. *
  9. * <p>
  10. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  11. * O.K.I&#46; OSID Definition License}.
  12. * </p>
  13. *
  14. * @package org.osid.workflow
  15. */
  16. class Work
  17. {
  18. /**
  19. * Update the DisplayName of this Work.
  20. *
  21. * @param string $displayName
  22. *
  23. * @throws object WorkflowException An exception with one of the
  24. * following messages defined in
  25. * org.osid.workflow.WorkflowException may be thrown: {@link }
  26. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  27. * OPERATION_FAILED}, {@link }
  28. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  29. * PERMISSION_DENIED}, {@link }
  30. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  31. * CONFIGURATION_ERROR}, {@link }
  32. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  33. * UNIMPLEMENTED}, {@link }
  34. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  35. * NULL_ARGUMENT}
  36. *
  37. * @access public
  38. */
  39. function updateDisplayName ( $displayName ) {
  40. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  41. }
  42.  
  43. /**
  44. * Get the description of this Work.
  45. *
  46. * @param string $description
  47. *
  48. * @throws object WorkflowException An exception with one of the
  49. * following messages defined in
  50. * org.osid.workflow.WorkflowException may be thrown: {@link }
  51. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  52. * OPERATION_FAILED}, {@link }
  53. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  54. * PERMISSION_DENIED}, {@link }
  55. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  56. * CONFIGURATION_ERROR}, {@link }
  57. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  58. * UNIMPLEMENTED}, {@link }
  59. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  60. * NULL_ARGUMENT}
  61. *
  62. * @access public
  63. */
  64. function updateDescription ( $description ) {
  65. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  66. }
  67.  
  68. /**
  69. * Get the unique Id for this Work. The unique Id is set when the Work is
  70. * created by a Process.
  71. *
  72. * @return object Id
  73. *
  74. * @throws object WorkflowException An exception with one of the
  75. * following messages defined in
  76. * org.osid.workflow.WorkflowException may be thrown: {@link }
  77. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  78. * OPERATION_FAILED}, {@link }
  79. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  80. * PERMISSION_DENIED}, {@link }
  81. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  82. * CONFIGURATION_ERROR}, {@link }
  83. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  84. * UNIMPLEMENTED}
  85. *
  86. * @access public
  87. */
  88. function getId () {
  89. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  90. }
  91.  
  92. /**
  93. * Get the DisplayName of this Work.
  94. *
  95. * @return string
  96. *
  97. * @throws object WorkflowException An exception with one of the
  98. * following messages defined in
  99. * org.osid.workflow.WorkflowException may be thrown: {@link }
  100. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  101. * OPERATION_FAILED}, {@link }
  102. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  103. * PERMISSION_DENIED}, {@link }
  104. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  105. * CONFIGURATION_ERROR}, {@link }
  106. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  107. * UNIMPLEMENTED}
  108. *
  109. * @access public
  110. */
  111. function getDisplayName () {
  112. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  113. }
  114.  
  115. /**
  116. * Get the description of this Work.
  117. *
  118. * @return string
  119. *
  120. * @throws object WorkflowException An exception with one of the
  121. * following messages defined in
  122. * org.osid.workflow.WorkflowException may be thrown: {@link }
  123. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  124. * OPERATION_FAILED}, {@link }
  125. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  126. * PERMISSION_DENIED}, {@link }
  127. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  128. * CONFIGURATION_ERROR}, {@link }
  129. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  130. * UNIMPLEMENTED}
  131. *
  132. * @access public
  133. */
  134. function getDescription () {
  135. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  136. }
  137.  
  138. /**
  139. * Get the Qualifier unique Id that was set when this Work was created in a
  140. * Process.
  141. *
  142. * @return object Id
  143. *
  144. * @throws object WorkflowException An exception with one of the
  145. * following messages defined in
  146. * org.osid.workflow.WorkflowException may be thrown: {@link }
  147. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  148. * OPERATION_FAILED}, {@link }
  149. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  150. * PERMISSION_DENIED}, {@link }
  151. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  152. * CONFIGURATION_ERROR}, {@link }
  153. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  154. * UNIMPLEMENTED}
  155. *
  156. * @access public
  157. */
  158. function getQualifierId () {
  159. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  160. }
  161.  
  162. /**
  163. * Get all the Property Types for Work.
  164. *
  165. * @return object TypeIterator
  166. *
  167. * @throws object WorkflowException An exception with one of the
  168. * following messages defined in
  169. * org.osid.workflow.WorkflowException may be thrown: {@link }
  170. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  171. * OPERATION_FAILED}, {@link }
  172. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  173. * PERMISSION_DENIED}, {@link }
  174. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  175. * CONFIGURATION_ERROR}, {@link }
  176. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  177. * UNIMPLEMENTED}
  178. *
  179. * @access public
  180. */
  181. function getPropertyTypes () {
  182. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  183. }
  184.  
  185. /**
  186. * Get the next Steps for a specific role this body of Work.
  187. *
  188. * @param object Id $roleId
  189. *
  190. * @return object StepIterator
  191. *
  192. * @throws object WorkflowException An exception with one of the
  193. * following messages defined in
  194. * org.osid.workflow.WorkflowException may be thrown: {@link }
  195. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  196. * OPERATION_FAILED}, {@link }
  197. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  198. * PERMISSION_DENIED}, {@link }
  199. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  200. * CONFIGURATION_ERROR}, {@link }
  201. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  202. * UNIMPLEMENTED}, {@link }
  203. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  204. * NULL_ARGUMENT}, {@link }
  205. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID}
  206. *
  207. * @access public
  208. */
  209. function getNextStepsForRole ( $roleId ) {
  210. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  211. }
  212.  
  213. /**
  214. * Get the next Steps for any role for this body of Work.
  215. *
  216. * @return object StepIterator
  217. *
  218. * @throws object WorkflowException An exception with one of the
  219. * following messages defined in
  220. * org.osid.workflow.WorkflowException may be thrown: {@link }
  221. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  222. * OPERATION_FAILED}, {@link }
  223. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  224. * PERMISSION_DENIED}, {@link }
  225. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  226. * CONFIGURATION_ERROR}, {@link }
  227. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  228. * UNIMPLEMENTED}
  229. *
  230. * @access public
  231. */
  232. function getNextSteps () {
  233. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  234. }
  235.  
  236. /**
  237. * Update the OutputState for a Step in this body of Work. The
  238. * implementation will support a set of these Output States. When a Step
  239. * is designed, the appropriate subset of the possible Output States can
  240. * be updated. This method updates the Output State of this Step to one
  241. * of those defined for the Step.
  242. *
  243. * @param object Id $stepId
  244. * @param string $outputState
  245. *
  246. * @throws object WorkflowException An exception with one of the
  247. * following messages defined in
  248. * org.osid.workflow.WorkflowException may be thrown: {@link }
  249. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  250. * OPERATION_FAILED}, {@link }
  251. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  252. * PERMISSION_DENIED}, {@link }
  253. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  254. * CONFIGURATION_ERROR}, {@link }
  255. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  256. * UNIMPLEMENTED}, {@link }
  257. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  258. * NULL_ARGUMENT}, {@link }
  259. * org.osid.workflow.WorkflowException#UNKNOWN_ID UNKNOWN_ID},
  260. * {@link org.osid.workflow.WorkflowException#UNKNOWN_OUTPUT_STATE}
  261. * UNKNOWN_OUTPUT_STATE}
  262. *
  263. * @access public
  264. */
  265. function updateStepOutputState ( $stepId, $outputState ) {
  266. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  267. }
  268.  
  269. /**
  270. * Get the series of Work Events that have occured in the context of this
  271. * body of work.
  272. *
  273. * @return object WorkEventIterator
  274. *
  275. * @throws object WorkflowException An exception with one of the
  276. * following messages defined in
  277. * org.osid.workflow.WorkflowException may be thrown: {@link }
  278. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  279. * OPERATION_FAILED}, {@link }
  280. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  281. * PERMISSION_DENIED}, {@link }
  282. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  283. * CONFIGURATION_ERROR}, {@link }
  284. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  285. * UNIMPLEMENTED}
  286. *
  287. * @access public
  288. */
  289. function getHistory () {
  290. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  291. }
  292.  
  293. /**
  294. * Get the Properties of this Type associated with this Work.
  295. *
  296. * @param object Type $propertiesType
  297. *
  298. * @return object Properties
  299. *
  300. * @throws object WorkflowException An exception with one of the
  301. * following messages defined in
  302. * org.osid.workflow.WorkflowException may be thrown: {@link }
  303. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  304. * OPERATION_FAILED}, {@link }
  305. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  306. * PERMISSION_DENIED}, {@link }
  307. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  308. * CONFIGURATION_ERROR}, {@link }
  309. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  310. * UNIMPLEMENTED}, {@link }
  311. * org.osid.workflow.WorkflowException#NULL_ARGUMENT
  312. * NULL_ARGUMENT}, {@link }
  313. * org.osid.workflow.WorkflowException#UNKNOWN_TYPE UNKNOWN_TYPE}
  314. *
  315. * @access public
  316. */
  317. function getPropertiesByType ( $propertiesType ) {
  318. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  319. }
  320.  
  321. /**
  322. * Get the Properties associated with this Work.
  323. *
  324. * @return object PropertiesIterator
  325. *
  326. * @throws object WorkflowException An exception with one of the
  327. * following messages defined in
  328. * org.osid.workflow.WorkflowException may be thrown: {@link }
  329. * org.osid.workflow.WorkflowException#OPERATION_FAILED
  330. * OPERATION_FAILED}, {@link }
  331. * org.osid.workflow.WorkflowException#PERMISSION_DENIED
  332. * PERMISSION_DENIED}, {@link }
  333. * org.osid.workflow.WorkflowException#CONFIGURATION_ERROR
  334. * CONFIGURATION_ERROR}, {@link }
  335. * org.osid.workflow.WorkflowException#UNIMPLEMENTED
  336. * UNIMPLEMENTED}
  337. *
  338. * @access public
  339. */
  340. function getProperties () {
  341. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  342. }
  343. }
  344.  
  345. ?>

Documentation generated on Wed, 19 Sep 2007 10:28:12 -0400 by phpDocumentor 1.3.0RC3