diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-09-08 13:18:59 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-09-08 13:18:59 +0000 |
commit | 64560f340953ceb9f3b982c0834b4ba8ff53e48f (patch) | |
tree | fc4edcf089f7f9584c98a029923747fa0d8ad4fc | |
parent | 5d17ef9d63d074582e9dff9c11962b5a13c9be27 (diff) |
INTEGRATION: CWS qwizards2 (1.2.2); FILE MERGED
2004/08/20 14:47:15 tv 1.2.2.3: cehcked in for Ron
Issue number:
Submitted by:
Reviewed by:
2004/08/12 14:25:06 rpiterman 1.2.2.2: changed getURL method to use a FileAccess method instead of
JavaTools, to convert URL to Path
Issue number:
Submitted by:
Reviewed by:
2004/07/19 13:31:03 rpiterman 1.2.2.1: WebWizard spec revision
implemented the setURL method
-rw-r--r-- | wizards/com/sun/star/wizards/web/data/CGPublish.java | 36 |
1 files changed, 29 insertions, 7 deletions
diff --git a/wizards/com/sun/star/wizards/web/data/CGPublish.java b/wizards/com/sun/star/wizards/web/data/CGPublish.java index 549903ecaf35..8920a44f2208 100644 --- a/wizards/com/sun/star/wizards/web/data/CGPublish.java +++ b/wizards/com/sun/star/wizards/web/data/CGPublish.java @@ -2,9 +2,9 @@ * * $RCSfile: CGPublish.java,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: kz $ $Date: 2004-05-19 13:18:10 $ + * last change: $Author: obo $ $Date: 2004-09-08 14:18:59 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -80,19 +80,41 @@ public class CGPublish extends ConfigGroup { /** * cp_URL is the url given by the user - * for this publisher. + * for this publisher. (in UCB URL form) * This one will be edited to result the "url" * field, which is the true url, ucb uses to publish. + * It is used for example to add ftp username and password, or zip url */ public String url; - public void setURL(String url) { - throw new NullPointerException("CGPublish.setURL not allowed."); - //cp_URL = url; + + /** + * if the user approved overwriting files in this publisher target + */ + public boolean overwriteApproved; + + /** + * here I get an URL from user input, and parse it to + * a UCB url... + * @param url + */ + public void setURL(String path) { + try { + this.cp_URL = ((CGSettings)this.root).getFileAccess().getURL(path); + overwriteApproved = false; + } + catch (Exception ex) { + ex.printStackTrace(); + } } public String getURL() { - return JavaTools.convertfromURLNotation(cp_URL); + try { + return ((CGSettings)this.root).getFileAccess().getPath(cp_URL, null ); + } catch (Exception e) { + e.printStackTrace(); + return ""; + } } private String ftpURL() { |