|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sling.jcr.contentloader.internal.ContentLoaderService
@Properties(value={@Property(name="service.vendor",value="The Apache Software Foundation"),@Property(name="service.description",value="Apache Sling Content Loader Implementation")})
public class ContentLoaderService
The ContentLoaderService is the service
providing the following functionality:
| Field Summary | |
|---|---|
static java.lang.String |
BUNDLE_CONTENT_NODE
|
static java.lang.String |
PROPERTY_CONTENT_LOADED
|
static java.lang.String |
PROPERTY_CONTENT_LOADED_AT
|
static java.lang.String |
PROPERTY_UNINSTALL_PATHS
|
protected org.apache.sling.engine.SlingSettingsService |
settingsService
Sling settings service. |
| Constructor Summary | |
|---|---|
ContentLoaderService()
|
|
| Method Summary | |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
Activates this component, called by SCR before registering as a service |
void |
bundleChanged(org.osgi.framework.BundleEvent event)
Loads and unloads any content provided by the bundle whose state changed. |
void |
contentIsUninstalled(javax.jcr.Session session,
org.osgi.framework.Bundle bundle)
|
protected void |
createRepositoryPath(javax.jcr.Session writerSession,
java.lang.String repositoryPath)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
Deativates this component, called by SCR to take out of service |
java.util.Map<java.lang.String,java.lang.Object> |
getBundleContentInfo(javax.jcr.Session session,
org.osgi.framework.Bundle bundle,
boolean create)
Return the bundle content info and make an exclusive lock. |
java.lang.String |
getMimeType(java.lang.String name)
Returns the MIME type from the MimeTypeService for the given name |
protected org.apache.sling.jcr.api.SlingRepository |
getRepository()
Returns the JCR repository used by this service. |
void |
unlockBundleContentInfo(javax.jcr.Session session,
org.osgi.framework.Bundle bundle,
boolean contentLoaded,
java.util.List<java.lang.String> createdNodes)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_CONTENT_LOADED
public static final java.lang.String PROPERTY_CONTENT_LOADED_AT
public static final java.lang.String PROPERTY_UNINSTALL_PATHS
public static final java.lang.String BUNDLE_CONTENT_NODE
@Reference protected org.apache.sling.engine.SlingSettingsService settingsService
| Constructor Detail |
|---|
public ContentLoaderService()
| Method Detail |
|---|
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged in interface org.osgi.framework.BundleListenerevent - The BundleEvent representing the bundle state
change.public java.lang.String getMimeType(java.lang.String name)
getMimeType in interface JcrContentHelpername - the name of the file to get the mimeType for
protected void createRepositoryPath(javax.jcr.Session writerSession,
java.lang.String repositoryPath)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
protected org.apache.sling.jcr.api.SlingRepository getRepository()
public java.util.Map<java.lang.String,java.lang.Object> getBundleContentInfo(javax.jcr.Session session,
org.osgi.framework.Bundle bundle,
boolean create)
throws javax.jcr.RepositoryException
session - bundle -
javax.jcr.RepositoryException
public void unlockBundleContentInfo(javax.jcr.Session session,
org.osgi.framework.Bundle bundle,
boolean contentLoaded,
java.util.List<java.lang.String> createdNodes)
throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public void contentIsUninstalled(javax.jcr.Session session,
org.osgi.framework.Bundle bundle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||