Package jp.go.aist.sot.client.utils

Examples of jp.go.aist.sot.client.utils.SignOnUserProperty


        setupProperty();
    }

    private void setupProperty() {
        try {
            SignOnUserProperty prop = propertyController.getSignOnUserProperty();

            long milliSec = prop.getCertTermOfValidity();
            int certTerm[] = { -1, -1};

            CertTermUtil.calcDefaultCertTerm(milliSec, certTerm);

            windowController.daysChanges(
                    String.valueOf(certTerm[CertTermUtil.CERTTERM_DAY]));
            windowController.hoursChanges(
                    String.valueOf(certTerm[CertTermUtil.CERTTERM_HOURS]));
            windowController.openBrowserChanges(prop.isOpenBrowser());
            windowController.legacyProxyChanges(prop.isLegacyProxy());
            windowController.setHostList(prop.getHostList());
        } catch (SignOnException e) {
            Log.error(CLASS_NAME, "", e);
        }
    }
View Full Code Here


            Log.error(CLASS_NAME, "", e);
        }
    }

    private void saveProperty() throws SignOnException {
        SignOnUserProperty prop = propertyController.getSignOnUserProperty();

        long certTerm = CertTermUtil.checkCertTerm(windowController.getDays(),
                windowController.getHours());
        boolean legacy = windowController.isLegacyProxy();
        boolean open = windowController.isOpenBrowser();

        prop.setCertTermOfValidity(certTerm);
        prop.setLegacyProxy(legacy);
        prop.setOpenBrowser(open);
        prop.setHostList(windowController.getHostList());
        propertyController.store();
    }
View Full Code Here

        windowController.setUserCertList((HashMap) storage.getSubjectMap(false));
    }

    private void setupProperty() {
        try {
            SignOnUserProperty prop = propertyController.getSignOnUserProperty();

            long milliSec = prop.getCertTermOfValidity();
            int certTerm[] = { -1, -1};

            CertTermUtil.calcDefaultCertTerm(milliSec, certTerm);

            windowController.daysChanges(
                    String.valueOf(certTerm[CertTermUtil.CERTTERM_DAY]));
            windowController.hoursChanges(
                    String.valueOf(certTerm[CertTermUtil.CERTTERM_HOURS]));
            windowController.openBrowserChanges(prop.isOpenBrowser());
            List list = prop.getHostList();           

            windowController.setHostList(list);
        } catch (SignOnException e) {
            Log.error(CLASS_NAME, "", e);
            DialogFactory.showErrMsg(getParent(), e.getMessage());
View Full Code Here

TOP

Related Classes of jp.go.aist.sot.client.utils.SignOnUserProperty

Copyright © 2018 www.massapicom. 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.