@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
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)
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)
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 © 2019 Magnolia International Ltd.. All rights reserved.