Class BrowseService

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.util.io.IClusterable, IRefreshable, IBrowseService<org.apache.wicket.model.IModel<Node>>

    public class BrowseService
    extends Object
    implements IBrowseService<org.apache.wicket.model.IModel<Node>>, IRefreshable, org.apache.wicket.model.IDetachable
    An implementation of IBrowseService that also exposes two model services, for document and folder, that represent the state of the "browser".

    The IBrowseService interface should be used by plugins that do not form part of the "browser". The model services should be used by plugins that do.

    The folder and document models are always JcrNodeModel instances, though the nodes may not exist. When the document node is null, this implies that no document is selected from the folder. Setting the folder node to null is not supported.

    See Also:
    Serialized Form
    • Method Detail

      • selectFolder

        public void selectFolder​(org.apache.wicket.model.IModel<Node> model)
      • browse

        public void browse​(org.apache.wicket.model.IModel<Node> model)
        Use the supplied model of a Node (or Version) to set folder and document models. When a Version is supplied from the version storage, the physical node is used.
        Specified by:
        browse in interface IBrowseService<org.apache.wicket.model.IModel<Node>>
      • detach

        public void detach()
        Specified by:
        detach in interface org.apache.wicket.model.IDetachable