List of usage examples for org.apache.commons.lang3 StringUtils substringAfterLast
public static String substringAfterLast(final String str, final String separator)
Gets the substring after the last occurrence of a separator.
From source file:org.kuali.coeus.propdev.impl.budget.editable.BudgetDataOverrideEvent.java
@Override protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); LOG.debug(logMessage);// w ww . j av a 2s . c om }
From source file:org.kuali.coeus.propdev.impl.copy.CopyProposalEvent.java
@Override protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append(" with "); // vary logging detail as needed if (this.criteria == null) { logMessage.append("null proposal copy criteria"); } else {//from w w w .j a v a 2s . c o m logMessage.append(this.criteria.toString()); } LOG.debug(logMessage); }
From source file:org.kuali.coeus.propdev.impl.docperm.AddProposalUserEvent.java
@Override protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append(" with "); // vary logging detail as needed if (this.proposalUserRoles == null) { logMessage.append("null proposalUser"); } else {/* ww w . ja va 2 s .com*/ logMessage.append(this.proposalUserRoles.toString()); } LOG.debug(logMessage); }
From source file:org.kuali.coeus.propdev.impl.location.BasicProposalSiteEvent.java
@Override protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append("with site index "); logMessage.append(siteIndex);//from w ww . j a v a 2 s.co m logMessage.append(", "); logMessage.append(proposalSites == null ? "null" : proposalSites.size()); logMessage.append(" proposal sites"); LOG.debug(logMessage); }
From source file:org.kuali.coeus.propdev.impl.location.SaveProposalSitesEvent.java
@Override protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); LOG.debug(logMessage);//from ww w . j a v a 2 s. c o m }
From source file:org.kuali.coeus.propdev.impl.person.attachment.PersonnelAttachmentEventBase.java
/** * Logs the event type and some information about the associated proposal person bio *///from w w w. j a v a2s .c om protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append(" with "); // vary logging detail as needed if (getProposalPersonBiography() == null) { logMessage.append("null proposalPersonBiography"); } else { logMessage.append(getProposalPersonBiography().toString()); } LOG.debug(logMessage); }
From source file:org.kuali.coeus.propdev.impl.person.creditsplit.CalculateCreditSplitEvent.java
@Override protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append(" with "); for (ProposalPerson person : ((ProposalDevelopmentDocument) getDocument()).getDevelopmentProposal() .getProposalPersons()) {/*w w w .jav a 2s.c om*/ logMessage.append(person.toString()); logMessage.append(", "); } if (logMessage.substring(logMessage.length() - 2).equals(", ")) { logMessage.delete(logMessage.length() - 2, logMessage.length()); } LOG.debug(logMessage); }
From source file:org.kuali.coeus.propdev.impl.person.KeyPersonEventBase.java
/** * Logs the event type and some information about the associated accountingLine *///from w ww. j av a2 s . c o m protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append(" with "); // vary logging detail as needed if (getProposalPerson() == null) { logMessage.append("null proposalPerson"); } else { logMessage.append(getProposalPerson().toString()); } LOG.debug(logMessage); }
From source file:org.kuali.coeus.propdev.impl.person.SaveKeyPersonEvent.java
/** * Logs the event type and some information about the associated accountingLine */// ww w .j av a 2 s . c o m protected void logEvent() { StringBuffer logMessage = new StringBuffer(StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append(" with "); for (ProposalPerson person : ((ProposalDevelopmentDocument) getDocument()).getDevelopmentProposal() .getProposalPersons()) { logMessage.append(person.toString()); logMessage.append(", "); } if (logMessage.substring(logMessage.length() - 2).equals(", ")) { logMessage.delete(logMessage.length() - 2, logMessage.length()); } LOG.debug(logMessage); }
From source file:org.kuali.kra.award.commitments.AwardFandaRateEvent.java
/** * Logs the event type and some information about the associated special review *//* w ww . j a va 2 s.com*/ protected void logEvent() { if (LOG.isDebugEnabled()) { StringBuilder logMessage = new StringBuilder( StringUtils.substringAfterLast(this.getClass().getName(), ".")); logMessage.append(" with "); // vary logging detail as needed if (getAwardFandaRate() == null) { logMessage.append("null award F and a Rate Event"); } else { logMessage.append(getAwardFandaRate().toString()); } LOG.debug(logMessage); } }