diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/web/data/CGPublish.java')
-rw-r--r-- | wizards/com/sun/star/wizards/web/data/CGPublish.java | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/wizards/com/sun/star/wizards/web/data/CGPublish.java b/wizards/com/sun/star/wizards/web/data/CGPublish.java deleted file mode 100644 index 4febdb8d9343..000000000000 --- a/wizards/com/sun/star/wizards/web/data/CGPublish.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ -package com.sun.star.wizards.web.data; - -import com.sun.star.wizards.common.ConfigGroup; -import com.sun.star.wizards.common.PropertyNames; - -/** - * - * A Class which describes the publishing arguments - * in a session. - * Each session can contain different publishers, which are configured - * through such a CGPublish object. - */ -public class CGPublish extends ConfigGroup -{ - - public boolean cp_Publish; - public String cp_URL; - public String cp_Username; - public String password; - /** - * cp_URL is the url given by the user - * 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; - /** - * 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 path - */ - 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() - { - try - { - return ((CGSettings) this.root).getFileAccess().getPath(cp_URL, null); - } - catch (Exception e) - { - e.printStackTrace(); - return PropertyNames.EMPTY_STRING; - } - } - - private String ftpURL() - { - return "ftp://" + cp_Username + - ((password != null && password.length() > 0) ? ":" + password : PropertyNames.EMPTY_STRING) + "@" + cp_URL.substring(7); - } -} |