Package org.jboss.seam.examples.seamcrm.tools

Examples of org.jboss.seam.examples.seamcrm.tools.MultiLineStringBuilder.newLine()


    private void audit(Account orig, Account cur) {

        MultiLineStringBuilder sb = new MultiLineStringBuilder();

        if (AuditTools.isChanged(orig.getName(), cur.getName())) {
            sb.newLine(AuditTools.changedString("Name", orig.getName(), cur.getName()));
        }

        if (AuditTools.isChanged(orig.getType(), cur.getType())) {
            sb.newLine(AuditTools.changedString("Type", orig.getType(), cur.getType()));
        }     
View Full Code Here


        if (AuditTools.isChanged(orig.getName(), cur.getName())) {
            sb.newLine(AuditTools.changedString("Name", orig.getName(), cur.getName()));
        }

        if (AuditTools.isChanged(orig.getType(), cur.getType())) {
            sb.newLine(AuditTools.changedString("Type", orig.getType(), cur.getType()));
        }     

        if (sb.length() > 0) {
            eventLog.fire(new EventLog(cur, sb.toString()));
        }
View Full Code Here

    private void audit(Contact orig, Contact cur) {

        MultiLineStringBuilder sb = new MultiLineStringBuilder();

        if (AuditTools.isChanged(orig.getAccount(), cur.getAccount())) {
            sb.newLine(AuditTools.changedString("Account", orig.getAccount(), cur.getAccount()));
        }
       
        if (AuditTools.isChanged(orig.getFirstName(), cur.getFirstName())) {
            sb.newLine(AuditTools.changedString("First Name", orig.getFirstName(), cur.getFirstName()));
        }
View Full Code Here

        if (AuditTools.isChanged(orig.getAccount(), cur.getAccount())) {
            sb.newLine(AuditTools.changedString("Account", orig.getAccount(), cur.getAccount()));
        }
       
        if (AuditTools.isChanged(orig.getFirstName(), cur.getFirstName())) {
            sb.newLine(AuditTools.changedString("First Name", orig.getFirstName(), cur.getFirstName()));
        }
       
        if (AuditTools.isChanged(orig.getLastName(), cur.getLastName())) {
            sb.newLine(AuditTools.changedString("Last Name", orig.getLastName(), cur.getLastName()));
        }
View Full Code Here

        if (AuditTools.isChanged(orig.getFirstName(), cur.getFirstName())) {
            sb.newLine(AuditTools.changedString("First Name", orig.getFirstName(), cur.getFirstName()));
        }
       
        if (AuditTools.isChanged(orig.getLastName(), cur.getLastName())) {
            sb.newLine(AuditTools.changedString("Last Name", orig.getLastName(), cur.getLastName()));
        }
       
        if (AuditTools.isChanged(orig.getRoleName(), cur.getRoleName())) {
            sb.newLine(AuditTools.changedString("Role Name", orig.getRoleName(), cur.getRoleName()));
        }
View Full Code Here

        if (AuditTools.isChanged(orig.getLastName(), cur.getLastName())) {
            sb.newLine(AuditTools.changedString("Last Name", orig.getLastName(), cur.getLastName()));
        }
       
        if (AuditTools.isChanged(orig.getRoleName(), cur.getRoleName())) {
            sb.newLine(AuditTools.changedString("Role Name", orig.getRoleName(), cur.getRoleName()));
        }
       
        if (AuditTools.isChanged(orig.getEmailAddress(), cur.getEmailAddress())) {
            sb.newLine(AuditTools.changedString("Email Address", orig.getEmailAddress(), cur.getEmailAddress()));
        }
View Full Code Here

        if (AuditTools.isChanged(orig.getRoleName(), cur.getRoleName())) {
            sb.newLine(AuditTools.changedString("Role Name", orig.getRoleName(), cur.getRoleName()));
        }
       
        if (AuditTools.isChanged(orig.getEmailAddress(), cur.getEmailAddress())) {
            sb.newLine(AuditTools.changedString("Email Address", orig.getEmailAddress(), cur.getEmailAddress()));
        }
       
        if (AuditTools.isChanged(orig.getAlias(), cur.getAlias())) {
            sb.newLine(AuditTools.changedString("Alias", orig.getAlias(), cur.getAlias()));
        }
View Full Code Here

        if (AuditTools.isChanged(orig.getEmailAddress(), cur.getEmailAddress())) {
            sb.newLine(AuditTools.changedString("Email Address", orig.getEmailAddress(), cur.getEmailAddress()));
        }
       
        if (AuditTools.isChanged(orig.getAlias(), cur.getAlias())) {
            sb.newLine(AuditTools.changedString("Alias", orig.getAlias(), cur.getAlias()));
        }

        if (AuditTools.isChanged(orig.getTitle(), cur.getTitle())) {
            sb.newLine(AuditTools.changedString("Title", orig.getTitle(), cur.getTitle()));
        }
View Full Code Here

        if (AuditTools.isChanged(orig.getAlias(), cur.getAlias())) {
            sb.newLine(AuditTools.changedString("Alias", orig.getAlias(), cur.getAlias()));
        }

        if (AuditTools.isChanged(orig.getTitle(), cur.getTitle())) {
            sb.newLine(AuditTools.changedString("Title", orig.getTitle(), cur.getTitle()));
        }
       
        if (AuditTools.isChanged(orig.getHonorific(), cur.getHonorific())) {
            sb.newLine(AuditTools.changedString("Honorific", orig.getHonorific(), cur.getHonorific()));
        }
View Full Code Here

        if (AuditTools.isChanged(orig.getTitle(), cur.getTitle())) {
            sb.newLine(AuditTools.changedString("Title", orig.getTitle(), cur.getTitle()));
        }
       
        if (AuditTools.isChanged(orig.getHonorific(), cur.getHonorific())) {
            sb.newLine(AuditTools.changedString("Honorific", orig.getHonorific(), cur.getHonorific()));
        }
       
        if (AuditTools.isChanged(orig.getTimeZone(), cur.getTimeZone())) {
            sb.newLine(AuditTools.changedString("Time Zone", orig.getTimeZone(), cur.getTimeZone()));
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.