Package org.jitterbit.integration.client.server.ui.user

Examples of org.jitterbit.integration.client.server.ui.user.GroupUi


                        + ex.getMessage(), ex);
    }
   
    @SuppressWarnings("unchecked")
    private boolean handleUserDrop(TransferSupport support) throws Exception {
        GroupUi groupUi = getDropDestination(support, TransferableUsers.FLAVOR);
        if (groupUi != null) {
            Transferable t = support.getTransferable();
            List<UserUi> users = (List<UserUi>) t.getTransferData(TransferableUsers.FLAVOR);
            for (UserUi u : users) {
                groupUi.getGroup().addMember(u.getUser());
            }
            return true;
        }
        return false;
    }
View Full Code Here


        return false;
    }
   
    @SuppressWarnings("unchecked")
    private boolean handleGroupMemberDrop(TransferSupport support) throws Exception {
        GroupUi groupUi = getDropDestination(support, TransferableGroupMembers.FLAVOR);
        if (groupUi != null) {
            Transferable t = support.getTransferable();
            List<GroupMember> members = (List<GroupMember>) t.getTransferData(TransferableGroupMembers.FLAVOR);
            for (GroupMember member : members) {
                member.leaveGroup();
                groupUi.getGroup().addMember(member.getUser());
            }
            return true;
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.server.ui.user.GroupUi

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.