Source for file Record.php

Documentation is available at Record.php

  1. <?php
  2. /**
  3. * Each Asset has one of the AssetType supported by the Repository. There are
  4. * also zero or more RecordStructures required by the Repository for each
  5. * AssetType. RecordStructures provide structural information. The values for
  6. * a given Asset's RecordStructure are stored in a Record. RecordStructures
  7. * can contain sub-elements which are referred to as PartStructures. The
  8. * structure defined in the RecordStructure and its PartStructures is used in
  9. * for any Records for the Asset. Records have Parts which parallel
  10. * PartStructures.
  11. *
  12. * <p>
  13. * OSID Version: 2.0
  14. * </p>
  15. *
  16. * <p>
  17. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  18. * O.K.I&#46; OSID Definition License}.
  19. * </p>
  20. *
  21. * @package org.osid.repository
  22. *
  23. * WARNING: The real class-name should be Record, not RecordInterface. The re-naming
  24. * of this class is a temporary fix due to another class named Record already existing
  25. * in Harmoni.
  26. */
  27. class RecordInterface // Record
  28.  
  29. {
  30. /**
  31. * Update the display name for this Record.
  32. *
  33. * @param string $displayName
  34. *
  35. * @throws object RepositoryException An exception with one of
  36. * the following messages defined in
  37. * org.osid.repository.RepositoryException may be thrown: {@link }
  38. * org.osid.repository.RepositoryException#OPERATION_FAILED
  39. * OPERATION_FAILED}, {@link }
  40. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  41. * PERMISSION_DENIED}, {@link }
  42. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  43. * CONFIGURATION_ERROR}, {@link }
  44. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  45. * UNIMPLEMENTED}, {@link }
  46. * org.osid.repository.RepositoryException#NULL_ARGUMENT
  47. * NULL_ARGUMENT}
  48. *
  49. * @access public
  50. */
  51. function updateDisplayName ( $displayName ) {
  52. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  53. }
  54.  
  55. /**
  56. * Get the display name for this Record.
  57. *
  58. * @return string
  59. *
  60. * @throws object RepositoryException An exception with one of
  61. * the following messages defined in
  62. * org.osid.repository.RepositoryException may be thrown: {@link }
  63. * org.osid.repository.RepositoryException#OPERATION_FAILED
  64. * OPERATION_FAILED}, {@link }
  65. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  66. * PERMISSION_DENIED}, {@link }
  67. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  68. * CONFIGURATION_ERROR}, {@link }
  69. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  70. * UNIMPLEMENTED}
  71. *
  72. * @access public
  73. */
  74. function getDisplayName () {
  75. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  76. }
  77.  
  78. /**
  79. * Get the unique Id for this Record.
  80. *
  81. * @return object Id
  82. *
  83. * @throws object RepositoryException An exception with one of
  84. * the following messages defined in
  85. * org.osid.repository.RepositoryException may be thrown: {@link }
  86. * org.osid.repository.RepositoryException#OPERATION_FAILED
  87. * OPERATION_FAILED}, {@link }
  88. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  89. * PERMISSION_DENIED}, {@link }
  90. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  91. * CONFIGURATION_ERROR}, {@link }
  92. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  93. * UNIMPLEMENTED}
  94. *
  95. * @access public
  96. */
  97. function getId () {
  98. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  99. }
  100.  
  101. /**
  102. * Create a Part. Records are composed of Parts. Parts can also contain
  103. * other Parts. Each Record is associated with a specific RecordStructure
  104. * and each Part is associated with a specific PartStructure.
  105. *
  106. * @param object Id $partStructureId
  107. * @param object mixed $value (original type: java.io.Serializable)
  108. *
  109. * @return object Part
  110. *
  111. * @throws object RepositoryException An exception with one of
  112. * the following messages defined in
  113. * org.osid.repository.RepositoryException may be thrown: {@link }
  114. * org.osid.repository.RepositoryException#OPERATION_FAILED
  115. * OPERATION_FAILED}, {@link }
  116. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  117. * PERMISSION_DENIED}, {@link }
  118. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  119. * CONFIGURATION_ERROR}, {@link }
  120. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  121. * UNIMPLEMENTED}, {@link }
  122. * org.osid.repository.RepositoryException#NULL_ARGUMENT
  123. * NULL_ARGUMENT}, {@link }
  124. * org.osid.repository.RepositoryException#UNKNOWN_ID UNKNOWN_ID}
  125. *
  126. * @access public
  127. */
  128. function createPart ( $partStructureId, $value ) {
  129. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  130. }
  131.  
  132. /**
  133. * Delete a Part and all its Parts.
  134. *
  135. * @param object Id $partId
  136. *
  137. * @throws object RepositoryException An exception with one of
  138. * the following messages defined in
  139. * org.osid.repository.RepositoryException may be thrown: {@link }
  140. * org.osid.repository.RepositoryException#OPERATION_FAILED
  141. * OPERATION_FAILED}, {@link }
  142. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  143. * PERMISSION_DENIED}, {@link }
  144. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  145. * CONFIGURATION_ERROR}, {@link }
  146. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  147. * UNIMPLEMENTED}, {@link }
  148. * org.osid.repository.RepositoryException#NULL_ARGUMENT
  149. * NULL_ARGUMENT}, {@link }
  150. * org.osid.repository.RepositoryException#UNKNOWN_ID UNKNOWN_ID}
  151. *
  152. * @access public
  153. */
  154. function deletePart ( $partId ) {
  155. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  156. }
  157.  
  158. /**
  159. * Get all the Parts in the Record. Iterators return a set, one at a time.
  160. *
  161. * @return object PartIterator
  162. *
  163. * @throws object RepositoryException An exception with one of
  164. * the following messages defined in
  165. * org.osid.repository.RepositoryException may be thrown: {@link }
  166. * org.osid.repository.RepositoryException#OPERATION_FAILED
  167. * OPERATION_FAILED}, {@link }
  168. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  169. * PERMISSION_DENIED}, {@link }
  170. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  171. * CONFIGURATION_ERROR}, {@link }
  172. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  173. * UNIMPLEMENTED}
  174. *
  175. * @access public
  176. */
  177. function getParts () {
  178. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  179. }
  180.  
  181. /**
  182. * Get the RecordStructure associated with this Record.
  183. *
  184. * @return object RecordStructure
  185. *
  186. * @throws object RepositoryException An exception with one of
  187. * the following messages defined in
  188. * org.osid.repository.RepositoryException may be thrown: {@link }
  189. * org.osid.repository.RepositoryException#OPERATION_FAILED
  190. * OPERATION_FAILED}, {@link }
  191. * org.osid.repository.RepositoryException#PERMISSION_DENIED
  192. * PERMISSION_DENIED}, {@link }
  193. * org.osid.repository.RepositoryException#CONFIGURATION_ERROR
  194. * CONFIGURATION_ERROR}, {@link }
  195. * org.osid.repository.RepositoryException#UNIMPLEMENTED
  196. * UNIMPLEMENTED}
  197. *
  198. * @access public
  199. */
  200. function getRecordStructure () {
  201. die ("Method <b>".__FUNCTION__."()</b> declared in interface<b> ".__CLASS__."</b> has not been overloaded in a child class.");
  202. }
  203. }
  204.  
  205. ?>

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