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

Introduce DocumentAccessBridge::setProperty() method

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.9 M1
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: