Interface WatchedEntityFactory


  • @Role
    public interface WatchedEntityFactory
    Helper to create watched entity references.
    Since:
    9.8RC1
    Version:
    $Id: a4278eb33c67be8795eefce79215aefce5e9cb9a $
    • Method Detail

      • createWatchedLocationReference

        WatchedLocationReference createWatchedLocationReference​(org.xwiki.model.reference.EntityReference location)
        Create a watched location reference.
        Parameters:
        location - the reference of the location to watch
        Returns:
        the watched location reference
      • createWatchedUserReference

        WatchedUserReference createWatchedUserReference​(String userId)
        Create a watched user reference.
        Parameters:
        userId - the ID of the user to watch
        Returns:
        the watched user reference