All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wte4j.ui.shared.TemplateServiceAsync Maven / Gradle / Ivy

The newest version!
package org.wte4j.ui.shared;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

public interface TemplateServiceAsync
{

    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void getTemplates( AsyncCallback> callback );


    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void lockTemplate( org.wte4j.ui.shared.TemplateDto template, AsyncCallback callback );


    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void unlockTemplate( org.wte4j.ui.shared.TemplateDto template, AsyncCallback callback );


    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void deleteTemplate( org.wte4j.ui.shared.TemplateDto template, AsyncCallback callback );


    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void listModelElements( java.lang.String inputType, java.util.Map properties, AsyncCallback> callback );


    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void listUniqueContentIds( java.lang.String pathToFile, AsyncCallback> callback );


    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void saveTemplateData( org.wte4j.ui.shared.TemplateDto templateDto, java.lang.String uploadedTemplate, AsyncCallback callback );


    /**
     * GWT-RPC service  asynchronous (client-side) interface
     * @see org.wte4j.ui.shared.TemplateService
     */
    void createTemplate( org.wte4j.ui.shared.TemplateDto newTemplate, java.lang.String templateFile, AsyncCallback callback );


    /**
     * Utility class to get the RPC Async interface from client-side code
     */
    public static final class Util 
    { 
        private static TemplateServiceAsync instance;

        public static final TemplateServiceAsync getInstance()
        {
            if ( instance == null )
            {
                instance = (TemplateServiceAsync) GWT.create( TemplateService.class );
            }
            return instance;
        }

        private Util()
        {
            // Utility class should not be instantiated
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy