Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3555

Introduce DocumentAccessBridge::setProperty() method

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 1.9 M1
    • None
    • None
    • None

    Description

      Currently there is no way to set an objects' property (attached to a document) via the DocumentAccessBridge. This task will add a setProperty() method of the following signature:

      /**
      * Sets the given property of the first object (of the given class) attached to the document. If no such object
      * exists, this method will create a new object of the given class, attach it to the document and set the property.
      * 
      * @param documentName name of the document to access.
      * @param className name of the class.
      * @param propertyName name of the property to set.
      * @param propertyValue value of the property to set.
      * @throws Exception if the document cannot be accessed.
      */
      void setProperty(String documentName, String className, String propertyName, Object value) throws Exception;
      

      Attachments

        Issue Links

          Activity

            People

              asiri Asiri Rathnayake
              asiri Asiri Rathnayake
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: