|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- type which this transformer reads and writespublic interface ITransformer<T extends IRepositoryFileData>
A pluggable method for reading and writing IRepositoryFileData
implementations.
Method Summary | |
---|---|
boolean |
canRead(String contentType,
Class<? extends IRepositoryFileData> clazz)
Returns true if this transformer can read data for files with the given content type and return the data in
the given form. |
boolean |
canWrite(Class<? extends IRepositoryFileData> clazz)
Returns true if this transformer can write data of the form clazz . |
void |
createContentNode(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
T data,
javax.jcr.Node fileNode)
Creates a JCR node subtree representing the given content . |
T |
fromContentNode(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
javax.jcr.Node fileNode)
Transforms a JCR node subtree into an IRepositoryFileData . |
String |
getContentType()
Returns the content type string for this transformer. |
void |
updateContentNode(javax.jcr.Session session,
PentahoJcrConstants pentahoJcrConstants,
T data,
javax.jcr.Node fileNode)
Updates a JCR node subtree representing the given content . |
Method Detail |
---|
boolean canRead(String contentType, Class<? extends IRepositoryFileData> clazz)
true
if this transformer can read data for files with the given content type and return the data in
the given form.
contentType
- content type to checkclazz
- class to check
true
if this transformer can read data for files with the given content type and return the data in
the given formboolean canWrite(Class<? extends IRepositoryFileData> clazz)
true
if this transformer can write data of the form clazz
.
clazz
- class to check
true
if this transformer can write data of the form clazz
String getContentType()
T fromContentNode(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, javax.jcr.Node fileNode) throws javax.jcr.RepositoryException
IRepositoryFileData
.
session
- JCR sessionpentahoJcrConstants
- constantsfileNode
- node of type pho_nt:pentahoFile or pho_nt:pentahoLinkedFile
IRepositoryFileData
instance
javax.jcr.RepositoryException
- if anything goes wrongvoid createContentNode(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, T data, javax.jcr.Node fileNode) throws javax.jcr.RepositoryException
content
.
session
- JCR sessionpentahoJcrConstants
- constantsdata
- data to createfileNode
- node of type pho_nt:pentahoFile or pho_nt:pentahoLinkedFile
javax.jcr.RepositoryException
- if anything goes wrongvoid updateContentNode(javax.jcr.Session session, PentahoJcrConstants pentahoJcrConstants, T data, javax.jcr.Node fileNode) throws javax.jcr.RepositoryException
content
.
session
- JCR sessionpentahoJcrConstants
- constantsdata
- data to updatefileNode
- node of type pho_nt:pentahoFile or pho_nt:pentahoLinkedFile
javax.jcr.RepositoryException
- if anything goes wrong
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |