Package de.fu_berlin.inf.dpp.activities.business

Examples of de.fu_berlin.inf.dpp.activities.business.PermissionActivity


        if (user.isHost()) {

            Utils.runSafeSWTSync(log, new Runnable() {
                public void run() {
                    activityCreated(new PermissionActivity(getLocalUser(),
                        user, newPermission));

                    setPermission(user, newPermission);
                }
            });

        } else {
            StartHandle startHandle = stopManager.stop(user,
                Messages.SarosSession_performing_permission_change, progress);

            Utils.runSafeSWTSync(log, new Runnable() {
                public void run() {
                    activityCreated(new PermissionActivity(getLocalUser(),
                        user, newPermission));

                    setPermission(user, newPermission);
                }
            });
View Full Code Here


     *
     * @see de.fu_berlin.inf.dpp.IActivityProvider
     */
    public void exec(IActivity activity) {
        if (activity instanceof PermissionActivity) {
            PermissionActivity permissionActivity = (PermissionActivity) activity;
            User user = permissionActivity.getAffectedUser();
            if (!user.isInSarosSession()) {
                throw new IllegalArgumentException(MessageFormat.format(
                    Messages.PermissionManager_buddy_no_participant,
                    user));
            }
            Permission permission = permissionActivity.getPermission();
            this.sarosSession.setPermission(user, permission);
        }
    }
View Full Code Here

        return "PermissionActivityDataObject(user:" + this.getAffectedUser()
            + ",new permission:" + this.getPermission() + ")";
    }

    public IActivity getActivity(ISarosSession sarosSession) {
        return new PermissionActivity(sarosSession.getUser(source),
            sarosSession.getUser(affectedUser), permission);
    }
View Full Code Here

TOP

Related Classes of de.fu_berlin.inf.dpp.activities.business.PermissionActivity

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.