|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary
java.util.Hashtable
java.util.Properties
org.apache.jackrabbit.server.io.AbstractContext
org.apache.jackrabbit.server.io.ImportContext
This Class implements an import context which is passed to the respective import commands. An import command can alter the current node for creating a recursive structure, thus is can lead to errors, if the configuration is not done properly. A import command should clear the input stream, after having processed it.
Please note, that this import context lacks an explicitDavResource
member. Currently, this
information is not needed in any of the known import commands but leaves this
I/O framework more generic.
Nested Class Summary |
Nested classes inherited from class java.util.Map |
Map.Entry |
Field Summary |
Fields inherited from class java.util.Properties |
defaults |
Constructor Summary | |
ImportContext(ImportContext base,
Node importRoot)
Creats a new import context with the given root node and property defaults. |
|
ImportContext(Node importRoot)
Creates a new import context with the given root node |
Method Summary | |
ImportContext |
createSubContext(Node importRoot)
Creates a new sub context which bases on this contexts properties |
String |
getContentLanguage()
Returns the content language or null |
String |
getContentType()
Returns the content type of the resource to be imported or null, if no contenttype was defined. |
Node |
getImportRoot()
Returns the import root of the resource to import. |
InputStream |
getInputStream()
Retruns the input stream of the resource to import. |
long |
getModificationTime()
Returns the modification time of the resource |
Node |
getNode()
Returns the current parent node of the resource to import. |
String |
getSystemId()
Returns the system id of the resource to be imported. |
void |
setContentLanguage(String contentLanguage)
Sets the content language. |
void |
setContentType(String contentType)
Sets the content type of the resource. |
void |
setInputStream(InputStream inputStream)
Sets the inpurt stream of the resource to import. |
void |
setModificationTime(long modificationTime)
Sets the modification time of the resource |
void |
setNode(Node node)
Sets the current parent node of the resource to import. |
void |
setSystemId(String systemId)
sets the system id of this resource. |
Methods inherited from class org.apache.jackrabbit.server.io.AbstractContext |
enableCommand, enableCommand, getProperty, getProperty, isCommandEnabled |
Methods inherited from class java.util.Properties |
getProperty, list, list, load, propertyNames, save, setProperty, store |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Constructor Detail |
public ImportContext(Node importRoot)
importRoot
- the import root nodepublic ImportContext(ImportContext base, Node importRoot)
base
- importRoot
- Method Detail |
public ImportContext createSubContext(Node importRoot)
importRoot
-
public InputStream getInputStream()
public void setInputStream(InputStream inputStream)
null
.
inputStream
- the input streampublic Node getImportRoot()
public Node getNode()
public void setNode(Node node)
node
- public String getSystemId()
public void setSystemId(String systemId)
systemId
- public String getContentType()
public void setContentType(String contentType)
contentType
- the content type.public String getContentLanguage()
null
public void setContentLanguage(String contentLanguage)
contentLanguage
- public long getModificationTime()
public void setModificationTime(long modificationTime)
modificationTime
- the modification time
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |