Class ObjectEditPage


  • public class ObjectEditPage
    extends EditPage
    Represents the common actions possible on all Pages when using the "edit" action with the "object" editor.
    Since:
    3.2M3
    Version:
    $Id: 780715ac77151e6fd9c2c5dedb285b9860e35898 $
    • Constructor Detail

      • ObjectEditPage

        public ObjectEditPage()
    • Method Detail

      • removeAllObjects

        public void removeAllObjects​(String className)
        Since:
        4.3M2
      • deleteObject

        public void deleteObject​(String className,
                                 int index)
      • deleteObject

        public void deleteObject​(org.openqa.selenium.By objectLocator)
        Since:
        4.3M2
      • removeAllDeprecatedProperties

        public void removeAllDeprecatedProperties()
      • isPropertyDeprecated

        public boolean isPropertyDeprecated​(String className,
                                            String propertyName)
        Parameters:
        className - a class name
        propertyName - a class field name
        Returns:
        true if the specified class field is listed as deprecated, false otherwise
      • getObjectsOfClass

        public List<ObjectEditPane> getObjectsOfClass​(String className)
        className will look something like "XWiki.XWikiRights"
      • getObjectsOfClass

        @Unstable
        public List<ObjectEditPane> getObjectsOfClass​(String className,
                                                      boolean displayAllObjects)
        Retrieve all objects of the given class name, and expand them if needed. Note that if displayAllObjects is set to false then you need to be careful to call ObjectEditPane.displayObject() to load the xobjects information if you need to access them.
        Parameters:
        className - the name of the class for which to retrieve the object (e.g. XWiki.XWikiRights)
        displayAllObjects - if true expand the objects before returning them.
        Returns:
        the list of ObjectEditPane corresponding to all objects of the given class.
        Since:
        13.1RC1
      • hasObject

        public boolean hasObject​(String className)