Bug 38833 - Refactor all classes to not depend on java.io.File
Summary: Refactor all classes to not depend on java.io.File
Status: NEW
Alias: None
Product: Lenya
Classification: Unclassified
Component: Miscellaneous (show other bugs)
Version: Trunk
Hardware: Other other
: P2 normal
Target Milestone: 2.0.1
Assignee: Lenya Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 18:10 UTC by Thorsten Scherler
Modified: 2007-07-16 02:28 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thorsten Scherler 2006-03-02 18:10:01 UTC
For moving to jcr we need to refactor all code that depends on java.io.File.
***************************************************************************
Initial list:
***************************************************************************
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/cocoon/acting/RevisionControllerAction.java:146:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            File newFile = srcDoc.getFile();
                                 ^
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/cocoon/acting/RevisionControllerAction.java:150:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            this.filename = document.getFile().getCanonicalPath();
                                    ^
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/cocoon/components/modules/input/PageEnvelopeModule.java:97:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
                    value = document.getFile();
                                    ^
                    value = document.getExtension();
                                    ^
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/cocoon/flow/FlowHelperImpl.java:183:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
        final String filename = pageEnvelope.getDocument()
                                                        ^
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/publication/util/DocumentReferencesHelper.java:223:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            String[] internalLinks =
Grep.findPattern(this.pageEnvelope.getDocument().getFile(),
                                                      ^
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/publication/util/DocumentReferencesHelper.java:226:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            String[] internalLinksLanguages =
Grep.findPattern(this.pageEnvelope.getDocument()
                                                               ^
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/site/usecases/Revisions.java:56:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            final String filename = getSourceDocument().getFile().getCanonicalPath()
                                                     ^
/home/thorsten/apache/lenya-trunk/src/java/org/apache/lenya/cms/site/usecases/Rollback.java:93:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
        String filename = document.getFile().getCanonicalPath();
                                  ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/cms/usecases/webdav/FilePropfind.java:77:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            String filename = doc.getFile().getCanonicalPath();
                                 ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/cms/usecases/webdav/Propfind.java:118:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
                    String filename = documents[i].getFile().getCanonicalPath();
                                               ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/cms/usecases/webdav/Propfind.java:136:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
                            filename = langDoc.getFile().getCanonicalPath();
                                              ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java:169:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            doms[i] = DocumentHelper.readDocument(docs[i].getFile());
                                                      ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java:175:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            DocumentHelper.writeDocument(doms[i], docs[i].getFile());
                                                      ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java:180:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
        org.w3c.dom.Document dom = DocumentHelper.readDocument(doc.getFile());
                                                                  ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/cms/workflow/usecases/Publish.java:213:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
        DocumentHelper.writeDocument(dom, doc.getFile());
                                             ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/defaultpub/cms/usecases/webdav/FilePropfind.java:78:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
            String filename = doc.getFile().getCanonicalPath();
                                 ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/defaultpub/cms/usecases/webdav/Propfind.java:119:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
                    String filename = documents[i].getFile().getCanonicalPath();
                                               ^
/home/thorsten/apache/lenya-trunk/build/lenya/java/src/org/apache/lenya/defaultpub/cms/usecases/webdav/Propfind.java:137:
cannot resolve symbol
symbol  : method getFile ()
location: interface org.apache.lenya.cms.publication.Document
                            filename = langDoc.getFile().getCanonicalPath();
                                              ^
18 errors
Comment 1 Andreas Hartmann 2006-06-07 15:40:24 UTC
What's the status of this bug?