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<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:
-
Field Summary
Fields inherited from interface org.hippoecm.frontend.service.IBrowseService
BROWSER_ID
-
Constructor Summary
ConstructorDescriptionBrowseService
(IPluginContext context, IPluginConfig config, JcrNodeModel document) -
Method Summary
-
Constructor Details
-
BrowseService
-
-
Method Details
-
selectFolder
-
browse
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<Node>>
-
refresh
public void refresh()- Specified by:
refresh
in interfaceIRefreshable
-
detach
public void detach()- Specified by:
detach
in interfaceorg.apache.wicket.model.IDetachable
-