The atg.repository.RepositoryService
class contains many methods that perform basic Repository operations, independent of any particular repository implementation or instance. Such operations include getting, adding, removing and updating a repository item, setting and getting properties of repository items, and performing queries for repository items using RQL. Using the Web Service generator, you can directly make some of these methods into Web Services by simply clicking a form submit button.
Some others of these methods are too generic to be made available as a Web Service without limiting the types of the inputs or outputs. For example, the method setPropertyValue
takes a java.lang.Object
as a method argument for the property value. Since Web Services does not allow java.lang.Object
as an input (or output), this method cannot be used as a Web Service in this form. However, we can restrict the type of this argument using the code generator template functionality, so when the Web Service is generated, the outward-facing method will be strongly typed based on the property being set, and can simply call through to the more generic setPropertyValue
method in the body of the Web Service. The RepositoryService
class has the following properties:
Property Name | Type | Description |
---|---|---|
|
| The service that manages any transactions that are used to execute repository methods on this instance. |
|
| The component that manages mapping files based on repository and item descriptor name combinations. For any methods that return a |
|
| The service that knows how to turn |
|
| The service that knows how to add |
|
| The service that knows how to take |
For information about the XML service properties, see the Repository Operations section.