public class io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider extends org.apache.sling.spi.resource.provider.ResourceProvider
{
public static final java.lang.String IPECONFIG_OVERLAY_ROOTPATH;
public void <init>()
{
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
specialinvoke v.<org.apache.sling.spi.resource.provider.ResourceProvider: void <init>()>();
return;
}
public org.apache.sling.api.resource.Resource getResource(org.apache.sling.spi.resource.provider.ResolveContext, java.lang.String, org.apache.sling.spi.resource.provider.ResourceContext, org.apache.sling.api.resource.Resource)
{
org.apache.sling.api.resource.ResourceResolver v;
java.util.SortedSet v;
io.wcm.handler.media.impl.ipeconfig.OverlayResource v;
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
java.lang.String v, v, v;
org.apache.sling.spi.resource.provider.ResolveContext v;
boolean v, v, v, v, v;
io.wcm.handler.media.impl.ipeconfig.PathParser v;
org.apache.sling.api.resource.Resource v, v, v, v;
org.apache.sling.spi.resource.provider.ResourceContext v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
v := @parameter: org.apache.sling.spi.resource.provider.ResolveContext;
v := @parameter: java.lang.String;
v := @parameter: org.apache.sling.spi.resource.provider.ResourceContext;
v := @parameter: org.apache.sling.api.resource.Resource;
v = new io.wcm.handler.media.impl.ipeconfig.PathParser;
specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: void <init>(java.lang.String)>(v);
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: boolean isValid()>();
if v != 0 goto label;
return null;
label:
v = interfaceinvoke v.<org.apache.sling.spi.resource.provider.ResolveContext: org.apache.sling.api.resource.ResourceResolver getResourceResolver()>();
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: boolean isAspectRatiosNode()>();
if v == 0 goto label;
v = specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider: org.apache.sling.api.resource.Resource buildAspectRatiosResource(org.apache.sling.api.resource.ResourceResolver,java.lang.String)>(v, v);
return v;
label:
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: boolean isAspectRatioItem()>();
if v == 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: java.lang.String getAspectRatioItemName()>();
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: java.util.SortedSet getMediaFormatNames()>();
v = interfaceinvoke v.<java.util.SortedSet: boolean contains(java.lang.Object)>(v);
if v == 0 goto label;
v = specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider: org.apache.sling.api.resource.Resource buildAspectRatioItemResource(org.apache.sling.api.resource.ResourceResolver,java.lang.String,java.lang.String,io.wcm.handler.media.impl.ipeconfig.PathParser)>(v, v, v, v);
return v;
label:
v = specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider: java.lang.String getIpeConfigPath(org.apache.sling.api.resource.ResourceResolver,io.wcm.handler.media.impl.ipeconfig.PathParser)>(v, v);
v = staticinvoke <org.apache.commons.lang.StringUtils: boolean isNotEmpty(java.lang.CharSequence)>(v);
if v == 0 goto label;
v = interfaceinvoke v.<org.apache.sling.api.resource.ResourceResolver: org.apache.sling.api.resource.Resource getResource(java.lang.String)>(v);
if v == null goto label;
v = new io.wcm.handler.media.impl.ipeconfig.OverlayResource;
specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.OverlayResource: void <init>(org.apache.sling.api.resource.Resource,java.lang.String)>(v, v);
return v;
label:
return null;
}
public java.util.Iterator listChildren(org.apache.sling.spi.resource.provider.ResolveContext, org.apache.sling.api.resource.Resource)
{
org.apache.sling.api.resource.ResourceResolver v;
java.util.SortedSet v;
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
java.util.Map v;
java.lang.String v, v, v, v;
org.apache.sling.spi.resource.provider.ResolveContext v;
boolean v, v, v, v, v;
java.util.Iterator v, v;
io.wcm.handler.media.impl.ipeconfig.PathParser v;
java.util.Collection v;
org.apache.sling.api.resource.Resource v, v, v;
java.lang.Object v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
v := @parameter: org.apache.sling.spi.resource.provider.ResolveContext;
v := @parameter: org.apache.sling.api.resource.Resource;
v = specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider: java.util.Map getOverlayedResourceChilden(org.apache.sling.api.resource.Resource)>(v);
v = interfaceinvoke v.<org.apache.sling.api.resource.Resource: java.lang.String getPath()>();
v = new io.wcm.handler.media.impl.ipeconfig.PathParser;
specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: void <init>(java.lang.String)>(v);
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: boolean isValid()>();
if v != 0 goto label;
return null;
label:
v = interfaceinvoke v.<org.apache.sling.spi.resource.provider.ResolveContext: org.apache.sling.api.resource.ResourceResolver getResourceResolver()>();
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: boolean isPluginsCropNode()>();
if v == 0 goto label;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001/aspectRatios");
v = specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider: org.apache.sling.api.resource.Resource buildAspectRatiosResource(org.apache.sling.api.resource.ResourceResolver,java.lang.String)>(v, v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>("aspectRatios", v);
goto label;
label:
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: boolean isAspectRatiosNode()>();
if v == 0 goto label;
interfaceinvoke v.<java.util.Map: void clear()>();
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: java.util.SortedSet getMediaFormatNames()>();
v = interfaceinvoke v.<java.util.SortedSet: java.util.Iterator iterator()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.Object)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001/\u0001");
v = specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider: org.apache.sling.api.resource.Resource buildAspectRatioItemResource(org.apache.sling.api.resource.ResourceResolver,java.lang.String,java.lang.String,io.wcm.handler.media.impl.ipeconfig.PathParser)>(v, v, v, v);
if v == null goto label;
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
goto label;
label:
v = interfaceinvoke v.<java.util.Map: boolean isEmpty()>();
if v == 0 goto label;
return null;
label:
v = interfaceinvoke v.<java.util.Map: java.util.Collection values()>();
v = interfaceinvoke v.<java.util.Collection: java.util.Iterator iterator()>();
return v;
}
private java.util.Map getOverlayedResourceChilden(org.apache.sling.api.resource.Resource)
{
java.util.Iterator v;
org.apache.sling.api.resource.Resource v, v;
java.util.LinkedHashMap v;
io.wcm.handler.media.impl.ipeconfig.OverlayResource v;
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
java.lang.Object v;
java.lang.String v, v, v, v;
boolean v, v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
v := @parameter: org.apache.sling.api.resource.Resource;
v = new java.util.LinkedHashMap;
specialinvoke v.<java.util.LinkedHashMap: void <init>()>();
v = v instanceof io.wcm.handler.media.impl.ipeconfig.OverlayResource;
if v == 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.OverlayResource: org.apache.sling.api.resource.Resource getOverlayedResource()>();
v = interfaceinvoke v.<org.apache.sling.api.resource.Resource: java.util.Iterator listChildren()>();
label:
v = interfaceinvoke v.<java.util.Iterator: boolean hasNext()>();
if v == 0 goto label;
v = interfaceinvoke v.<java.util.Iterator: java.lang.Object next()>();
v = interfaceinvoke v.<org.apache.sling.api.resource.Resource: java.lang.String getName()>();
v = new io.wcm.handler.media.impl.ipeconfig.OverlayResource;
v = interfaceinvoke v.<org.apache.sling.api.resource.Resource: java.lang.String getPath()>();
v = interfaceinvoke v.<org.apache.sling.api.resource.Resource: java.lang.String getName()>();
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001/\u0001");
specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.OverlayResource: void <init>(org.apache.sling.api.resource.Resource,java.lang.String)>(v, v);
interfaceinvoke v.<java.util.Map: java.lang.Object put(java.lang.Object,java.lang.Object)>(v, v);
goto label;
label:
return v;
}
private org.apache.sling.api.resource.Resource buildAspectRatiosResource(org.apache.sling.api.resource.ResourceResolver, java.lang.String)
{
org.apache.sling.api.resource.ResourceResolver v;
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
java.lang.String v;
org.apache.sling.api.resource.SyntheticResource v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
v := @parameter: org.apache.sling.api.resource.ResourceResolver;
v := @parameter: java.lang.String;
v = new org.apache.sling.api.resource.SyntheticResource;
specialinvoke v.<org.apache.sling.api.resource.SyntheticResource: void <init>(org.apache.sling.api.resource.ResourceResolver,java.lang.String,java.lang.String)>(v, v, null);
return v;
}
private org.apache.sling.api.resource.Resource buildAspectRatioItemResource(org.apache.sling.api.resource.ResourceResolver, java.lang.String, java.lang.String, io.wcm.handler.media.impl.ipeconfig.PathParser)
{
org.apache.sling.api.resource.ResourceResolver v;
io.wcm.handler.media.impl.ipeconfig.PathParser v;
org.apache.sling.api.resource.Resource v;
io.wcm.handler.media.impl.ipeconfig.AspectRatioResource v;
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
io.wcm.handler.media.format.MediaFormat v;
java.lang.Object v;
java.lang.String v, v, v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
v := @parameter: org.apache.sling.api.resource.ResourceResolver;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v := @parameter: io.wcm.handler.media.impl.ipeconfig.PathParser;
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: java.lang.String getComponentContentPath()>();
v = interfaceinvoke v.<org.apache.sling.api.resource.ResourceResolver: org.apache.sling.api.resource.Resource getResource(java.lang.String)>(v);
if v == null goto label;
v = staticinvoke <io.wcm.sling.commons.adapter.AdaptTo: java.lang.Object notNull(org.apache.sling.api.adapter.Adaptable,java.lang.Class)>(v, class "Lio/wcm/handler/media/format/MediaFormatHandler;");
v = specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider: io.wcm.handler.media.format.MediaFormat getMediaFormat(java.lang.String,io.wcm.handler.media.format.MediaFormatHandler)>(v, v);
if v == null goto label;
v = new io.wcm.handler.media.impl.ipeconfig.AspectRatioResource;
specialinvoke v.<io.wcm.handler.media.impl.ipeconfig.AspectRatioResource: void <init>(org.apache.sling.api.resource.ResourceResolver,io.wcm.handler.media.format.MediaFormat,java.lang.String)>(v, v, v);
return v;
label:
return null;
}
private io.wcm.handler.media.format.MediaFormat getMediaFormat(java.lang.String, io.wcm.handler.media.format.MediaFormatHandler)
{
io.wcm.handler.media.format.MediaFormatHandler v;
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
io.wcm.handler.media.format.MediaFormat v, v, v;
java.lang.String v, v;
boolean v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
v := @parameter: java.lang.String;
v := @parameter: io.wcm.handler.media.format.MediaFormatHandler;
v = <io.wcm.handler.media.impl.ipeconfig.CroppingRatios: io.wcm.handler.media.format.MediaFormat MEDIAFORMAT_FREE_CROP>;
v = virtualinvoke v.<io.wcm.handler.media.format.MediaFormat: java.lang.String getName()>();
v = staticinvoke <org.apache.commons.lang.StringUtils: boolean equals(java.lang.CharSequence,java.lang.CharSequence)>(v, v);
if v == 0 goto label;
v = <io.wcm.handler.media.impl.ipeconfig.CroppingRatios: io.wcm.handler.media.format.MediaFormat MEDIAFORMAT_FREE_CROP>;
return v;
label:
v = interfaceinvoke v.<io.wcm.handler.media.format.MediaFormatHandler: io.wcm.handler.media.format.MediaFormat getMediaFormat(java.lang.String)>(v);
return v;
}
private java.lang.String getIpeConfigPath(org.apache.sling.api.resource.ResourceResolver, io.wcm.handler.media.impl.ipeconfig.PathParser)
{
org.apache.sling.api.resource.ResourceResolver v;
io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider v;
java.lang.String v, v, v, v, v;
boolean v;
com.day.cq.wcm.api.components.ComponentEditConfig v, v, v;
io.wcm.handler.media.impl.ipeconfig.PathParser v;
org.apache.sling.api.resource.Resource v;
com.day.cq.wcm.api.components.Component v;
com.day.cq.wcm.api.components.InplaceEditingConfig v, v;
java.lang.Object v;
v := @this: io.wcm.handler.media.impl.ipeconfig.IPEConfigResourceProvider;
v := @parameter: org.apache.sling.api.resource.ResourceResolver;
v := @parameter: io.wcm.handler.media.impl.ipeconfig.PathParser;
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: java.lang.String getComponentContentPath()>();
v = interfaceinvoke v.<org.apache.sling.api.resource.ResourceResolver: org.apache.sling.api.resource.Resource getResource(java.lang.String)>(v);
if v == null goto label;
v = staticinvoke <io.wcm.sling.commons.adapter.AdaptTo: java.lang.Object notNull(org.apache.sling.api.adapter.Adaptable,java.lang.Class)>(v, class "Lcom/day/cq/wcm/api/components/ComponentManager;");
v = interfaceinvoke v.<com.day.cq.wcm.api.components.ComponentManager: com.day.cq.wcm.api.components.Component getComponentOfResource(org.apache.sling.api.resource.Resource)>(v);
if v == null goto label;
v = interfaceinvoke v.<com.day.cq.wcm.api.components.Component: com.day.cq.wcm.api.components.ComponentEditConfig getEditConfig()>();
if v == null goto label;
v = interfaceinvoke v.<com.day.cq.wcm.api.components.Component: com.day.cq.wcm.api.components.ComponentEditConfig getEditConfig()>();
v = interfaceinvoke v.<com.day.cq.wcm.api.components.ComponentEditConfig: com.day.cq.wcm.api.components.InplaceEditingConfig getInplaceEditingConfig()>();
if v == null goto label;
v = interfaceinvoke v.<com.day.cq.wcm.api.components.Component: com.day.cq.wcm.api.components.ComponentEditConfig getEditConfig()>();
v = interfaceinvoke v.<com.day.cq.wcm.api.components.ComponentEditConfig: com.day.cq.wcm.api.components.InplaceEditingConfig getInplaceEditingConfig()>();
v = virtualinvoke v.<com.day.cq.wcm.api.components.InplaceEditingConfig: java.lang.String getConfigPath()>();
v = staticinvoke <org.apache.commons.lang.StringUtils: boolean isNotEmpty(java.lang.CharSequence)>(v);
if v == 0 goto label;
v = virtualinvoke v.<io.wcm.handler.media.impl.ipeconfig.PathParser: java.lang.String getRelativeConfigPath()>();
v = staticinvoke <org.apache.commons.lang.StringUtils: java.lang.String defaultString(java.lang.String)>(v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("\u0001\u0001");
return v;
label:
return null;
}
public static java.lang.String buildPath(java.lang.String, java.util.Set)
{
java.util.Set v;
java.lang.String v, v, v;
java.util.TreeSet v;
v := @parameter: java.lang.String;
v := @parameter: java.util.Set;
v = new java.util.TreeSet;
specialinvoke v.<java.util.TreeSet: void <init>(java.util.Collection)>(v);
v = staticinvoke <org.apache.commons.lang.StringUtils: java.lang.String join(java.lang.Iterable,java.lang.String)>(v, "/");
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("/wcmio:mediaHandler/ipeConfig\u0001/wcmio:mediaFormat/\u0001/wcmio:config");
return v;
}
}