JcrSearchResultSupplierDefinition.appName
)
Otherwise there's a risk of ambiguous situations, e.g. when several apps are configured to work with one workspace.@Deprecated @Singleton public class PeriscopeAppDetailCreator extends Object
First checks if there is a mapping configured for given app name or workspace.
Otherwise, it looks up into the AppDescriptorRegistry
and infers mappings based on typical content-app configuration (JCR content connector).
Modifier and Type | Class and Description |
---|---|
static class |
PeriscopeAppDetailCreator.AppDetail
Deprecated.
Configuration bean for app detail information, mapping apps to workspaces and node-types.
|
Modifier and Type | Method and Description |
---|---|
Optional<PeriscopeAppDetailCreator.AppDetail> |
createAppDetail(String appName)
Deprecated.
Iterates over given configuration
appDetails if there is a match, returns it if the corresponding app
exists, an empty optional otherwise. |
Optional<PeriscopeAppDetailCreator.AppDetail> |
createAppDetailForWorkspace(String workspace)
Deprecated.
Iterates over given configuration
appDetails if there is a match, returns it if a corresponding app
exists, an empty optional otherwise. |
public Optional<PeriscopeAppDetailCreator.AppDetail> createAppDetail(String appName)
appDetails
if there is a match, returns it if the corresponding app
exists, an empty optional otherwise.
Otherwise, searches across AppDescriptorRegistry
provides and finds the first matching AppDescriptor
which matches the given #appName
.public Optional<PeriscopeAppDetailCreator.AppDetail> createAppDetailForWorkspace(String workspace)
appDetails
if there is a match, returns it if a corresponding app
exists, an empty optional otherwise.
Otherwise, searches across AppDescriptorRegistry
provides and finds the first matching AppDescriptor
which matches the given #workspace
.Copyright © 2021 Magnolia International Ltd.. All rights reserved.