Package tahrir.ui

Examples of tahrir.ui.IdentityModifiedEvent


            for(String label: labelsOfUser.get(identity)){
            removeIdentityFromLabel(identity, label);
            }
            labelsOfUser.remove(identity);
            logger.debug("Identity removed.");
            eventBus.post(new IdentityModifiedEvent(identity, IdentityModifiedEvent.IdentityModificationType.DELETE));
            updateIdentityInFile();
        }
        else{
            //adds to the already existing identity if the label isn't present.
                logger.debug("Identity doesn't exist.");
View Full Code Here


            labels.add(label);
            labelsOfUser.put(identity, labels);
            logger.debug("New identity created and label added.");
            addIdentityToUsersWithNickname(identity);
            updateUsersInLabel(identity, label);
            this.eventBus.post(new IdentityModifiedEvent(identity, IdentityModifiedEvent.IdentityModificationType.ADD));
            updateIdentityInFile();
        }
        else{
            //adds to the already existing identity if the label isn't present.
            if(((labelsOfUser.get(identity)).contains(label))){
View Full Code Here

        if(labelsOfUser.containsKey(identity)){
        if(labelsOfUser.get(identity).contains(label)){
            labelsOfUser.get(identity).remove(label);
            logger.debug("Label removed from identity.");
            removeIdentityFromLabel(identity, label);
            eventBus.post(new IdentityModifiedEvent(identity, IdentityModifiedEvent.IdentityModificationType.DELETE));
            updateIdentityInFile();
        }

        else{
            logger.debug("The identity doesn't contain the label.");
View Full Code Here

    public void removeIdentityFromNick(UserIdentity identity) {
        if(usersWithNickname.containsKey(identity.getNick())){
            logger.debug("Nickname exists, removing identity from it.");
            usersWithNickname.get(identity.getNick()).remove(identity);
            eventBus.post(new IdentityModifiedEvent(identity, IdentityModifiedEvent.IdentityModificationType.DELETE));
        }
        else{
            logger.debug("Nickname isn't present so identity is also not present.");
        }
    }
View Full Code Here

TOP

Related Classes of tahrir.ui.IdentityModifiedEvent

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.