@Service(value=ClusterViewService.class) public class OakClusterViewService extends java.lang.Object implements ClusterViewService
| Constructor and Description |
|---|
OakClusterViewService() |
| Modifier and Type | Method and Description |
|---|---|
LocalClusterView |
getLocalClusterView()
Returns the current, local cluster view - throwing an
UndefinedClusterViewException if it cannot determine
a clusterView at the moment.
|
protected ResourceResolver |
getResourceResolver() |
java.lang.String |
getSlingId()
the sling id of the local instance
|
static OakClusterViewService |
testConstructor(SlingSettingsService settingsService,
ResourceResolverFactory resourceResolverFactory,
IdMapService idMapService,
Config config) |
public static OakClusterViewService testConstructor(SlingSettingsService settingsService, ResourceResolverFactory resourceResolverFactory, IdMapService idMapService, Config config)
public java.lang.String getSlingId()
ClusterViewServicegetSlingId in interface ClusterViewServiceprotected ResourceResolver getResourceResolver() throws LoginException
LoginExceptionpublic LocalClusterView getLocalClusterView() throws UndefinedClusterViewException
ClusterViewServicegetLocalClusterView in interface ClusterViewServiceUndefinedClusterViewException - thrown when
the ClusterView cannot be determined at the moment
(also contains more details as to why exactly)Copyright © 2018 The Apache Software Foundation. All rights reserved.