public class JcrInstaller extends Object implements org.apache.sling.installer.api.UpdateHandler
| Modifier and Type | Field and Description |
|---|---|
static int |
COUNTERS_COUNT |
static int |
RUN_LOOP_COUNTER |
static long |
RUN_LOOP_DELAY_MSEC |
static int |
SCAN_FOLDERS_COUNTER |
static int |
UPDATE_FOLDERS_LIST_COUNTER |
static String |
URL_SCHEME |
| Constructor and Description |
|---|
JcrInstaller() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.apache.sling.installer.provider.jcr.impl.JcrInstaller.Configuration configuration)
Activate this component.
|
protected void |
deactivate()
Deactivate this component
|
org.apache.sling.installer.api.UpdateResult |
handleRemoval(String resourceType,
String id,
String url) |
org.apache.sling.installer.api.UpdateResult |
handleUpdate(String resourceType,
String id,
String url,
Dictionary<String,Object> dict,
Map<String,Object> attributes) |
org.apache.sling.installer.api.UpdateResult |
handleUpdate(String resourceType,
String id,
String url,
InputStream is,
Map<String,Object> attributes) |
void |
runOneCycle(InstallerConfig cfg,
javax.jcr.Session session)
Run periodic scans of our watched folders, and watch for folders creations/deletions.
|
public static final long RUN_LOOP_DELAY_MSEC
public static final String URL_SCHEME
public static final int SCAN_FOLDERS_COUNTER
public static final int UPDATE_FOLDERS_LIST_COUNTER
public static final int RUN_LOOP_COUNTER
public static final int COUNTERS_COUNT
protected void activate(org.apache.sling.installer.provider.jcr.impl.JcrInstaller.Configuration configuration)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected void deactivate()
public void runOneCycle(InstallerConfig cfg, javax.jcr.Session session)
public org.apache.sling.installer.api.UpdateResult handleRemoval(String resourceType, String id, String url)
handleRemoval in interface org.apache.sling.installer.api.UpdateHandlerUpdateHandler.handleRemoval(java.lang.String, java.lang.String, java.lang.String)public org.apache.sling.installer.api.UpdateResult handleUpdate(String resourceType, String id, String url, Dictionary<String,Object> dict, Map<String,Object> attributes)
handleUpdate in interface org.apache.sling.installer.api.UpdateHandlerUpdateHandler.handleUpdate(java.lang.String, java.lang.String, java.lang.String, java.util.Dictionary, Map)public org.apache.sling.installer.api.UpdateResult handleUpdate(String resourceType, String id, String url, InputStream is, Map<String,Object> attributes)
handleUpdate in interface org.apache.sling.installer.api.UpdateHandlerUpdateHandler.handleUpdate(java.lang.String, java.lang.String, java.lang.String, java.io.InputStream, Map)Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.