|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.jcr.contentloader.internal.BaseImportLoader
org.apache.sling.jcr.contentloader.internal.DefaultContentImporter
public class DefaultContentImporter
The DefaultContentImporter
is the default implementation of the
ContentImporter service providing the following functionality:
Field Summary |
---|
Fields inherited from class org.apache.sling.jcr.contentloader.internal.BaseImportLoader |
---|
EXT_JAR, EXT_JCR_XML, EXT_JSON, EXT_XML, EXT_ZIP |
Constructor Summary | |
---|---|
DefaultContentImporter()
|
Method Summary | |
---|---|
protected void |
activate(org.osgi.service.component.ComponentContext componentContext)
Activates this component, called by SCR before registering as a service |
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 |
String |
getMimeType(String name)
Returns the MIME type from the MimeTypeService for the given name |
void |
importContent(javax.jcr.Node parent,
String name,
InputStream contentStream,
ImportOptions importOptions,
ContentImportListener importListener)
Import content into the repository by parsing the provided content stream. |
Methods inherited from class org.apache.sling.jcr.contentloader.internal.BaseImportLoader |
---|
dispose |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultContentImporter()
Method Detail |
---|
public void importContent(javax.jcr.Node parent, String name, InputStream contentStream, ImportOptions importOptions, ContentImportListener importListener) throws javax.jcr.RepositoryException, IOException
ContentImporter
importContent
in interface ContentImporter
parent
- the root node for the imported contentname
- the name of the imported content. The file extension determines the content typecontentStream
- the content stream to be importedimportOptions
- (optional) additional options to control the importimportListener
- (optional) listener to receive callbacks for each change in the import
javax.jcr.RepositoryException
IOException
public String digestPassword(String pwd) throws IllegalArgumentException
JcrContentHelper
digestPassword
in interface JcrContentHelper
pwd
- the password to digest
IllegalArgumentException
public String getMimeType(String name)
JcrContentHelper
getMimeType
in interface JcrContentHelper
name
- the name of the file to get the mimeType forprotected void activate(org.osgi.service.component.ComponentContext componentContext)
protected void deactivate(org.osgi.service.component.ComponentContext componentContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |