Class BrowseService
- java.lang.Object
-
- org.hippoecm.frontend.plugins.standards.browse.BrowseService
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.model.IDetachable
,org.apache.wicket.util.io.IClusterable
,IRefreshable
,IBrowseService<org.apache.wicket.model.IModel<javax.jcr.Node>>
public class BrowseService extends Object implements IBrowseService<org.apache.wicket.model.IModel<javax.jcr.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
-
-
Field Summary
-
Fields inherited from interface org.hippoecm.frontend.service.IBrowseService
BROWSER_ID
-
-
Constructor Summary
Constructors Constructor Description BrowseService(IPluginContext context, IPluginConfig config, JcrNodeModel document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
browse(org.apache.wicket.model.IModel<javax.jcr.Node> model)
Use the supplied model of a Node (or Version) to set folder and document models.void
detach()
void
refresh()
void
selectFolder(org.apache.wicket.model.IModel<javax.jcr.Node> model)
-
-
-
Constructor Detail
-
BrowseService
public BrowseService(IPluginContext context, IPluginConfig config, JcrNodeModel document)
-
-
Method Detail
-
selectFolder
public void selectFolder(org.apache.wicket.model.IModel<javax.jcr.Node> model)
-
browse
public void browse(org.apache.wicket.model.IModel<javax.jcr.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 interfaceIBrowseService<org.apache.wicket.model.IModel<javax.jcr.Node>>
-
refresh
public void refresh()
- Specified by:
refresh
in interfaceIRefreshable
-
detach
public void detach()
- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-
-