Package edu.stanford.bmir.protege.web.client.ui.ontology.accesspolicy.domain

Examples of edu.stanford.bmir.protege.web.client.ui.ontology.accesspolicy.domain.Invitation


    private void sendEmailInvitation(HttpServletRequest request, ProjectSharingSettings projectSharingSettings, UserSharingSetting userSharingSetting) {
        UserId userId = userSharingSetting.getUserId();
        // Email invitation
        List<Invitation> invitations = new ArrayList<Invitation>();
        final Invitation invitation = new Invitation();
        invitation.setEmailId(userId.getUserName());
        invitation.setWriter(userSharingSetting.getSharingSetting() == SharingSetting.EDIT);
        invitations.add(invitation);
        String baseURL = request.getHeader("referer");

        AccessPolicyManager.get().createTemporaryAccountForInvitation(projectSharingSettings.getProjectId(), baseURL, invitations);
    }
View Full Code Here


        for (int i = 0; i < inviteeListFlexTable.getRowCount(); i++) {
            Widget inviteeEmailIdTextBox = inviteeListFlexTable.getWidget(i, 0);
            if (inviteeEmailIdTextBox instanceof TextBox
                    && isValidEmail(((TextBox) inviteeEmailIdTextBox).getText().trim())) {
                try {
                    Invitation invitation = new Invitation();
                    invitation.setEmailId(((TextBox) inviteeEmailIdTextBox).getText().trim());
                    Widget readerRButton = inviteeListFlexTable.getWidget(i, 1);
                    Widget writerRButton = inviteeListFlexTable.getWidget(i, 2);
                    if (readerRButton instanceof RadioButton && writerRButton instanceof RadioButton) {
                        invitation.setWriter(((RadioButton) writerRButton).getValue());
                        invitations.add(invitation);
                    }
                } catch (Exception e) {
                    GWT.log("Exception in reading invitation list", e);
                }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.client.ui.ontology.accesspolicy.domain.Invitation

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.