Package net.webpasswordsafe.common.model

Examples of net.webpasswordsafe.common.model.TemplateDetail


    private void doAdd()
    {
        SubjectData data = comboSubjects.getValue();
        if (null != data)
        {
            permissionStore.add(new TemplateData(new TemplateDetail((Subject)data.get(Constants.SUBJECT), AccessLevel.READ)));
        }
    }
View Full Code Here


            template.setName(Utils.safeString(templateNameTextBox.getValue()));
            template.setShared(chkbxShared.getValue());
            template.clearDetails();
            for (TemplateData data : permissionStore.getModels())
            {
                TemplateDetail templateDetail = (TemplateDetail)data.get(Constants.TEMPLATEDETAIL);
                String newAccessLevel = ((AccessLevel)data.get(Constants.ACCESSLEVEL)).name();
                if (!newAccessLevel.equals(templateDetail.getAccessLevel()))
                {
                    // if user changed the access level value in the GUI, treat it like a new permission
                    templateDetail = new TemplateDetail(templateDetail.getSubject(), AccessLevel.valueOf(newAccessLevel));
                }
                template.addDetail(templateDetail);
            }

            final AsyncCallback<Boolean> callbackCheck = new AsyncCallback<Boolean>()
View Full Code Here

TOP

Related Classes of net.webpasswordsafe.common.model.TemplateDetail

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.