Examples of OKMAuthService


Examples of com.openkm.ws.client.OKMAuthService

    // End of variables declaration//GEN-END:variables

    public void initServices(String host) throws OKMException {
        try {
            this.host = host;
            authService = new OKMAuthService(new URL(host + "/OKMAuth?wsdl"), AuthServiceName);
            repositoryService = new OKMRepositoryService(new URL(host + "/OKMRepository?wsdl"), RepositoryServiceName);
            folderService = new OKMFolderService(new URL(host + "/OKMFolder?wsdl"), FolderServiceName);
            documentService = new OKMDocumentService(new URL(host + "/OKMDocument?wsdl"), DocumentServiceName);
        } catch (Exception ex) {
            throw new OKMException(ex);
View Full Code Here

Examples of com.openkm.ws.client.OKMAuthService

    // End of variables declaration//GEN-END:variables

    public void initServices(String host) throws OKMException {
        try {
            this.host = host;
            authService = new OKMAuthService(new URL(host + "/OKMAuth?wsdl"), AuthServiceName);
            repositoryService = new OKMRepositoryService(new URL(host + "/OKMRepository?wsdl"), RepositoryServiceName);
            folderService = new OKMFolderService(new URL(host + "/OKMFolder?wsdl"), FolderServiceName);
        } catch (Exception ex) {
            throw new OKMException(ex);
        }
View Full Code Here

Examples of com.openkm.ws.client.OKMAuthService

    private static QName AuthServiceName = new QName("http://endpoint.ws.openkm.com/", "OKMAuthService");
    private static QName DocumentServiceName = new QName("http://endpoint.ws.openkm.com/", "OKMDocumentService");

    public static void create(String host, String username, String password, OKMDocumentBean document) throws OKMException {
        String token = "";
        OKMAuthService authService = null;
        OKMDocumentService docService = null;
        OKMAuth okmAuth = null;
        OKMDocument okmDocument = null;
        Document doc = new Document();

        try {
            authService = new OKMAuthService(new URL(host + "/OKMAuth?wsdl"), AuthServiceName);
            docService = new OKMDocumentService(new URL(host + "/OKMDocument?wsdl"), DocumentServiceName);
            okmAuth = authService.getOKMAuthPort();
            okmDocument = docService.getOKMDocumentPort();
            BindingProvider bpAuth = (BindingProvider) okmAuth;
            BindingProvider bpDocument= (BindingProvider) okmDocument;
            bpAuth.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMAuth");
            bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument");
View Full Code Here

Examples of com.openkm.ws.client.OKMAuthService

        }
    }

    public static OKMDocumentBean chekckout(String host, String username, String password, Document doc, String directoryPath) throws OKMException {
        String token = "";
        OKMAuthService authService = null;
        OKMDocumentService docService = null;
        OKMAuth okmAuth = null;
        OKMDocument okmDocument = null;
        OKMDocumentBean okmDocumentBean = new OKMDocumentBean();

        try {
            authService = new OKMAuthService(new URL(host + "/OKMAuth?wsdl"), AuthServiceName);
            docService = new OKMDocumentService(new URL(host + "/OKMDocument?wsdl"), DocumentServiceName);
            okmAuth = authService.getOKMAuthPort();
            okmDocument = docService.getOKMDocumentPort();
            BindingProvider bpAuth = (BindingProvider) okmAuth;
            BindingProvider bpDocument= (BindingProvider) okmDocument;
            bpAuth.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMAuth");
            bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument");
View Full Code Here

Examples of com.openkm.ws.client.OKMAuthService

        return okmDocumentBean;
    }

    public static void cancelCheckout(String host, String username, String password, OKMDocumentBean document) throws OKMException {
        String token = "";
        OKMAuthService authService = null;
        OKMDocumentService docService = null;
        OKMAuth okmAuth = null;
        OKMDocument okmDocument = null;

        try {
            authService = new OKMAuthService(new URL(host + "/OKMAuth?wsdl"), AuthServiceName);
            docService = new OKMDocumentService(new URL(host + "/OKMDocument?wsdl"), DocumentServiceName);
            okmAuth = authService.getOKMAuthPort();
            okmDocument = docService.getOKMDocumentPort();
            BindingProvider bpAuth = (BindingProvider) okmAuth;
            BindingProvider bpDocument= (BindingProvider) okmDocument;
            bpAuth.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMAuth");
            bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument");
View Full Code Here

Examples of com.openkm.ws.client.OKMAuthService

        }
    }

    public static void checkin(String host, String username, String password, OKMDocumentBean document) throws OKMException {
        String token = "";
        OKMAuthService authService = null;
        OKMDocumentService docService = null;
        OKMAuth okmAuth = null;
        OKMDocument okmDocument = null;

        try {
            authService = new OKMAuthService(new URL(host + "/OKMAuth?wsdl"), AuthServiceName);
            docService = new OKMDocumentService(new URL(host + "/OKMDocument?wsdl"), DocumentServiceName);
            okmAuth = authService.getOKMAuthPort();
            okmDocument = docService.getOKMDocumentPort();
            BindingProvider bpAuth = (BindingProvider) okmAuth;
            BindingProvider bpDocument= (BindingProvider) okmDocument;
            bpAuth.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMAuth");
            bpDocument.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, host+"/OKMDocument");
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.