|
||||||||||
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
public class ContentLoaderService
The ContentLoaderService
is the service
providing the following functionality:
Field Summary | |
---|---|
static String |
BUNDLE_CONTENT_NODE
|
static String |
PROPERTY_CONTENT_LOADED
|
static String |
PROPERTY_UNINSTALL_PATHS
|
protected SlingSettingsService |
settingsService
|
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,
String repositoryPath)
|
protected void |
deactivate(org.osgi.service.component.ComponentContext componentContext)
Deativates this component, called by SCR to take out of service |
String |
digestPassword(String pwd)
Digest the given password using the configured digest algorithm |
Map<String,Object> |
getBundleContentInfo(javax.jcr.Session session,
org.osgi.framework.Bundle bundle,
boolean create)
Return the bundle content info and make an exclusive lock. |
String |
getMimeType(String name)
Returns the MIME type from the MimeTypeService for the given name |
protected SlingRepository |
getRepository()
Returns the JCR repository used by this service. |
void |
unlockBundleContentInfo(javax.jcr.Session session,
org.osgi.framework.Bundle bundle,
boolean contentLoaded,
List<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 String PROPERTY_CONTENT_LOADED
public static final String PROPERTY_UNINSTALL_PATHS
public static final String BUNDLE_CONTENT_NODE
protected SlingSettingsService settingsService
Constructor Detail |
---|
public ContentLoaderService()
Method Detail |
---|
public void bundleChanged(org.osgi.framework.BundleEvent event)
bundleChanged
in interface org.osgi.framework.BundleListener
event
- The BundleEvent
representing the bundle state
change.public String getMimeType(String name)
getMimeType
in interface JcrContentHelper
name
- the name of the file to get the mimeType forprotected void createRepositoryPath(javax.jcr.Session writerSession, String repositoryPath) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public String digestPassword(String pwd) throws IllegalArgumentException
digestPassword
in interface JcrContentHelper
pwd
- the value to digest
IllegalArgumentException
protected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
protected SlingRepository getRepository()
public Map<String,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, List<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 |