Examples of CGPublish


Examples of com.sun.star.wizards.web.data.CGPublish

     * updates the ui....
     */
    private CGPublish setPublishUrl(String publisher, String url, int number) {
        if (url == null)
            return null;
        CGPublish p = getPublisher(publisher);
        p.cp_URL = url;
        p.cp_Publish = true;
        updatePublishUI(number);
        p.overwriteApproved = true;
        return p;
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

     */
    private boolean publishTargetApproved() {
        boolean result = true;
        // 1. check local publish target
       
        CGPublish p = getPublisher(LOCAL_PUBLISHER);
       
        // should publish ?
        if (p.cp_Publish) {
            String path = getFileAccess().getPath(p.url, null);
            // target exists?
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

            return false;
        }
    }

    private String targetStringFor(String publisher) {
        CGPublish p = getPublisher(publisher);
        if (p.cp_Publish)
                return "\n" + getFileAccess().getPath(p.cp_URL,null);
        else return "";
    }
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

     */
    public void finishWizard(boolean exitOnCreate_) {
       
        exitOnCreate = exitOnCreate_;
       
        /**
         * First I check if ftp password was set, if not - the ftp dialog pops up...
         * This may happen when a session is loaded, since the
         * session saves the ftp url and username, but not the password.
         */
        final CGPublish p = getPublisher(FTP_PUBLISHER);
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

     * popped up when clicking "Create".
     *
     */
    private void finishWizard2() {     
       
        CGPublish p = getPublisher(LOCAL_PUBLISHER);
        p.url = p.cp_URL;
       
        /*
         * zip publisher is using another url form...
         */
 
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

     * @return false if this publisher is not active, or, if it
     * active, returns true if the url is not empty...
     * if the url is empty, throws an exception
     */
    private boolean checkPublish(String s, Object text, String property) {
        CGPublish p = getPublisher(s);
        if (p.cp_Publish) {
            String url = (String)Helper.getUnoPropertyValue(getModel(text),property);
            if ((url == null) || (url.equals("")))
                throw new IllegalArgumentException();
            else return true;
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

            ConfigSet set = settings.cp_DefaultSession.cp_Publishing;

            // now if path variables are used in publisher pathes, they
            // are getting replaced here...
            for (int i = 0; i<set.getSize(); i++) {
                CGPublish p =(CGPublish)set.getElementAt(i);
                p.cp_URL = substitute(p.cp_URL);
            }

            // initialize the settings.
            settings.configure(xMSF);
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

     */
    public static void main(String args[]) {
        String ConnectStr = "uno:socket,host=localhost,port=8100;urp,negotiate=0,forcesynchronous=1;StarOffice.NamingService"; //localhost  ;Lo-1.Germany.sun.com; 10.16.65.155
        try {
            XMultiServiceFactory xLocMSF = Desktop.connect(ConnectStr);
            CGPublish p = new CGPublish();
            p.cp_URL = "ftp://tv-1/Folder";
            p.cp_Username = "ronftp";
            p.password = "ronftp";

            FTPDialog dialog = new FTPDialog(xLocMSF, p);
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

       
        boolean result = true;
       
        for (int i = 0; i < set.getSize(); i++) {
           
            CGPublish p = (CGPublish)set.getElementAt(i);
           
            if (p.cp_Publish) {
           
                String key = (String)set.getKey(p);
                task.setSubtaskName(key);
View Full Code Here

Examples of com.sun.star.wizards.web.data.CGPublish

    {
        if (url == null)
        {
            return null;
        }
        CGPublish p = getPublisher(publisher);
        p.cp_URL = url;
        p.cp_Publish = true;
        updatePublishUI(number);
        p.overwriteApproved = true;
        return p;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.