|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.day.cq.widget.impl.WidgetExtensionProviderImpl
public class WidgetExtensionProviderImpl
| Field Summary | |
|---|---|
protected static String |
CONFIG_PROPERTY_WORKSPACE
|
static Locale |
DATE_FORMAT_LOCALE
Used to format date values |
static String |
ECMA_DATE_FORMAT
Used to format date values |
protected static String |
EXTENDABLE_WIDGETS
|
protected org.slf4j.Logger |
log
Default log. |
protected org.apache.sling.jcr.resource.JcrResourceResolverFactory |
resourceManagerFactory
|
| Constructor Summary | |
|---|---|
WidgetExtensionProviderImpl()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context)
Activate this component. |
void |
dump(org.apache.sling.api.resource.Resource resource,
org.apache.sling.commons.json.JSONObject obj,
int maxRecursionLevels)
|
protected void |
dump(org.apache.sling.api.resource.Resource resource,
org.apache.sling.commons.json.JSONObject obj,
int currentRecursionLevel,
int maxRecursionLevels)
Dump given resource in JSON, optionally recursing into its objects |
protected void |
dumpSingleResource(org.apache.sling.api.resource.Resource n,
org.apache.sling.commons.json.JSONObject obj,
int currentRecursionLevel,
int maxRecursionLevels)
Dump a single node |
protected void |
dumpValue(org.apache.sling.commons.json.JSONArray a,
Object value)
|
protected void |
dumpValue(org.apache.sling.commons.json.JSONObject obj,
Object value,
String key)
|
static String |
format(Calendar date)
|
List<org.apache.sling.api.resource.Resource> |
getExtensions(String xtype,
Session session)
Returns all extensions paths of the desired widget as list. |
org.apache.sling.commons.json.JSONObject |
getJson(String key,
Session session)
Returns the extension "list" as json object |
String |
getJsonString(String key,
Session session)
Returns the extension "list" as string ready for inclusion |
protected boolean |
recursionLevelActive(int currentRecursionLevel,
int maxRecursionLevels)
true if the current recursion level is active |
protected void |
writeProperty(org.apache.sling.commons.json.JSONObject obj,
org.apache.sling.api.resource.ValueMap valueMap,
String key,
Object value)
Write a single property |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger log
protected org.apache.sling.jcr.resource.JcrResourceResolverFactory resourceManagerFactory
protected static final String CONFIG_PROPERTY_WORKSPACE
protected static final String EXTENDABLE_WIDGETS
public static final String ECMA_DATE_FORMAT
public static final Locale DATE_FORMAT_LOCALE
| Constructor Detail |
|---|
public WidgetExtensionProviderImpl()
| Method Detail |
|---|
public List<org.apache.sling.api.resource.Resource> getExtensions(String xtype,
Session session)
WidgetExtensionProvider
getExtensions in interface WidgetExtensionProviderxtype - extension keysession - session
public org.apache.sling.commons.json.JSONObject getJson(String key,
Session session)
WidgetExtensionProvider
getJson in interface WidgetExtensionProvider
public String getJsonString(String key,
Session session)
WidgetExtensionProvider
getJsonString in interface WidgetExtensionProvider
protected void activate(org.osgi.service.component.ComponentContext context)
throws RepositoryException
context -
RepositoryException
public void dump(org.apache.sling.api.resource.Resource resource,
org.apache.sling.commons.json.JSONObject obj,
int maxRecursionLevels)
throws org.apache.sling.commons.json.JSONException
org.apache.sling.commons.json.JSONException
protected void dump(org.apache.sling.api.resource.Resource resource,
org.apache.sling.commons.json.JSONObject obj,
int currentRecursionLevel,
int maxRecursionLevels)
throws org.apache.sling.commons.json.JSONException
org.apache.sling.commons.json.JSONException
protected void dumpSingleResource(org.apache.sling.api.resource.Resource n,
org.apache.sling.commons.json.JSONObject obj,
int currentRecursionLevel,
int maxRecursionLevels)
throws org.apache.sling.commons.json.JSONException
org.apache.sling.commons.json.JSONException
protected boolean recursionLevelActive(int currentRecursionLevel,
int maxRecursionLevels)
protected void writeProperty(org.apache.sling.commons.json.JSONObject obj,
org.apache.sling.api.resource.ValueMap valueMap,
String key,
Object value)
throws org.apache.sling.commons.json.JSONException
org.apache.sling.commons.json.JSONException
protected void dumpValue(org.apache.sling.commons.json.JSONObject obj,
Object value,
String key)
throws org.apache.sling.commons.json.JSONException
org.apache.sling.commons.json.JSONException
protected void dumpValue(org.apache.sling.commons.json.JSONArray a,
Object value)
throws org.apache.sling.commons.json.JSONException
org.apache.sling.commons.json.JSONExceptionpublic static String format(Calendar date)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||